//
// SetupTriggerPopup::init from 0x100234e90 to 0x1002351c7 (823 bytes)
//
// 97 xrefs:
// > GJRotateCommandLayer::init @ 0x10000174c
// > SetupRotateCommandPopup::init @ 0x1000052fc
// > SetupOpacityPopup::init @ 0x1000570ac
// > SetupPickupTriggerPopup::init @ 0x100058b7a
// > SetupAnimSettingsPopup::init @ 0x10009abfa
// > SetItemIDLayer::init @ 0x10009c1ca
// > CustomizeObjectSettingsPopup::init @ 0x1001f980d
// > SetupKeyframeAnimPopup::init @ 0x1001fecaa
// > SetupKeyframePopup::init @ 0x1001ffd82
// > SetupTriggerPopup::create @ 0x100234e4f
// > SetupSpawnPopup::init @ 0x10028f46c
// > EditTriggersPopup::init @ 0x10029aa59
// > SetupEnterTriggerPopup::init @ 0x10029affc
// > GJOptionsLayer::init @ 0x10029bd9a
// > EditGameObjectPopup::init @ 0x1002ab33b
// > UIOptionsLayer::init @ 0x1002b2653
// > UISaveLoadLayer::init @ 0x1002b51ff
// > UIPOptionsLayer::init @ 0x1002b711d
// > SetupTouchTogglePopup::init @ 0x1002b86fc
// > SetTargetIDLayer::init @ 0x1002b9f05
// > SetupCountTriggerPopup::init @ 0x1002bb57c
// > SetupShaderEffectPopup::init @ 0x1002c6138
// > SetupSongTriggerPopup::init @ 0x1002d31ac
// > GJFollowCommandLayer::init @ 0x1002d52ec
// > SetupAdvFollowPopup::init @ 0x1003054ac
// > SetupAdvFollowEditPhysicsPopup::init @ 0x10030a74c
// > SetupAdvFollowRetargetPopup::init @ 0x10030b828
// > SetupObjectOptions2Popup::init @ 0x10031b26a
// > SetupZoomTriggerPopup::init @ 0x10032133a
// > SetupTeleportPopup::init @ 0x100358d65
// > GJPFollowCommandLayer::init @ 0x1003649dc
// > SetupObjectTogglePopup::init @ 0x100375d40
// > SetupRandAdvTriggerPopup::init @ 0x10038dcbc
// > SetupCollisionTriggerPopup::init @ 0x10039545c
// > SetupInstantCollisionTriggerPopup::init @ 0x100397318
// > SetupCollisionStateTriggerPopup::init @ 0x100397f78
// > SetupStaticCameraPopup::init @ 0x10039b3da
// > SetupTimerTriggerPopup::init @ 0x1003a0cd8
// > SetupTimerEventTriggerPopup::init @ 0x1003a1808
// > SetupTimerControlTriggerPopup::init @ 0x1003a1faa
// > SetupPulsePopup::init @ 0x1003aa32c
// > SetupAnimationPopup::init @ 0x1003d47ac
// > SetupEnterEffectPopup::init @ 0x1003f0a9e
// > SetupCameraModePopup::init @ 0x1004a8dec
// > SetupReverbPopup::init @ 0x1004b7dfc
// > SetupSFXPopup::init @ 0x1004b8bec
// > SetupSFXEditPopup::init @ 0x1004baf2f
// > SetupCameraRotatePopup::init @ 0x1004bca0c
// > SetupCameraRotatePopup2::init @ 0x1004beb9a
// > SetupGravityTriggerPopup::init @ 0x1004c5158
// > SetupAreaMoveTriggerPopup::init @ 0x1004d2168
// > SetupAreaTransformTriggerPopup::init @ 0x1004d5538
// > SetupAreaRotateTriggerPopup::init @ 0x1004d64d8
// > SetupAreaFadeTriggerPopup::init @ 0x1004d72b8
// > SetupAreaTintTriggerPopup::init @ 0x1004d80cc
// > SetupAreaTriggerPopup::init @ 0x1004d98a8
// > SetupAreaAnimTriggerPopup::init @ 0x1004da4ff
// > SetupSequenceTriggerPopup::init @ 0x1004dd90e
// > SetupTimeWarpPopup::init @ 0x100502dd9
// > GJRateLevelLayer::init @ 0x100505aff
// > SetupMGTrigger::init @ 0x10050867c
// > SetupBGSpeedTrigger::init @ 0x10050a9df
// > SetupInteractObjectPopup::init @ 0x10050e15c
// > SetupTransformPopup::init @ 0x100510b0c
// > SetupEventLinkPopup::init @ 0x1005775dc
// > SelectEventLayer::init @ 0x100578314
// > SetupPlayerControlPopup::init @ 0x10057ac0c
// > SetupSpawnParticlePopup::init @ 0x10057b428
// > SetupCheckpointPopup::init @ 0x10057c288
// > MultiTriggerPopup::init @ 0x10057c9e8
// > UIObjectSettingsPopup::init @ 0x10057ce8c
// > SetupResetTriggerPopup::init @ 0x10057dd98
// > SetupItemEditTriggerPopup::init @ 0x10057e27c
// > SetupItemCompareTriggerPopup::init @ 0x100580b2c
// > SetupCoinLayer::init @ 0x100582f3d
// > SetupPersistentItemTriggerPopup::init @ 0x100583538
// > SetupAudioLineGuidePopup::init @ 0x100583cfc
// > SetupCameraGuidePopup::init @ 0x100584778
// > SetupForceBlockPopup::init @ 0x100584f38
// > SetupArtSwitchPopup::init @ 0x10058590b
// > SetupStopTriggerPopup::init @ 0x10058624a
// > SetupObjectControlPopup::init @ 0x100586b8a
// > SetupDashRingPopup::init @ 0x100587088
// > SetupCameraEdgePopup::init @ 0x1005880ec
// > SetupRotatePopup::init @ 0x10059cc3c
// > SetupRandTriggerPopup::init @ 0x1005e53ac
// > SetupOptionsTriggerPopup::init @ 0x1005e6dca
// > SetupInstantCountPopup::init @ 0x1005e8c8c
// > SetupGradientPopup::init @ 0x1005f184c
// > SetupMoveCommandPopup::init @ 0x1006074bc
// > SetupCameraOffsetTrigger::init @ 0x1006615ac
// > SetupShakePopup::init @ 0x10066426c
// > SetupEndPopup::init @ 0x100668b9f
// > SetupPlatformerEndPopup::init @ 0x100669e58
// > ColorSelectPopup::init @ 0x100724eaf
// > SetupRotateGameplayPopup::init @ 0x100797a5a
// > SetupGameplayOffsetPopup::init @ 0x10079884c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
bool __fastcall SetupTriggerPopup::init(
SetupTriggerPopup *a1,
EffectGameObject *a2,
cocos2d::CCArray *a3,
float a4,
float a5,
int a6)
{
SetupTriggerPopup_vtbl *v7; // r15
bool result; // al
bool v10; // r13
cocos2d::CCArray *v11; // rax
cocos2d::CCArray *v12; // rdi
cocos2d::CCArray *v13; // rax
cocos2d::CCDictionary *v14; // rax
cocos2d::CCDictionary *v15; // rax
cocos2d::CCDictionary *v16; // rax
cocos2d::CCDictionary *v17; // rax
cocos2d::CCDictionary *v18; // rax
cocos2d::CCDictionary *v19; // rax
cocos2d::CCDictionary *v20; // rax
cocos2d::CCDictionary *v21; // rax
cocos2d::CCDictionary *v22; // rax
cocos2d::CCDictionary *v23; // rax
cocos2d::CCDictionary *v24; // rax
cocos2d::CCDictionary *v25; // rax
cocos2d::CCDictionary *v26; // rax
cocos2d::CCDictionary *v27; // rax
__int64 v28; // rax
cocos2d::CCString *v29; // rax
const char *CString; // r14
cocos2d::extension::CCScale9Sprite *v31; // r14
cocos2d::CCMenu *v32; // rax
cocos2d::CCMenu *m_buttonMenu; // r14
cocos2d::CCArray *v34; // rax
char v35; // [rsp+0h] [rbp-50h]
_BYTE v36[16]; // [rsp+8h] [rbp-48h] BYREF
float v37; // [rsp+18h] [rbp-38h] BYREF
float v38; // [rsp+1Ch] [rbp-34h]
float v39; // [rsp+20h] [rbp-30h]
float v40; // [rsp+24h] [rbp-2Ch]
cocos2d::CCRect v41; // 0:xmm0_8.8,8:xmm1_8.8
v40 = a5;
v39 = a4;
v7 = (SetupTriggerPopup_vtbl *)a2;
result = FLAlertLayer::init_1(a1, 150);
if ( result )
{
v10 = result;
v11 = (cocos2d::CCArray *)sub_10071F9E0(a1, 150);
a1->m_pageContainers = v11;
v12 = v11;
cocos2d::CCObject::retain(v11);
v13 = (cocos2d::CCArray *)sub_10071F9E0(v12, 150);
a1->m_groupContainers = v13;
cocos2d::CCObject::retain(v13);
v14 = cocos2d::CCDictionary::create();
a1->m_inputNodes = v14;
cocos2d::CCObject::retain(v14);
v15 = cocos2d::CCDictionary::create();
a1->m_valueControls = v15;
cocos2d::CCObject::retain(v15);
v16 = cocos2d::CCDictionary::create();
a1->m_valueToggles = v16;
cocos2d::CCObject::retain(v16);
v17 = cocos2d::CCDictionary::create();
a1->m_customValueToggles = v17;
cocos2d::CCObject::retain(v17);
v18 = cocos2d::CCDictionary::create();
a1->m_inputLabels = v18;
cocos2d::CCObject::retain(v18);
v19 = cocos2d::CCDictionary::create();
a1->m_triggerValues = v19;
cocos2d::CCObject::retain(v19);
v20 = cocos2d::CCDictionary::create();
a1->m_minSliderValues = v20;
cocos2d::CCObject::retain(v20);
v21 = cocos2d::CCDictionary::create();
a1->m_maxSliderValues = v21;
cocos2d::CCObject::retain(v21);
v22 = cocos2d::CCDictionary::create();
a1->m_customEasingLabels = v22;
cocos2d::CCObject::retain(v22);
v23 = cocos2d::CCDictionary::create();
a1->m_customEasingButtons = v23;
cocos2d::CCObject::retain(v23);
v24 = cocos2d::CCDictionary::create();
a1->m_customEasingTags = v24;
cocos2d::CCObject::retain(v24);
v25 = cocos2d::CCDictionary::create();
a1->m_customEasingScales = v25;
cocos2d::CCObject::retain(v25);
v26 = cocos2d::CCDictionary::create();
a1->m_disabledEasingButtons = v26;
cocos2d::CCObject::retain(v26);
v27 = cocos2d::CCDictionary::create();
a1->m_disableButtons = v27;
cocos2d::CCObject::retain(v27);
v28 = 656;
if ( a2 || (v28 = 664, (v7 = (SetupTriggerPopup_vtbl *)a3) != nullptr) )
{
*(SetupTriggerPopup_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v28) = v7;
cocos2d::CCObject::retain((cocos2d::CCObject *)v7);
}
a1->m_width = v39;
a1->m_height = v40;
a1->m_noElasticity = 1;
a1->m_disableTextDelegate = 1;
cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v37);
v29 = (cocos2d::CCString *)sub_1007AB580("GJ_square0%i.png", v35);
CString = cocos2d::CCString::getCString(v29);
v41.origin = 0;
v41.size = 0;
sub_10028CC00(v36, 0.0, 0.0, 80.0, 80.0);
v31 = cocos2d::extension::CCScale9Sprite::create_2(CString, v41);
sub_10028CBF0(v36, v39, v40);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _BYTE *))v31->setContentSize)(v31, v36);
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v31,
4294967294LL);
sub_10028CBE0(v36, v37 * 0.5, v38 * 0.5);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, _BYTE *))v31->setPosition)(v31, v36);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v31->setTag)(v31, 1);
v32 = cocos2d::CCMenu::create();
a1->m_buttonMenu = v32;
((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v32,
10);
m_buttonMenu = a1->m_buttonMenu;
sub_10028CBE0(v36, v37 * 0.5, (float)((float)(0.5 * v38) - (float)(v40 * 0.5)) + 24.0);
((void (__fastcall *)(cocos2d::CCMenu *, _BYTE *))m_buttonMenu->setPosition)(m_buttonMenu, v36);
a1->m_joystickConnected = -1;
v34 = (cocos2d::CCArray *)sub_10071F9E0(m_buttonMenu, v36);
a1->m_multiTriggerContainer = v34;
cocos2d::CCObject::retain(v34);
return v10;
}
return result;
}