//
// SetupTriggerPopup::init from 0x140473ca0 to 0x140474012 (882 bytes)
//
// 97 xrefs:
// > ColorSelectPopup::init @ 0x14008dd69
// > CustomizeObjectSettingsPopup::init @ 0x1400aa140
// > GJFollowCommandLayer::init @ 0x1402707a4
// > SetupMoveCommandPopup::init @ 0x1402809ad
// > GJPFollowCommandLayer::init @ 0x14028a894
// > EditTriggersPopup::init @ 0x14028ef1f
// > SetupEnterTriggerPopup::init @ 0x14028f2ae
// > GJOptionsLayer::init @ 0x14028fa88
// > EditGameObjectPopup::init @ 0x14029af7a
// > UIOptionsLayer::init @ 0x1402a0e6c
// > UISaveLoadLayer::init @ 0x1402a406f
// > UIPOptionsLayer::init @ 0x1402a5877
// > SetupRotateCommandPopup::init @ 0x1402a7e00
// > GJRateLevelLayer::init @ 0x1402f4999
// > SetupObjectOptions2Popup::init @ 0x140400b00
// > SetItemIDLayer::init @ 0x1404011a9
// > SetTargetIDLayer::init @ 0x140401ec8
// > SetupAdvFollowPopup::init @ 0x1404025a1
// > SetupAdvFollowEditPhysicsPopup::init @ 0x14040738d
// > SetupAdvFollowRetargetPopup::init @ 0x1404082e5
// > SetupAnimationPopup::init @ 0x140408de4
// > SetupAnimSettingsPopup::init @ 0x14040a2da
// > SetupAreaMoveTriggerPopup::init @ 0x14040b53d
// > SetupAreaTransformTriggerPopup::init @ 0x14040e139
// > SetupAreaRotateTriggerPopup::init @ 0x14040e9ef
// > SetupAreaFadeTriggerPopup::init @ 0x14040f149
// > SetupAreaTintTriggerPopup::init @ 0x14040f95d
// > SetupAreaTriggerPopup::init @ 0x14041090e
// > SetupAreaAnimTriggerPopup::init @ 0x140410edf
// > SetupCameraEdgePopup::init @ 0x140412cfe
// > SetupCameraModePopup::init @ 0x140414197
// > SetupCameraOffsetTrigger::init @ 0x1404154f6
// > SetupCameraRotatePopup2::init @ 0x140417b46
// > SetupCollisionTriggerPopup::init @ 0x1404183b9
// > SetupInstantCollisionTriggerPopup::init @ 0x140419fa9
// > SetupCollisionStateTriggerPopup::init @ 0x14041aa0f
// > SetupCountTriggerPopup::init @ 0x14041b044
// > SetupEndPopup::init @ 0x14041cc0f
// > SetupPlatformerEndPopup::init @ 0x14041dbcb
// > SetupEnterEffectPopup::init @ 0x14041e2c2
// > SetupGradientPopup::init @ 0x140420a9f
// > SetupInstantCountPopup::init @ 0x140422444
// > SetupInteractObjectPopup::init @ 0x140423b16
// > SetupKeyframeAnimPopup::init @ 0x140424854
// > SetupKeyframePopup::init @ 0x1404253ea
// > SetupMGTrigger::init @ 0x1404272fe
// > SetupBGSpeedTrigger::init @ 0x140428b2d
// > SetupGravityTriggerPopup::init @ 0x14042928c
// > SetupObjectTogglePopup::init @ 0x140429a67
// > SetupOpacityPopup::init @ 0x14042a656
// > SetupOptionsTriggerPopup::init @ 0x140435f25
// > SetupPickupTriggerPopup::init @ 0x140436b75
// > SetupPulsePopup::init @ 0x140437786
// > SetupRandAdvTriggerPopup::init @ 0x14043d3de
// > SetupRandTriggerPopup::init @ 0x14043fbb6
// > SetupRotateGameplayPopup::init @ 0x1404415a0
// > SetupGameplayOffsetPopup::init @ 0x140442098
// > SetupRotatePopup::init @ 0x140442ac3
// > SetupSequenceTriggerPopup::init @ 0x1404434bc
// > SetupReverbPopup::init @ 0x140446865
// > SetupSFXPopup::init @ 0x1404472d5
// > SetupSFXEditPopup::init @ 0x1404495a1
// > SetupShaderEffectPopup::init @ 0x14044a2f1
// > SetupShakePopup::init @ 0x140454db1
// > SetupSongTriggerPopup::init @ 0x14045c9a2
// > SetupSpawnPopup::init @ 0x14045e128
// > SetupStaticCameraPopup::init @ 0x14045fcf8
// > SetupTeleportPopup::init @ 0x1404609f7
// > SetupTimerTriggerPopup::init @ 0x140461e7b
// > SetupTimerEventTriggerPopup::init @ 0x1404627fb
// > SetupTimerControlTriggerPopup::init @ 0x140462e50
// > SetupTimeWarpPopup::init @ 0x1404634a8
// > SetupTouchTogglePopup::init @ 0x140463d88
// > SetupTransformPopup::init @ 0x1404650a1
// > SetupEventLinkPopup::init @ 0x140465f9f
// > SelectEventLayer::init @ 0x140466723
// > SetupPlayerControlPopup::init @ 0x140467de2
// > SetupSpawnParticlePopup::init @ 0x1404684bd
// > SetupCheckpointPopup::init @ 0x140468fdc
// > MultiTriggerPopup::init @ 0x14046963c
// > UIObjectSettingsPopup::init @ 0x1404699ec
// > SetupResetTriggerPopup::init @ 0x14046a788
// > SetupItemEditTriggerPopup::init @ 0x14046abde
// > SetupItemCompareTriggerPopup::init @ 0x14046d426
// > SetupCoinLayer::init @ 0x14046f5bc
// > SetupPersistentItemTriggerPopup::init @ 0x14046fa56
// > SetupAudioLineGuidePopup::init @ 0x140470004
// > SetupCameraGuidePopup::init @ 0x140470970
// > SetupForceBlockPopup::init @ 0x140471044
// > SetupArtSwitchPopup::init @ 0x140471a91
// > SetupStopTriggerPopup::init @ 0x140472654
// > SetupObjectControlPopup::init @ 0x140472f7b
// > SetupDashRingPopup::init @ 0x140473240
// > SetupZoomTriggerPopup::init @ 0x14047e1a0
// > ??> @ 0x1406a54ac
// > ??> @ 0x1406a54bc
// > ??> @ 0x1406db3e4
//
// 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)
{
bool result; // al
__int64 v10; // rcx
cocos2d::CCArray *v11; // rax
__int64 v12; // rcx
cocos2d::CCArray *v13; // rax
__int64 v14; // rcx
cocos2d::CCDictionary *v15; // rax
__int64 v16; // rcx
cocos2d::CCDictionary *v17; // rax
__int64 v18; // rcx
cocos2d::CCDictionary *v19; // rax
__int64 v20; // rcx
cocos2d::CCDictionary *v21; // rax
__int64 v22; // rcx
cocos2d::CCDictionary *v23; // rax
__int64 v24; // rcx
cocos2d::CCDictionary *v25; // rax
__int64 v26; // rcx
cocos2d::CCDictionary *v27; // rax
__int64 v28; // rcx
cocos2d::CCDictionary *v29; // rax
__int64 v30; // rcx
cocos2d::CCDictionary *v31; // rax
__int64 v32; // rcx
cocos2d::CCDictionary *v33; // rax
__int64 v34; // rcx
cocos2d::CCDictionary *v35; // rax
__int64 v36; // rcx
cocos2d::CCDictionary *v37; // rax
__int64 v38; // rcx
cocos2d::CCDictionary *v39; // rax
__int64 v40; // rcx
cocos2d::CCDictionary *v41; // rax
__int64 v42; // rcx
cocos2d::CCObject *v43; // rcx
cocos2d::CCDirector *v44; // rax
struct cocos2d::CCRect *v45; // rax
struct cocos2d::CCRect *v46; // rbx
cocos2d::CCString *v47; // rax
const char *CString; // rax
struct cocos2d::extension::CCScale9Sprite *v49; // rdi
cocos2d::extension::CCScale9Sprite_vtbl *v50; // rbx
const cocos2d::CCSize *v51; // rax
float v52; // xmm0_4
cocos2d::extension::CCScale9Sprite_vtbl *v53; // rbx
const cocos2d::CCPoint *v54; // rax
__int64 v55; // rcx
cocos2d::CCMenu *v56; // rax
cocos2d::CCLayer *m_mainLayer; // rcx
float v58; // xmm0_4
cocos2d::CCMenu_vtbl *v59; // rbx
const cocos2d::CCPoint *v60; // rax
__int64 v61; // rcx
cocos2d::CCArray *v62; // rax
float v63; // [rsp+30h] [rbp-48h]
cocos2d::CCSize v64; // [rsp+38h] [rbp-40h] BYREF
cocos2d::CCRect v65; // [rsp+40h] [rbp-38h] BYREF
result = FLAlertLayer::init_1(a1, 150);
if ( result )
{
v11 = (cocos2d::CCArray *)cocos2d::CCArray::create(v10);
a1->m_pageContainers = v11;
cocos2d::CCObject::retain(v11);
v13 = (cocos2d::CCArray *)cocos2d::CCArray::create(v12);
a1->m_groupContainers = v13;
cocos2d::CCObject::retain(v13);
v15 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v14);
a1->m_inputNodes = v15;
cocos2d::CCObject::retain(v15);
v17 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v16);
a1->m_valueControls = v17;
cocos2d::CCObject::retain(v17);
v19 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v18);
a1->m_valueToggles = v19;
cocos2d::CCObject::retain(v19);
v21 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v20);
a1->m_customValueToggles = v21;
cocos2d::CCObject::retain(v21);
v23 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v22);
a1->m_inputLabels = v23;
cocos2d::CCObject::retain(v23);
v25 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v24);
a1->m_triggerValues = v25;
cocos2d::CCObject::retain(v25);
v27 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v26);
a1->m_minSliderValues = v27;
cocos2d::CCObject::retain(v27);
v29 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v28);
a1->m_maxSliderValues = v29;
cocos2d::CCObject::retain(v29);
v31 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v30);
a1->m_customEasingLabels = v31;
cocos2d::CCObject::retain(v31);
v33 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v32);
a1->m_customEasingButtons = v33;
cocos2d::CCObject::retain(v33);
v35 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v34);
a1->m_customEasingTags = v35;
cocos2d::CCObject::retain(v35);
v37 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v36);
a1->m_customEasingScales = v37;
cocos2d::CCObject::retain(v37);
v39 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v38);
a1->m_disabledEasingButtons = v39;
cocos2d::CCObject::retain(v39);
v41 = (cocos2d::CCDictionary *)cocos2d::CCDictionary::create(v40);
a1->m_disableButtons = v41;
cocos2d::CCObject::retain(v41);
if ( a2 )
{
a1->m_gameObject = a2;
v43 = a2;
}
else
{
if ( !a3 )
{
LABEL_7:
a1->m_height = a5;
a1->m_width = a4;
a1->m_noElasticity = 1;
a1->m_disableTextDelegate = 1;
v44 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v42);
cocos2d::CCDirector::getWinSize(v44);
cocos2d::CCRect::CCRect(&v65, 0.0, 0.0, 80.0, 80.0);
v46 = v45;
v47 = cocos2d::CCString::createWithFormat("GJ_square0%i.png", a6);
CString = cocos2d::CCString::getCString(v47);
v49 = cocos2d::extension::CCScale9Sprite::create(CString, v46);
v50 = v49->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCSize::CCSize(&v64, a4, a5);
v50->setContentSize(v49, v51);
v52 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v49,
4294967294LL);
v53 = v49->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v52, v63 * 0.5);
v53->setPosition_0(v49, v54);
v49->setTag(v49, 1);
v56 = (cocos2d::CCMenu *)cocos2d::CCMenu::create(v55);
m_mainLayer = a1->m_mainLayer;
a1->m_buttonMenu = v56;
v58 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCMenu *, __int64))m_mainLayer->addChild_0)(
m_mainLayer,
v56,
10);
v59 = a1->m_buttonMenu->FLAlertLayer::__vftable;
cocos2d::CCPoint::CCPoint(v58, v63 * 0.5);
v59->setPosition_0(a1->m_buttonMenu, v60);
a1->m_joystickConnected = -1;
v62 = (cocos2d::CCArray *)cocos2d::CCArray::create(v61);
a1->m_multiTriggerContainer = v62;
cocos2d::CCObject::retain(v62);
return 1;
}
a1->m_gameObjects = a3;
v43 = a3;
}
cocos2d::CCObject::retain(v43);
goto LABEL_7;
}
return result;
}