// // SetupAreaAnimTriggerPopup::init from 0x692408 to 0x693400 (4088 bytes) // // 1 xrefs: // > SetupAreaAnimTriggerPopup::create @ 0x6934b4 // // 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:13 +0000 // GameManager *__fastcall SetupAreaAnimTriggerPopup::init( cocos2d::CCDictionary **this, EnterEffectObject *a2, cocos2d::CCArray *a3, int a4) { cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // r0 const char *v7; // r1 int v8; // r0 int v9; // r0 void (__fastcall *v10)(int, _BYTE *); // r11 int v11; // r0 cocos2d::CCDictionary *v12; // r3 void (__fastcall *v13)(cocos2d::CCDictionary **, int, _DWORD); // r3 float v14; // r2 GameManager *v16; // [sp+30h] [bp-64h] cocos2d::CCPoint *v17; // [sp+34h] [bp-60h] int v18; // [sp+3Ch] [bp-58h] float v19; // [sp+44h] [bp-50h] BYREF float v20; // [sp+48h] [bp-4Ch] _BYTE v21[8]; // [sp+4Ch] [bp-48h] BYREF _BYTE v22[8]; // [sp+54h] [bp-40h] BYREF _BYTE v23[8]; // [sp+5Ch] [bp-38h] BYREF _BYTE v24[8]; // [sp+64h] [bp-30h] BYREF _DWORD v25[2]; // [sp+6Ch] [bp-28h] BYREF int v26[3]; // [sp+74h] [bp-20h] BYREF int v27; // [sp+80h] [bp-14h] BYREF int v28; // [sp+84h] [bp-10h] int v29; // [sp+88h] [bp-Ch] v16 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v16 ) { (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 170))(this); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Area Anim Trigger", 0x11u); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v27); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v27); std::string::~string((int)&v27); memset(v26, 0, sizeof(v26)); std::string::__init(v26, "Help", 4u); v27 = 0; v28 = 0; v29 = 0; std::string::__init( &v27, "Edits the properties of an Area trigger.\n" "Use Group ID or Effect ID to link to the correct one.", 0x76u); SetupTriggerPopup::addHelpButton((int)this, (int)v26, (int)&v27, 1065353216); std::string::~string((int)&v27); std::string::~string((int)v26); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v19); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, v19 * 0.5, (float)(v20 * 0.5) + 96.0); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Length", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, 0.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 222, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, 0.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 223, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Offset", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -22.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 220, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -22.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 221, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "OffsetY", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -44.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 252, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -44.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 253, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, -1027080192, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "ModFront", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -66.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 263, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1092616192, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "BK", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -66.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 264, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1092616192, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Duration", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -88.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupTriggerPopup::createValueControlAdvanced( this, 10, (unsigned __int8 *)&v27, (int)v25, 1058642330, 0, 1, 6, 0, 0, 0x40000000, 0, 0, 1, 2, 0); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "DeadZ", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -88.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 282, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, COERCE_INT(1.0), 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Easing", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -112.0, -154.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupTriggerPopup::createCustomEasingControls( (int)this, (int)&v27, (int)v25, (cocos2d::CCFloat *)0x3F333333, (cocos2d::CCInteger *)((char *)&dword_F0 + 2), (cocos2d::CCInteger *)((char *)&dword_F0 + 3), 0, 0); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "GroupID", 7u); if ( a4 == 3011 ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -176.0); cocos2d::CCPoint::operator+(v25, v21, v24); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v27, (int)v25, 0.6, 6, 0, 1, 1); } else { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 110.0, -176.0); cocos2d::CCPoint::operator+(v25, v21, v24); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v27, (int)v25, 0.6, 6, 0, 1, 0); } std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Use\nEID", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v25, (float)(v19 * 0.5) + 60.0, (float)((float)(v20 * 0.5) - (float)(*((float *)this + 140) * 0.5)) + 20.0); SetupTriggerPopup::createToggleValueControl((int)this, 355, (int)&v27, (const cocos2d::CCPoint *)v25, 0, 0, 0, 1.0); std::string::~string((int)&v27); switch ( a4 ) { case 3011: v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "MoveDist", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 218, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 219, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 1, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "MoveAngle", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 231, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1128792064, 0, 1, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 232, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1128792064, 0, 1, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "XY\nMode", 7u); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v25, (float)((float)(*((float *)this + 139) * 0.5) + (float)(v19 * 0.5)) - 58.0, (float)((float)(*((float *)this + 140) * 0.5) + (float)(v20 * 0.5)) - 20.0); SetupTriggerPopup::createToggleValueControl( (int)this, 241, (int)&v27, (const cocos2d::CCPoint *)v25, 0, 0, 0, 1.0); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "RFade", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -154.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 288, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1114636288, 0, 1, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "MoveX", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 237, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 238, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1120403456, 0, 2, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "MoveY", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 239, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 240, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 2, 6, 0, 0, 1128792064, 0, 2, 1); goto LABEL_11; case 3012: v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Rotation", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 270, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, -1011613696, 1135869952, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 271, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1127481344, 0, 0, 1); goto LABEL_11; case 3013: v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "ScaleX", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 233, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 234, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1120403456, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "ScaleY", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 235, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1128792064, 0, 0, 1); std::string::~string((int)&v27); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "+-", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, 90.0, -132.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 236, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, 1128792064, 0, 0, 1); goto LABEL_11; case 3014: v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Opacity", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 275, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, COERCE_INT(1.0), 0, 0, 1); goto LABEL_11; case 3015: v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Tint %", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v24, -90.0, -110.0); cocos2d::CCPoint::operator+(v25, v21, v24); SetupAreaAnimTriggerPopup::createValueControlAdvancedAnim( this, 265, (int)&v27, (cocos2d::CCPoint *)v25, 1058642330, 0, 1, 6, 0, 0, COERCE_INT(1.0), 0, 1, 1); std::string::~string((int)&v27); v8 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v7); v25[0] = SetupAreaTintTriggerPopup::onHSV; v25[1] = 0; v9 = CCMenuItemSpriteExtra::create(v8, 0, (int)this, (int)SetupAreaTintTriggerPopup::onHSV, 0); *(this + 181) = (cocos2d::CCDictionary *)v9; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v9); v18 = (int)*(this + 181); v10 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 92); v17 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v22, 75.0, -120.0); cocos2d::CCPoint::operator+(v23, v21, v22); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v24, v17); v10(v18, v24); SetupAreaTintTriggerPopup::updateHSVButton((SetupAreaTintTriggerPopup *)this); v27 = 0; v28 = 0; v29 = 0; std::string::__init(&v27, "Edit\nHSV", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 125.0, -120.0); cocos2d::CCPoint::operator+(v24, v21, v23); SetupTriggerPopup::createToggleValueControl( (int)this, 278, (int)&v27, (const cocos2d::CCPoint *)v24, 0, 0, 0, 1.0); LABEL_11: std::string::~string((int)&v27); break; default: break; } (*((void (__fastcall **)(cocos2d::CCDictionary **))*this + 179))(this); if ( a4 == 3011 ) { v11 = cocos2d::CCDictionary::objectForKey(*(this + 154), 241); v12 = *this; if ( v11 ) { v13 = *((void (__fastcall **)(cocos2d::CCDictionary **, int, _DWORD))v12 + 182); if ( *(float *)(v11 + 52) == 0.0 ) v14 = 0.0; else v14 = 1.0; v13(this, 241, LODWORD(v14)); } else { (*((void (__fastcall **)(cocos2d::CCDictionary **, int, _DWORD))v12 + 169))(this, 1, 0); (*((void (__fastcall **)(cocos2d::CCDictionary **, int, _DWORD))*this + 169))(this, 2, 0); } } *((_BYTE *)this + 568) = 0; } return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source