//
// SetupTriggerPopup::init from 0x540f98 to 0x5411c6 (558 bytes)
//
// 97 xrefs:
// > ColorSelectPopup::init @ 0x3da90c
// > GJRateLevelLayer::init @ 0x4546d8
// > CustomizeObjectSettingsPopup::init @ 0x463dd6
// > UIPOptionsLayer::init @ 0x4a966c
// > EditTriggersPopup::init @ 0x4aa874
// > SetupEnterTriggerPopup::init @ 0x4aab14
// > GJOptionsLayer::init @ 0x4ab552
// > EditGameObjectPopup::init @ 0x4af4ea
// > UIOptionsLayer::init @ 0x4b1c7c
// > UISaveLoadLayer::init @ 0x4b33ba
// > SetupMoveCommandPopup::init @ 0x4b8db4
// > SetupOpacityPopup::init @ 0x4ba958
// > SetupObjectTogglePopup::init @ 0x4bb79e
// > SetupSpawnPopup::init @ 0x4bc528
// > SetupPulsePopup::init @ 0x4be49e
// > GJFollowCommandLayer::init @ 0x4dbc32
// > GJPFollowCommandLayer::init @ 0x4dd4d2
// > GJRotateCommandLayer::init @ 0x4df40a
// > SetupRotateCommandPopup::init @ 0x4e0d10
// > SetItemIDLayer::init @ 0x4f23dc
// > SetTargetIDLayer::init @ 0x4f2aa4
// > SetupAnimationPopup::init @ 0x4f30dc
// > SetupAnimSettingsPopup::init @ 0x4f3bc8
// > SetupCollisionTriggerPopup::init @ 0x4f4856
// > SetupInstantCollisionTriggerPopup::init @ 0x4f539e
// > SetupCollisionStateTriggerPopup::init @ 0x4f59c6
// > SetupCountTriggerPopup::init @ 0x4f6016
// > SetupInteractObjectPopup::init @ 0x4f6e5e
// > SetupInstantCountPopup::init @ 0x4f791e
// > SetupPickupTriggerPopup::init @ 0x4f8660
// > SetupRotatePopup::init @ 0x4f8dd4
// > SetupShakePopup::init @ 0x4f9734
// > SetupTouchTogglePopup::init @ 0x4fa542
// > SetupCameraOffsetTrigger::init @ 0x501de2
// > SetupStaticCameraPopup::init @ 0x503e48
// > SetupZoomTriggerPopup::init @ 0x5045ca
// > SetupRandTriggerPopup::init @ 0x504db4
// > SetupEndPopup::init @ 0x505d54
// > SetupPlatformerEndPopup::init @ 0x506582
// > SetupObjectOptions2Popup::init @ 0x50cf1a
// > SetupTransformPopup::init @ 0x5245ba
// > SetupSongTriggerPopup::init @ 0x5251dc
// > SetupTimeWarpPopup::init @ 0x525b8c
// > SetupCameraRotatePopup::init @ 0x5266e6
// > SetupCameraRotatePopup2::init @ 0x5275ce
// > SetupRandAdvTriggerPopup::init @ 0x528610
// > SetupOptionsTriggerPopup::init @ 0x5404ee
// > SetupTriggerPopup::create @ 0x541358
// > SetupCameraEdgePopup::init @ 0x548c00
// > SetupRotateGameplayPopup::init @ 0x54996c
// > SetupGameplayOffsetPopup::init @ 0x549f6c
// > SetupTeleportPopup::init @ 0x54a6c4
// > SetupGradientPopup::init @ 0x550d18
// > SetupShaderEffectPopup::init @ 0x557172
// > SetupAreaMoveTriggerPopup::init @ 0x558d92
// > SetupAreaTransformTriggerPopup::init @ 0x559676
// > SetupAreaRotateTriggerPopup::init @ 0x559bca
// > SetupAreaFadeTriggerPopup::init @ 0x55a062
// > SetupAreaTintTriggerPopup::init @ 0x55a5c0
// > SetupAreaTriggerPopup::init @ 0x55ac36
// > SetupAreaAnimTriggerPopup::init @ 0x55b12e
// > SetupEnterEffectPopup::init @ 0x55c758
// > SetupCameraModePopup::init @ 0x55e0b0
// > SetupAdvFollowPopup::init @ 0x55f438
// > SetupAdvFollowEditPhysicsPopup::init @ 0x5617ec
// > SetupAdvFollowRetargetPopup::init @ 0x561faa
// > SetupMGTrigger::init @ 0x562a9a
// > SetupBGSpeedTrigger::init @ 0x5639ba
// > SetupGravityTriggerPopup::init @ 0x563dc2
// > SetupKeyframeAnimPopup::init @ 0x5734be
// > SetupKeyframePopup::init @ 0x573b84
// > SetupReverbPopup::init @ 0x575be8
// > SetupSFXPopup::init @ 0x57631c
// > SetupSFXEditPopup::init @ 0x576d9e
// > SetupEventLinkPopup::init @ 0x5782aa
// > SetupPlayerControlPopup::init @ 0x57872e
// > SetupSpawnParticlePopup::init @ 0x578ade
// > SetupCheckpointPopup::init @ 0x57915e
// > MultiTriggerPopup::init @ 0x5794bc
// > UIObjectSettingsPopup::init @ 0x5796c6
// > SetupResetTriggerPopup::init @ 0x579dc6
// > SetupItemEditTriggerPopup::init @ 0x57ab88
// > SetupItemCompareTriggerPopup::init @ 0x57bdc4
// > SetupCoinLayer::init @ 0x57ca06
// > SetupPersistentItemTriggerPopup::init @ 0x57ccc6
// > SetupAudioLineGuidePopup::init @ 0x57d062
// > SetupCameraGuidePopup::init @ 0x57d53a
// > SetupForceBlockPopup::init @ 0x57d8f2
// > SetupArtSwitchPopup::init @ 0x57dea2
// > SetupStopTriggerPopup::init @ 0x57e21c
// > SetupObjectControlPopup::init @ 0x57e662
// > SetupDashRingPopup::init @ 0x57e8ba
// > SelectEventLayer::init @ 0x57f258
// > SetupSequenceTriggerPopup::init @ 0x580446
// > SetupTimerTriggerPopup::init @ 0x593bfa
// > SetupTimerEventTriggerPopup::init @ 0x594136
// > SetupTimerControlTriggerPopup::init @ 0x5944a8
//
// 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 SetupTriggerPopup::init(
SetupTriggerPopup *a1,
EffectGameObject *a2,
cocos2d::CCArray *a3,
float a4,
float a5,
int a6)
{
cocos2d::CCArray *v10; // r0
bool v11; // r9
cocos2d::CCArray *v12; // r0
cocos2d::CCArray *v13; // r0
cocos2d::CCArray *v14; // r0
cocos2d::CCDictionary *v15; // r0
cocos2d::CCDictionary *v16; // r0
cocos2d::CCDictionary *v17; // r0
cocos2d::CCDictionary *v18; // r0
cocos2d::CCDictionary *v19; // r0
cocos2d::CCDictionary *v20; // r0
cocos2d::CCDictionary *v21; // r0
cocos2d::CCDictionary *v22; // r0
cocos2d::CCDictionary *v23; // r0
cocos2d::CCDictionary *v24; // r0
cocos2d::CCDictionary *v25; // r0
cocos2d::CCDictionary *v26; // r0
cocos2d::CCDictionary *v27; // r0
cocos2d::CCDictionary *v28; // r0
cocos2d::CCObject *v29; // r0
cocos2d::CCDirector *v30; // r0
cocos2d::CCString *v31; // r0
cocos2d::extension::CCScale9Sprite *CString; // r6
cocos2d::CCNode *v33; // r6
void (__fastcall *setContentSize)(cocos2d::CCNode *__hidden, const cocos2d::CCSize *); // r11
void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10
cocos2d::CCMenu *v36; // r0
cocos2d::CCMenu *m_buttonMenu; // r6
void (__fastcall *v38)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8
cocos2d::CCArray *v39; // r0
cocos2d::CCArray *v40; // r0
float v42; // r2
float v43; // r3
cocos2d::CCSize v44; // [sp+Ch] [bp-20h] BYREF
cocos2d::CCRect v45; // [sp+14h] [bp-18h] BYREF
cocos2d::CCSize v46; // 0:^0.8
cocos2d::CCRect v47; // 0:kr00_16.16
v10 = (cocos2d::CCArray *)FLAlertLayer::init(a1, (cocos2d::_ccColor4B)150);
v11 = (char)v10;
if ( v10 )
{
v12 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
a1->m_pageContainers = v12;
cocos2d::CCObject::retain(v12);
v14 = (cocos2d::CCArray *)cocos2d::CCArray::create(v13);
a1->m_groupContainers = v14;
cocos2d::CCObject::retain(v14);
v15 = cocos2d::CCDictionary::create();
a1->m_inputNodes = v15;
cocos2d::CCObject::retain(v15);
v16 = cocos2d::CCDictionary::create();
a1->m_valueControls = v16;
cocos2d::CCObject::retain(v16);
v17 = cocos2d::CCDictionary::create();
a1->m_valueToggles = v17;
cocos2d::CCObject::retain(v17);
v18 = cocos2d::CCDictionary::create();
a1->m_customValueToggles = v18;
cocos2d::CCObject::retain(v18);
v19 = cocos2d::CCDictionary::create();
a1->m_inputLabels = v19;
cocos2d::CCObject::retain(v19);
v20 = cocos2d::CCDictionary::create();
a1->m_triggerValues = v20;
cocos2d::CCObject::retain(v20);
v21 = cocos2d::CCDictionary::create();
a1->m_minSliderValues = v21;
cocos2d::CCObject::retain(v21);
v22 = cocos2d::CCDictionary::create();
a1->m_maxSliderValues = v22;
cocos2d::CCObject::retain(v22);
v23 = cocos2d::CCDictionary::create();
a1->m_customEasingLabels = v23;
cocos2d::CCObject::retain(v23);
v24 = cocos2d::CCDictionary::create();
a1->m_customEasingButtons = v24;
cocos2d::CCObject::retain(v24);
v25 = cocos2d::CCDictionary::create();
a1->m_customEasingTags = v25;
cocos2d::CCObject::retain(v25);
v26 = cocos2d::CCDictionary::create();
a1->m_customEasingScales = v26;
cocos2d::CCObject::retain(v26);
v27 = cocos2d::CCDictionary::create();
a1->m_disabledEasingButtons = v27;
cocos2d::CCObject::retain(v27);
v28 = cocos2d::CCDictionary::create();
a1->m_disableButtons = v28;
cocos2d::CCObject::retain(v28);
if ( a2 )
{
a1->m_gameObject = a2;
v29 = a2;
}
else
{
if ( !a3 )
{
LABEL_7:
a1->m_width = a4;
a1->m_height = a5;
a1->m_noElasticity = 1;
a1->m_disableTextDelegate = 1;
v30 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v44, v30);
v31 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"GJ_square0%i.png",
(const char *)a6);
CString = (cocos2d::extension::CCScale9Sprite *)cocos2d::CCString::getCString(v31);
cocos2d::CCRect::CCRect(&v45, 0.0, 0.0, 80.0, 80.0);
v47.origin.x = v42;
v47.origin.y = v43;
v47.size = v46;
v33 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create(CString, (const char *)&v45, v47);
setContentSize = v33->setContentSize;
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v45, a4, a5);
setContentSize(v33, (const cocos2d::CCSize *)&v45);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, -2);
setPosition = v33->setPosition;
cocos2d::CCPoint::CCPoint(&v45.origin, v44.width * 0.5, v44.height * 0.5);
setPosition(v33, &v45.origin);
v33->setTag(v33, 1);
v36 = cocos2d::CCMenu::create();
a1->m_buttonMenu = v36;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v36, 10);
m_buttonMenu = a1->m_buttonMenu;
v38 = m_buttonMenu->setPosition;
cocos2d::CCPoint::CCPoint(
&v45.origin,
v44.width * 0.5,
(float)((float)(v44.height * 0.5) - (float)(a5 * 0.5)) + 24.0);
v39 = (cocos2d::CCArray *)((int (__fastcall *)(cocos2d::CCMenu *, cocos2d::CCRect *))v38)(m_buttonMenu, &v45);
a1->m_joystickConnected = -1;
v40 = (cocos2d::CCArray *)cocos2d::CCArray::create(v39);
a1->m_multiTriggerContainer = v40;
cocos2d::CCObject::retain(v40);
return v11;
}
v29 = a3;
a1->m_gameObjects = a3;
}
cocos2d::CCObject::retain(v29);
goto LABEL_7;
}
return v11;
}