//
// SetupTriggerPopup::init from 0x10012e2ec to 0x10012e584 (664 bytes)
//
// 94 xrefs:
// > SetupTeleportPopup::init @ 0x10000b38c
// > SetupOpacityPopup::init @ 0x100022e6c
// > SetupTimerTriggerPopup::init @ 0x10002d3e0
// > SetupTimerEventTriggerPopup::init @ 0x10002db64
// > SetupTimerControlTriggerPopup::init @ 0x10002e03c
// > SetupRandAdvTriggerPopup::init @ 0x10002e674
// > SetupAreaMoveTriggerPopup::init @ 0x1000341c8
// > SetupAreaTransformTriggerPopup::init @ 0x1000364e0
// > SetupAreaRotateTriggerPopup::init @ 0x100036ce0
// > SetupAreaFadeTriggerPopup::init @ 0x1000373b8
// > SetupAreaTintTriggerPopup::init @ 0x100037a28
// > SetupAreaTriggerPopup::init @ 0x1000387b4
// > SetupAreaAnimTriggerPopup::init @ 0x100038d58
// > SetupObjectOptions2Popup::init @ 0x1000416e0
// > SetupPickupTriggerPopup::init @ 0x10004336c
// > SetupCameraRotatePopup2::init @ 0x10004c32c
// > CustomizeObjectSettingsPopup::init @ 0x100050cd0
// > SetupAdvFollowPopup::init @ 0x10005fdf8
// > SetupAdvFollowEditPhysicsPopup::init @ 0x100063900
// > SetupAdvFollowRetargetPopup::init @ 0x1000644b4
// > SetupCountTriggerPopup::init @ 0x1000f3b9c
// > SetupSpawnPopup::init @ 0x1000f7b00
// > GJFollowCommandLayer::init @ 0x10013636c
// > SetupTimeWarpPopup::init @ 0x100147e8c
// > GJPFollowCommandLayer::init @ 0x10015eb00
// > SetupReverbPopup::init @ 0x10017f374
// > SetupSFXPopup::init @ 0x10017fb08
// > SetupSFXEditPopup::init @ 0x10018124c
// > SetupShaderEffectPopup::init @ 0x100181dcc
// > SetupCameraOffsetTrigger::init @ 0x10018edac
// > SetupRotateGameplayPopup::init @ 0x10019e730
// > SetupGameplayOffsetPopup::init @ 0x10019f0b0
// > SetupObjectTogglePopup::init @ 0x1001a2cf0
// > GJRateLevelLayer::init @ 0x1001b0d54
// > SetupKeyframeAnimPopup::init @ 0x1001b3e5c
// > SetupKeyframePopup::init @ 0x1001b479c
// > SetupZoomTriggerPopup::init @ 0x1001b8460
// > SetupInstantCountPopup::init @ 0x1001bbec4
// > SetupSongTriggerPopup::init @ 0x1001c2938
// > SetupRandTriggerPopup::init @ 0x1001c9cd0
// > SetupStaticCameraPopup::init @ 0x1001d0ae4
// > SetupSequenceTriggerPopup::init @ 0x1001d2564
// > SetTargetIDLayer::init @ 0x1002133d0
// > SetupCollisionTriggerPopup::init @ 0x10022f60c
// > SetupInstantCollisionTriggerPopup::init @ 0x100230c50
// > SetupCollisionStateTriggerPopup::init @ 0x100231598
// > SetupTransformPopup::init @ 0x1002319a4
// > SetupCameraEdgePopup::init @ 0x100239e80
// > SetupTouchTogglePopup::init @ 0x10024b0e0
// > SetupRotatePopup::init @ 0x1002684d0
// > SetupMoveCommandPopup::init @ 0x100273914
// > SetupEndPopup::init @ 0x1002ad134
// > SetupPlatformerEndPopup::init @ 0x1002adeb8
// > EditTriggersPopup::init @ 0x1002d2568
// > SetupEnterTriggerPopup::init @ 0x1002d28fc
// > GJOptionsLayer::init @ 0x1002d2f8c
// > EditGameObjectPopup::init @ 0x1002dd8b4
// > UIOptionsLayer::init @ 0x1002e2798
// > UISaveLoadLayer::init @ 0x1002e47cc
// > UIPOptionsLayer::init @ 0x1002e5cc8
// > SetupAnimSettingsPopup::init @ 0x1002e76d0
// > SetupMGTrigger::init @ 0x1002f1a30
// > SetupBGSpeedTrigger::init @ 0x1002f3588
// > SetupGradientPopup::init @ 0x1003425d4
// > SetupShakePopup::init @ 0x1003a9144
// > SetupCameraModePopup::init @ 0x1003aa454
// > SetupPulsePopup::init @ 0x1003b3390
// > SetupAnimationPopup::init @ 0x1003c3340
// > SetupEnterEffectPopup::init @ 0x1003ff490
// > SetupRotateCommandPopup::init @ 0x100405ea0
// > SetupEventLinkPopup::init @ 0x100406fa4
// > SelectEventLayer::init @ 0x100407680
// > SetupPlayerControlPopup::init @ 0x1004094d8
// > SetupSpawnParticlePopup::init @ 0x100409a5c
// > SetupCheckpointPopup::init @ 0x10040a3e4
// > MultiTriggerPopup::init @ 0x10040a89c
// > UIObjectSettingsPopup::init @ 0x10040ab78
// > SetupResetTriggerPopup::init @ 0x10040b660
// > SetupItemEditTriggerPopup::init @ 0x10040b960
// > SetupItemCompareTriggerPopup::init @ 0x10040d740
// > SetupCoinLayer::init @ 0x10040f1e8
// > SetupPersistentItemTriggerPopup::init @ 0x10040f598
// > SetupAudioLineGuidePopup::init @ 0x10040facc
// > SetupCameraGuidePopup::init @ 0x100410268
// > SetupForceBlockPopup::init @ 0x100410768
// > SetupArtSwitchPopup::init @ 0x100410e14
// > SetupStopTriggerPopup::init @ 0x1004114b8
// > SetupObjectControlPopup::init @ 0x100411bc4
// > SetupDashRingPopup::init @ 0x100411ef4
// > SetupInteractObjectPopup::init @ 0x100412a00
// > SetupOptionsTriggerPopup::init @ 0x1004136a8
// > SetItemIDLayer::init @ 0x100419ce4
// > ColorSelectPopup::init @ 0x10041c4f8
// > SetupGravityTriggerPopup::init @ 0x1004218ac
//
// 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)
{
_BOOL8 inited; // x0
bool v13; // w19
cocos2d::CCArray *v14; // x0
__int64 v15; // x0
cocos2d::CCArray *v16; // x0
cocos2d::CCDictionary *v17; // x0
cocos2d::CCDictionary *v18; // x0
cocos2d::CCDictionary *v19; // x0
cocos2d::CCDictionary *v20; // x0
cocos2d::CCDictionary *v21; // x0
cocos2d::CCDictionary *v22; // x0
cocos2d::CCDictionary *v23; // x0
cocos2d::CCDictionary *v24; // x0
cocos2d::CCDictionary *v25; // x0
cocos2d::CCDictionary *v26; // x0
cocos2d::CCDictionary *v27; // x0
cocos2d::CCDictionary *v28; // x0
cocos2d::CCDictionary *v29; // x0
cocos2d::CCDictionary *v30; // x0
__int64 v31; // x8
cocos2d::CCDirector *v32; // x0
cocos2d::CCString *v33; // x0
const char *CString; // x21
cocos2d::extension::CCScale9Sprite *v35; // x21
__n128 v36; // q0
__n128 v37; // q1
cocos2d::CCMenu *v38; // x0
__n128 v39; // q0
cocos2d::CCMenu *m_buttonMenu; // x21
__n128 v41; // q1
__int64 v42; // x0
cocos2d::CCArray *v43; // x0
float v45[4]; // [xsp+8h] [xbp-58h] BYREF
float v46; // [xsp+18h] [xbp-48h]
float v47; // [xsp+1Ch] [xbp-44h]
cocos2d::CCRect v48; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4
inited = FLAlertLayer::init_1(a1, 150);
v13 = inited;
if ( inited )
{
v14 = (cocos2d::CCArray *)sub_10024A15C(inited);
a1->m_pageContainers = v14;
cocos2d::CCObject::retain(v14);
v16 = (cocos2d::CCArray *)sub_10024A15C(v15);
a1->m_groupContainers = v16;
cocos2d::CCObject::retain(v16);
v17 = cocos2d::CCDictionary::create();
a1->m_inputNodes = v17;
cocos2d::CCObject::retain(v17);
v18 = cocos2d::CCDictionary::create();
a1->m_valueControls = v18;
cocos2d::CCObject::retain(v18);
v19 = cocos2d::CCDictionary::create();
a1->m_valueToggles = v19;
cocos2d::CCObject::retain(v19);
v20 = cocos2d::CCDictionary::create();
a1->m_customValueToggles = v20;
cocos2d::CCObject::retain(v20);
v21 = cocos2d::CCDictionary::create();
a1->m_inputLabels = v21;
cocos2d::CCObject::retain(v21);
v22 = cocos2d::CCDictionary::create();
a1->m_triggerValues = v22;
cocos2d::CCObject::retain(v22);
v23 = cocos2d::CCDictionary::create();
a1->m_minSliderValues = v23;
cocos2d::CCObject::retain(v23);
v24 = cocos2d::CCDictionary::create();
a1->m_maxSliderValues = v24;
cocos2d::CCObject::retain(v24);
v25 = cocos2d::CCDictionary::create();
a1->m_customEasingLabels = v25;
cocos2d::CCObject::retain(v25);
v26 = cocos2d::CCDictionary::create();
a1->m_customEasingButtons = v26;
cocos2d::CCObject::retain(v26);
v27 = cocos2d::CCDictionary::create();
a1->m_customEasingTags = v27;
cocos2d::CCObject::retain(v27);
v28 = cocos2d::CCDictionary::create();
a1->m_customEasingScales = v28;
cocos2d::CCObject::retain(v28);
v29 = cocos2d::CCDictionary::create();
a1->m_disabledEasingButtons = v29;
cocos2d::CCObject::retain(v29);
v30 = cocos2d::CCDictionary::create();
a1->m_disableButtons = v30;
cocos2d::CCObject::retain(v30);
if ( a2 )
{
v31 = 656;
}
else
{
if ( !a3 )
{
LABEL_7:
a1->m_width = a4;
a1->m_height = a5;
a1->m_noElasticity = 1;
a1->m_disableTextDelegate = 1;
v32 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v32);
v33 = (cocos2d::CCString *)sub_100268F4C("GJ_square0%i.png", a6);
CString = cocos2d::CCString::getCString(v33);
sub_100022990(v45, 0.0, 0.0, 80.0, 80.0);
v35 = cocos2d::extension::CCScale9Sprite::create(CString, v48);
sub_100022988(v45, a4, a5);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v35->setContentSize)(v35, v45);
v36 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v35,
4294967294LL);
v36.n128_f32[0] = v46 * 0.5;
v37.n128_f32[0] = v47 * 0.5;
sub_100022980(v36, v37, v45);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, float *))v35->setPosition)(v35, v45);
((void (__fastcall *)(cocos2d::extension::CCScale9Sprite *, __int64))v35->setTag)(v35, 1);
v38 = cocos2d::CCMenu::create();
a1->m_buttonMenu = v38;
v39 = ((__n128 (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v38,
10);
m_buttonMenu = a1->m_buttonMenu;
v39.n128_f32[0] = v46 * 0.5;
v41.n128_f32[0] = (float)((float)(v47 * 0.5) - (float)(a5 * 0.5)) + 24.0;
sub_100022980(v39, v41, v45);
v42 = ((__int64 (__fastcall *)(cocos2d::CCMenu *, float *))m_buttonMenu->setPosition)(m_buttonMenu, v45);
a1->m_joystickConnected = -1;
v43 = (cocos2d::CCArray *)sub_10024A15C(v42);
a1->m_multiTriggerContainer = v43;
cocos2d::CCObject::retain(v43);
return v13;
}
v31 = 664;
a2 = (EffectGameObject *)a3;
}
*(SetupTriggerPopup_vtbl **)((char *)&a1->FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v31) = (SetupTriggerPopup_vtbl *)a2;
cocos2d::CCObject::retain(a2);
goto LABEL_7;
}
return v13;
}