// // SetupSequenceTriggerPopup::init from 0x6bc410 to 0x6bcd78 (2408 bytes) // // 1 xrefs: // > SetupSequenceTriggerPopup::create @ 0x6bcf90 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:56:47 +0000 // GameManager *__fastcall SetupSequenceTriggerPopup::init(SetupSequenceTriggerPopup *this, SequenceTriggerGameObject *a2) { cocos2d::CCArray *v3; // r0 cocos2d::CCObject *v4; // r0 cocos2d::CCDirector *v5; // r0 const char *v6; // r2 int v7; // r5 void (__fastcall *v8)(int, _BYTE *); // r8 ButtonSprite *v9; // r0 int v10; // r0 int v11; // r8 const cocos2d::CCPoint *v12; // r11 void (__fastcall *v13)(int, _BYTE *); // r10 const cocos2d::CCPoint *v14; // r8 int v15; // r8 const char *v16; // r1 char *v17; // r1 cocos2d::CCSprite *v18; // r0 ButtonSprite *v19; // r0 ButtonSprite *v20; // r7 void (*v21)(void); // r3 char *v22; // r2 ButtonSprite *v23; // r0 _DWORD *v24; // r10 int v25; // r8 void (__fastcall *v26)(int, _BYTE *); // r9 void (__fastcall *v27)(int, _BYTE *); // r9 int v28; // r9 float v29; // r0 int v30; // s16 float v32; // [sp+10h] [bp-ACh] float v33; // [sp+14h] [bp-A8h] GameManager *v34; // [sp+30h] [bp-8Ch] void (__fastcall *v35)(_DWORD *, _BYTE *); // [sp+34h] [bp-88h] float v36; // [sp+54h] [bp-68h] BYREF float v37; // [sp+58h] [bp-64h] _BYTE v38[8]; // [sp+5Ch] [bp-60h] BYREF _BYTE v39[8]; // [sp+64h] [bp-58h] BYREF _BYTE v40[8]; // [sp+6Ch] [bp-50h] BYREF void *v41; // [sp+74h] [bp-48h] BYREF int v42; // [sp+78h] [bp-44h] _BYTE v43[8]; // [sp+7Ch] [bp-40h] BYREF int v44; // [sp+84h] [bp-38h] int v45; // [sp+88h] [bp-34h] int v46; // [sp+8Ch] [bp-30h] BYREF int v47; // [sp+90h] [bp-2Ch] cocos2d::CCSprite *v48; // [sp+94h] [bp-28h] char v49[4]; // [sp+98h] [bp-24h] BYREF int v50; // [sp+9Ch] [bp-20h] char *v51; // [sp+A0h] [bp-1Ch] _BYTE v52[16]; // [sp+A4h] [bp-18h] BYREF v34 = SetupTriggerPopup::init(this, a2, nullptr, 420.0, 300.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v34 ) { v3 = (cocos2d::CCArray *)SetupTriggerPopup::preSetup(this); v4 = (cocos2d::CCObject *)cocos2d::CCArray::create(v3); *((_DWORD *)this + 180) = v4; v5 = (cocos2d::CCDirector *)cocos2d::CCObject::retain(v4); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v36); v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Sequence Trigger", "goldFont.fnt", v6); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v7); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 80))(v7, 1060320051); v8 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v7 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v52, v36 * 0.5, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v37 * 0.5)) - 18.0); v8(v7, v52); v9 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, v32); v44 = 684; v45 = 1; v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, 684, 1); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10); v46 = 0; v47 = 0; v48 = nullptr; std::string::__init(&v46, "Help", 4u); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init( (int *)v49, "Activates a sequence of triggers. Every time it is called, the sequence is advanced one step.\n" "GroupID is called the amount of times given by Count.\n" "MinInt is the minimum interval between each step.\n" "Mode Stop stops the sequence at the end.\n" "Mode Loop restarts the sequence after ending.\n" "Mode Last calls last group after the end.\n" "Reset Full and Reset Step go back in the sequence if activation does not happen in a set time.", 0x1E5u); v11 = InfoAlertButton::create((char *)&v46, (int)v49, 1065353216); std::string::~string((int)v49); std::string::~string((int)&v46); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11); v12 = *((const cocos2d::CCPoint **)this + 111); v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v43, (float)((float)(v36 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v37 * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v52, v12); v13(v11, v52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v38, (float)(v36 * 0.5) - 65.0, (float)(v37 * 0.5) + 82.0); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "GroupID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -60.0, 0.0); cocos2d::CCPoint::operator+(v52, v38, v43); IDNameInput::create((int)this, (int)this + 440, 1, -1, (int)v49, (int)v52, 0.7, 6, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Count:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 60.0, 0.0); cocos2d::CCPoint::operator+(v52, v38, v43); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, -2, (unsigned __int8 *)v49, (int)v52, 1060320051, 1, 2, 6, 1, 0, 1120403456, 0, 0, 0, 2, 0); std::string::~string((int)v49); v14 = *((const cocos2d::CCPoint **)this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 138.0, 0.0); cocos2d::CCPoint::operator+(v52, v38, v43); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v39, v14); v15 = 0; while ( 1 ) { v42 = 0; v41 = SetupSequenceTriggerPopup::onAddChance; v46 = 0; v47 = 0; v48 = nullptr; std::string::__init(&v46, "edit_addCBtn_001.png", 0x14u); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "GJ_button_01.png", 0x10u); if ( v15 == 1 ) break; if ( v15 > 1 ) { std::string::assign(&v46, "edit_upBtn_001.png"); v17 = "GJ_button_05.png"; v41 = SetupSequenceTriggerPopup::onChangeOrder; goto LABEL_5; } LABEL_6: if ( (v46 & 1) != 0 ) v18 = v48; else v18 = (cocos2d::CCSprite *)((char *)&v46 + 1); v19 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName(v18, v16); v20 = v19; if ( v15 == 2 ) { v21 = *(void (**)(void))(*(_DWORD *)v19 + 180); } else { if ( v15 != 3 ) goto LABEL_14; v21 = *(void (**)(void))(*(_DWORD *)v19 + 180); } v21(); LABEL_14: if ( (v49[0] & 1) != 0 ) v22 = v51; else v22 = &v49[1]; v23 = ButtonSprite::create( v20, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, (_BOOL4)&dword_0 + 1, v22, (const char *)&dword_0 + 1, 0.0, v33); v24 = (_DWORD *)CCMenuItemSpriteExtra::create((int)v23, 0, (int)this, (int)v41, v42); (*(void (__fastcall **)(_DWORD *, int))(*v24 + 80))(v24, 1058642330); v24[79] = 1058642330; (*(void (__fastcall **)(_DWORD, _DWORD *))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v24); v35 = *(void (__fastcall **)(_DWORD *, _BYTE *))(*v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, (float)v15 * 32.0, 0.0); cocos2d::CCPoint::operator+(v52, v39, v43); v35(v24, v52); (*(void (__fastcall **)(_DWORD *, int))(*v24 + 36))(v24, v15++); std::string::~string((int)v49); std::string::~string((int)&v46); if ( v15 == 4 ) { cocos2d::CCRect::CCRect((cocos2d::CCRect *)v52, 0.0, 0.0, 80.0, 80.0); v25 = cocos2d::extension::CCScale9Sprite::create("square02_001.png", v52); (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 456))(v25, 50); v26 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v25 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v52, 370.0, 90.0); v26(v25, v52); (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v25, -1); v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v25 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, v36 * 0.5, (float)(v37 * 0.5) + 14.0); v27(v25, v52); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v40, v36 * 0.5, (float)(v37 * 0.5) - 50.0); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "MinInt:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -91.0, -0.0); cocos2d::CCPoint::operator+(v52, v40, v43); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 437, (unsigned __int8 *)v49, (int)v52, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 2, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Reset:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 91.0, -0.0); cocos2d::CCPoint::operator+(v52, v40, v43); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 438, (unsigned __int8 *)v49, (int)v52, 1059481190, 0, 1, 6, 0, 0, 1065353216, 0, 0, 1, 2, 0); std::string::~string((int)v49); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v52, -25.0, -34.0); cocos2d::CCPoint::operator+(&v41, v40, v52); v28 = (int)COERCE_FLOAT((*(int (__fastcall **)(SetupSequenceTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 436)); v29 = (*(float (__fastcall **)(SetupSequenceTriggerPopup *, int))(*(_DWORD *)this + 732))(this, 439); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; v30 = (int)v29; std::string::__init((int *)v49, "Mode\nStop", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -158.0, 0.0); cocos2d::CCPoint::operator+(v52, &v41, v43); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 0, v28 == 0, 1, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Mode\nLoop", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, -79.0, 0.0); cocos2d::CCPoint::operator+(v52, &v41, v43); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 1, v28 == 1, 1, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Mode\nLast", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 0.0, 0.0); cocos2d::CCPoint::operator+(v52, &v41, v43); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 2, v28 == 2, 1, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Reset\nFull", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 79.0, 0.0); cocos2d::CCPoint::operator+(v52, &v41, v43); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 100, v30 != 1, 1, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Reset\nStep", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v43, 158.0, 0.0); cocos2d::CCPoint::operator+(v52, &v41, v43); SetupTriggerPopup::createCustomToggleValueControl( (int)this, 101, v30 == 1, 1, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0); std::string::~string((int)v49); *(_DWORD *)v49 = 0; v50 = 0; v51 = nullptr; std::string::__init((int *)v49, "Unique\nRemap", 0xCu); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v52, (float)(v36 * 0.5) + 55.0, (float)((float)(v37 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl( (int)this, 505, (int)v49, (const cocos2d::CCPoint *)v52, 0, 0, 0, 1.0); std::string::~string((int)v49); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); SetupSequenceTriggerPopup::updateGroupIDButtons(this); SetupTriggerPopup::postSetup(this); SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, -2, 1.0); return v34; } } std::string::assign(&v46, "edit_delCBtn_001.png"); v17 = "GJ_button_06.png"; v41 = SetupSequenceTriggerPopup::onDeleteSelected; LABEL_5: std::string::assign((int *)v49, v17); goto LABEL_6; } return v34; }
GD Web Decomp Icon

GD Web Decomp

Raw Source