//
// SetupTriggerPopup::addTitle from 0x10021a720 to 0x10021a7e9 (201 bytes)
//
// 134 xrefs:
// > SetupRotateCommandPopup::init @ 0x100001677
// > SetupOpacityPopup::init @ 0x10001c9f6
// > SetupPickupTriggerPopup::init @ 0x10001df7f
// > SetupAnimSettingsPopup::init @ 0x100061f52
// > sub_100063390 @ 0x10006340d
// > CustomizeObjectSettingsPopup::init @ 0x1001dbc78
// > SetupKeyframeAnimPopup::init @ 0x1001e17d3
// > SetupKeyframePopup::init @ 0x1001e276d
// > sub_100272600 @ 0x10027267c
// > SetupSpawnPopup::init @ 0x10027aa1a
// > sub_100285EA0 @ 0x100285f1c
// > EditGameObjectPopup::init @ 0x10029787a
// > UISaveLoadLayer::init @ 0x1002a3086
// > sub_1002A7EA0 @ 0x1002a7f60
// > SetupCountTriggerPopup::init @ 0x1002a946d
// > SetupShaderEffectPopup::setupShockWave @ 0x1002b30ce
// > SetupShaderEffectPopup::setupShockLine @ 0x1002b453e
// > SetupShaderEffectPopup::setupGlitch @ 0x1002b5891
// > SetupShaderEffectPopup::setupChromatic @ 0x1002b5f0b
// > SetupShaderEffectPopup::setupChromaticGlitch @ 0x1002b6480
// > SetupShaderEffectPopup::setupPixelate @ 0x1002b6c9b
// > SetupShaderEffectPopup::setupLensCircle @ 0x1002b7358
// > SetupShaderEffectPopup::setupRadialBlur @ 0x1002b7d08
// > SetupShaderEffectPopup::setupMotionBlur @ 0x1002b87a8
// > SetupShaderEffectPopup::setupBulge @ 0x1002b93d3
// > SetupShaderEffectPopup::setupPinch @ 0x1002b9ce3
// > SetupShaderEffectPopup::setupGrayscale @ 0x1002ba947
// > SetupShaderEffectPopup::setupSepia @ 0x1002bae14
// > SetupShaderEffectPopup::setupInvertColor @ 0x1002bb0d0
// > SetupShaderEffectPopup::setupHueShift @ 0x1002bb72b
// > SetupShaderEffectPopup::setupColorChange @ 0x1002bba5f
// > SetupShaderEffectPopup::setupSplitScreen @ 0x1002bc0c0
// > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc574
// > SetupSongTriggerPopup::init @ 0x1002bfd9a
// > sub_1002C1E30 @ 0x1002c1ea5
// > SetupAdvFollowPopup::init @ 0x1002f0131
// > sub_1002F5170 @ 0x1002f522f
// > sub_1002F6130 @ 0x1002f6200
// > SetupObjectOptions2Popup::init @ 0x100306423
// > SetupZoomTriggerPopup::init @ 0x10030c609
// > SetupTeleportPopup::init @ 0x1003443ae
// > sub_100350460 @ 0x1003504ed
// > SetupObjectTogglePopup::init @ 0x10035f16f
// > SetupObjectTogglePopup::init @ 0x10035f2c9
// > SetupObjectTogglePopup::init @ 0x10035f3f2
// > SetupRandAdvTriggerPopup::init @ 0x1003787fd
// > SetupCollisionTriggerPopup::init @ 0x1003803eb
// > SetupInstantCollisionTriggerPopup::init @ 0x100380f7b
// > SetupCollisionStateTriggerPopup::init @ 0x1003819ae
// > SetupTransformPopup::init @ 0x100384dc2
// > sub_10038A630 @ 0x10038a6a6
// > sub_10038AFD0 @ 0x10038b03c
// > sub_10038B5F0 @ 0x10038b654
// > SetupPulsePopup::init @ 0x100393a83
// > CreateStartPosPopup::init @ 0x1003c46a3
// > sub_1003DDDD0 @ 0x1003ddeea
// > sub_1003DDDD0 @ 0x1003de330
// > sub_1003DDDD0 @ 0x1003deaee
// > sub_1003DDDD0 @ 0x1003df074
// > sub_1003DDDD0 @ 0x1003df478
// > sub_1003DDDD0 @ 0x1003df63d
// > SetupReverbPopup::init @ 0x1004b0e67
// > SetupSFXPopup::init @ 0x1004b1b64
// > SetupSFXEditPopup::init @ 0x1004b40dc
// > sub_1004B7A70 @ 0x1004b7add
// > SetupGravityTriggerPopup::init @ 0x1004bf472
// > SetupAreaMoveTriggerPopup::init @ 0x1004cdbef
// > SetupAreaTransformTriggerPopup::init @ 0x1004d0c5e
// > sub_1004D1A60 @ 0x1004d1ac8
// > sub_1004D2720 @ 0x1004d278f
// > SetupAreaTintTriggerPopup::init @ 0x1004d3473
// > SetupAreaTriggerPopup::init @ 0x1004d4b2b
// > SetupAreaAnimTriggerPopup::init @ 0x1004d5666
// > GJRateLevelLayer::init @ 0x1005049df
// > sub_1005070C0 @ 0x10050714d
// > GJRateEditorSoundLayer::init @ 0x100508fa0
// > SetupBGSpeedTrigger::init @ 0x10050c1d8
// > sub_10050F430 @ 0x10050f4a6
// > sub_100511B80 @ 0x100511c32
// > SetupEventLinkPopup::init @ 0x1005a4a53
// > SelectEventLayer::init @ 0x1005a5643
// > SetupPlayerControlPopup::init @ 0x1005a7e22
// > sub_1005A84B0 @ 0x1005a851e
// > SetupCheckpointPopup::init @ 0x1005a91f9
// > MultiTriggerPopup::init @ 0x1005a9817
// > UIObjectSettingsPopup::init @ 0x1005a9ba6
// > sub_1005AA8B0 @ 0x1005aa91e
// > SetupItemEditTriggerPopup::init @ 0x1005aacaf
// > SetupItemCompareTriggerPopup::init @ 0x1005ad3ea
// > SetupCoinLayer::init @ 0x1005af5f9
// > SetupPersistentItemTriggerPopup::init @ 0x1005afaab
// > SetupAudioLineGuidePopup::init @ 0x1005b01b9
// > SetupCameraGuidePopup::init @ 0x1005b0b0e
// > SetupForceBlockPopup::init @ 0x1005b11ab
// > SetupArtSwitchPopup::init @ 0x1005b1b44
// > SetupStopTriggerPopup::init @ 0x1005b228c
// > sub_1005B2A90 @ 0x1005b2b00
// > sub_1005B2E60 @ 0x1005b2ecc
// > SetupDashRingPopup::init @ 0x1005b35cc
// > KeybindCapturePopup::init @ 0x1005b3e12
// > KeybindCapturePopup::init @ 0x1005b3ebe
// > sub_100648530 @ 0x1006485b4
// > SetupRotatePopup::init @ 0x10066e376
// > SetupOptionsTriggerPopup::init @ 0x1006ba50c
// > SetupInstantCountPopup::init @ 0x1006bc0b2
// > sub_1006C4830 @ 0x1006c48c3
// > SetupMoveCommandPopup::init @ 0x1006deeca
// > SetupPlatformerEndPopup::init @ 0x100748d6e
// > SetupRotateGameplayPopup::init @ 0x10087838f
// > SetupGameplayOffsetPopup::init @ 0x100879061
// > AudioAssetsPopup::init @ 0x1008b3758
// > CreatorSettingsPopup::init @ 0x1008b6421
// > DeathMarkerSettingsPopup::init @ 0x1008c6836
// > sub_1008C8B30 @ 0x1008c8c0e
// > sub_1008CA190 @ 0x1008ca234
// > EditorSFXActionConfigLayer::init @ 0x1008df408
// > sub_1008EE9C0 @ 0x1008eeb80
// > SoundPackDescPopup::init @ 0x1008fa24f
// > sub_1008FB260 @ 0x1008fb366
// > GridSettingsLayer::onBuildWindowContent @ 0x1009083ee
// > sub_10093ADB0 @ 0x10093aec9
// > ThreadOptionsPopup::init @ 0x10094972c
// > sub_10094F400 @ 0x10094f4d8
// > ThreadSearchPopup::init @ 0x1009509c0
// > ThreadDescPopup::buildUI @ 0x100952449
// > PlatformerControlsPopup::init @ 0x10095d7c4
// > sub_100964B50 @ 0x100964d19
// > CommentOptionsPopup::init @ 0x100967db2
// > ControlSlotsPopup::init @ 0x10097be22
// > sub_100982340 @ 0x1009823e4
// > NotificationFilterPopup::init @ 0x10098cb55
// > sub_10098E530 @ 0x10098e638
// > sub_100993790 @ 0x1009939b0
// > sub_1009A4C50 @ 0x1009a4ecc
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:27:01 +0000
//
__int64 __fastcall SetupTriggerPopup::addTitle(__int64 a1, __int64 a2)
{
__int64 v2; // rax
__int64 v3; // rsi
__int64 v4; // rax
_BYTE v6[8]; // [rsp+0h] [rbp-20h] BYREF
float v7[6]; // [rsp+8h] [rbp-18h] BYREF
if ( (*(_BYTE *)a2 & 1) != 0 )
v2 = *(_QWORD *)(a2 + 16);
else
v2 = a2 + 1;
v3 = cocos2d::CCLabelBMFont::create_3(v2, "bigFont.fnt");
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v3);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v3 + 160LL))(v3, 0.5);
v4 = cocos2d::CCDirector::sharedDirector(v3, v3);
cocos2d::CCDirector::getWinSize(v7, v4);
sub_100278250(
v6,
v7[0] * 0.5,
(float)((float)((float)(0.5 * *(float *)(a1 + 736)) + (float)(v7[1] * 0.5)) + -14.0) + *(float *)(a1 + 740));
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v3 + 184LL))(v3, v6);
return v3;
}