// // SetupAreaMoveTriggerPopup::addAreaDefaultControls from 0x5581d0 to 0x558d56 (2950 bytes) // // 6 xrefs: // > SetupAreaMoveTriggerPopup::init @ 0x55940e // > SetupAreaTransformTriggerPopup::init @ 0x559a7a // > SetupAreaRotateTriggerPopup::init @ 0x559eba // > SetupAreaFadeTriggerPopup::init @ 0x55a358 // > SetupAreaTintTriggerPopup::init @ 0x55aa6c // > SetupAreaTriggerPopup::init @ 0x55ae70 // // 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 // void SetupAreaMoveTriggerPopup::addAreaDefaultControls(SetupAreaMoveTriggerPopup *a1, int a2) { cocos2d::CCDirector *v3; // r0 cocos2d::CCSprite *v4; // r6 CCMenuItemSpriteExtra *v5; // r11 cocos2d::CCMenu *m_buttonMenu; // r10 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCArray *v8; // r0 cocos2d::CCArray *v9; // r0 cocos2d::CCArray *v10; // r0 int v11; // r8 cocos2d::CCMenu *v12; // r11 cocos2d::CCLayer *m_mainLayer; // r10 CCMenuItemToggler *v14; // r9 CCMenuItemToggler_vtbl *v15; // r3 cocos2d::CCArray *v16; // r0 void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // r5 float v18; // r0 cocos2d::CCArray *v19; // r0 int v20; // r6 int v21; // s21 _BOOL4 v22; // r10 cocos2d::CCArray *PageContainer; // r11 char *v24; // r1 int v25; // r5 char *v26; // r1 char *v27; // r1 ButtonSprite *v28; // r7 char *v29; // r3 ButtonSprite *v30; // r0 CCMenuItemSpriteExtra *v31; // r5 void (__fastcall *v32)(ButtonSprite *, cocos2d::CCPoint *); // r8 float width; // s18 int v34; // r0 cocos2d::CCMenu *v35; // r0 float v36; // s18 void (__fastcall *v37)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 bool v38; // [sp+10h] [bp-94h] _BOOL4 v39; // [sp+38h] [bp-6Ch] cocos2d::CCPoint *v40; // [sp+3Ch] [bp-68h] cocos2d::CCMenu *v41; // [sp+3Ch] [bp-68h] int v42; // [sp+40h] [bp-64h] bool v44; // [sp+5Ah] [bp-4Ah] BYREF bool v45; // [sp+5Bh] [bp-49h] BYREF cocos2d::CCSprite *v46; // [sp+5Ch] [bp-48h] BYREF int v47; // [sp+60h] [bp-44h] BYREF cocos2d::CCSize v48; // [sp+64h] [bp-40h] BYREF cocos2d::CCPoint v49; // [sp+6Ch] [bp-38h] BYREF _BYTE v50[8]; // [sp+74h] [bp-30h] BYREF cocos2d::CCPoint v51; // [sp+7Ch] [bp-28h] BYREF cocos2d::CCPoint v52; // [sp+84h] [bp-20h] BYREF cocos2d::CCPoint v53; // [sp+8Ch] [bp-18h] BYREF cocos2d::CCPoint v54; // [sp+94h] [bp-10h] BYREF _DWORD v55[2]; // [sp+9Ch] [bp-8h] BYREF cocos2d::CCPoint v56; // [sp+A4h] [bp+0h] BYREF cocos2d::CCPoint v57; // [sp+ACh] [bp+8h] BYREF v3 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v48, v3); cocos2d::CCPoint::CCPoint(&v49, v48.width * 0.5, (float)(v48.height * 0.5) + 95.0); sub_776584((int)v55, "OffsetY"); cocos2d::CCPoint::CCPoint(&v56, -75.0, -0.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 252, (int)v55, &v57, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 1, 99, 1, 2, 0); sub_774008(v55); sub_776584((int)v55, "+-"); cocos2d::CCPoint::CCPoint(&v56, 75.0, -0.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 253, (int)v55, &v57, (cocos2d::CCZone *)0x3F266666, 0, Int, 6, 0, nullptr, 100.0, 1, 99, 1, 2, 0); sub_774008(v55); sub_776584((int)v55, "EffectID:"); cocos2d::CCPoint::CCPoint(&v56, 85.0, -50.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 225, (int)v55, &v57, (cocos2d::CCZone *)0x3F266666, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(v55); v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_plus2Btn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v4->setScale)(v4, 1061997773); v55[1] = 0; v55[0] = SetupAreaMoveTriggerPopup::onNextFreeEffectID; v5 = CCMenuItemSpriteExtra::create( v4, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupAreaMoveTriggerPopup::onNextFreeEffectID, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v5); m_buttonMenu = a1->m_buttonMenu; setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint(&v54, 145.0, -50.0); cocos2d::CCPoint::operator+(&v56, &v49, &v54); cocos2d::CCNode::convertToNodeSpace(&v57, m_buttonMenu, &v56); setPosition(v5, &v57); SetupTriggerPopup::addObjectToPage(a1, v5, 1); sub_776584((int)&v54, "Target Group ID:"); cocos2d::CCPoint::CCPoint(&v56, 85.0, -100.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(&v54); sub_776584((int)&v54, "Center Group ID:"); cocos2d::CCPoint::CCPoint(&v56, 85.0, -150.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 71, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 1, Uint, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(&v54); sub_776584((int)&v54, "Priority:"); cocos2d::CCPoint::CCPoint(&v56, 85.0, -200.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 341, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 1, Int, 6, 1, nullptr, 100.0, 1, 0, 0, 2, 0); sub_774008(&v54); sub_776584((int)&v54, "ModFront"); cocos2d::CCPoint::CCPoint(&v56, -75.0, -25.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 263, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 10.0, 1, 0, 1, 2, 0); sub_774008(&v54); sub_776584((int)&v54, "ModBack"); cocos2d::CCPoint::CCPoint(&v56, -75.0, -50.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 264, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 10.0, 1, 0, 1, 2, 0); sub_774008(&v54); sub_776584((int)&v54, "Deadzone"); cocos2d::CCPoint::CCPoint(&v56, -75.0, -75.0); cocos2d::CCPoint::operator+(&v57, &v49, &v56); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 282, (int)&v54, &v57, (cocos2d::CCZone *)0x3F266666, 0, Float, 6, 0, nullptr, 1.0, 1, 0, 1, 2, 0); v8 = (cocos2d::CCArray *)sub_774008(&v54); v9 = (cocos2d::CCArray *)cocos2d::CCArray::create(v8); a1->m_targetButtons = v9; cocos2d::CCObject::retain(v9); cocos2d::CCPoint::CCPoint(&v57, 170.0, 40.0); v10 = (cocos2d::CCArray *)cocos2d::CCPoint::operator+(v50, &v49, &v57); v11 = 1; do { v42 = -v11; v40 = (cocos2d::CCPoint *)cocos2d::CCArray::create(v10); targetKeyToString((int)&v51, -v11); sub_776584((int)&v52, (char *)LODWORD(v51.x)); v12 = a1->m_buttonMenu; LODWORD(v56.x) = SetupAreaMoveTriggerPopup::onSpecialTarget; v56.y = 0.0; cocos2d::CCPoint::CCPoint(&v53, 0.0, (float)v11 * -23.0); cocos2d::CCPoint::operator+(&v54, v50, &v53); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v57, 6.0, 0.0); v14 = GameToolbox::createToggleButton( (int)&v52, LODWORD(v56.x), LODWORD(v56.y), 0, v12, &v54, a1, m_mainLayer, 0.6, 0.35, 110.0, (int)&v57, (int)"bigFont.fnt", 0, 0, (cocos2d::CCArray *)v40); sub_774008(&v52); sub_774008(&v51); v15 = v14->cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v14->m_notClickable = 1; ++v11; v15->setTag(v14, v42); SetupTriggerPopup::addObjectsToPage(a1, (cocos2d::CCArray *)v40, 1); v10 = (cocos2d::CCArray *)cocos2d::CCArray::addObject(a1->m_targetButtons, v14); } while ( v11 != 12 ); cocos2d::CCPoint::CCPoint(&v51, (float)(v48.width * 0.5) - 10.0, (float)(v48.height * 0.5) - 80.0); cocos2d::CCPoint::CCPoint( &v52, (float)((float)(v48.width * 0.5) - (float)(a1->m_width * 0.5)) + 20.0, (float)((float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0) + 30.0); sub_776584((int)&v53, "Ignore\nGParent"); cocos2d::CCPoint::CCPoint(&v54, 90.0, 0.0); cocos2d::CCPoint::operator+(&v57, &v52, &v54); SetupTriggerPopup::createToggleValueControl(a1, 280, (int)&v53, &v57, 0, 1, 0, 1.0); sub_774008(&v53); sub_776584((int)&v54, "Ignore\nLinked"); cocos2d::CCPoint::CCPoint(&v57, &v52); SetupTriggerPopup::createToggleValueControl(a1, 281, (int)&v54, &v57, 0, 1, 0, 1.0); sub_774008(&v54); sub_776584((int)&v53, "DE\nAP"); cocos2d::CCPoint::CCPoint(&v54, 180.0, 20.0); cocos2d::CCPoint::operator+(&v57, &v52, &v54); SetupTriggerPopup::createToggleValueControl(a1, 539, (int)&v53, &v57, 0, (int)&dword_0 + 1, 0, 1.0); v16 = (cocos2d::CCArray *)sub_774008(&v53); if ( (unsigned int)(a2 - 3006) <= 2 ) { sub_776584((int)&v53, "Easing"); cocos2d::CCPoint::CCPoint(&v54, -95.0, -150.0); cocos2d::CCPoint::operator+(&v57, &v49, &v54); SetupTriggerPopup::createCustomEasingControls( a1, (int)&v53, &v57, (cocos2d::CCFloat *)0x3F333333, (cocos2d::CCInteger *)((char *)&dword_F0 + 2), (cocos2d::CCInteger *)((char *)&dword_F0 + 3), 0, 0); sub_774008(&v53); cocos2d::CCPoint::CCPoint( &v53, (float)(v48.width * 0.5) + 50.0, (float)((float)(v48.height * 0.5) - (float)(a1->m_height * 0.5)) + 20.0); sub_776584((int)&v54, "Ease\nOut"); cocos2d::CCPoint::CCPoint(&v57, &v53); SetupTriggerPopup::createToggleValueControl(a1, 261, (int)&v54, &v57, 0, 0, 0, 1.0); sub_774008(&v54); sub_776584((int)&v47, "Easing2"); cocos2d::CCPoint::CCPoint(&v54, 95.0, -150.0); cocos2d::CCPoint::operator+(&v57, &v49, &v54); SetupTriggerPopup::createCustomEasingControls( a1, (int)&v47, &v57, (cocos2d::CCFloat *)0x3F333333, (cocos2d::CCInteger *)&dword_F8, (cocos2d::CCInteger *)((char *)&dword_F8 + 1), 0, 9); sub_774008(&v47); toggleGroup = a1->toggleGroup; v18 = COERCE_FLOAT(((int (__fastcall *)(SetupAreaMoveTriggerPopup *, int))a1->getValue)(a1, 261)); v16 = (cocos2d::CCArray *)((int (__fastcall *)(SetupAreaMoveTriggerPopup *, int, bool))toggleGroup)( a1, 9, v18 != 0.0); } v19 = (cocos2d::CCArray *)cocos2d::CCArray::create(v16); v20 = 0; a1->m_modeButtons = v19; cocos2d::CCObject::retain(v19); v21 = (int)COERCE_FLOAT(((int (__fastcall *)(SetupAreaMoveTriggerPopup *, int))a1->getValue)(a1, 262)); v22 = COERCE_FLOAT(((int (__fastcall *)(SetupAreaMoveTriggerPopup *, int))a1->getValue)(a1, 276)) != 0.0; v39 = COERCE_FLOAT(((int (__fastcall *)(SetupAreaMoveTriggerPopup *, int))a1->getValue)(a1, 283)) != 0.0; PageContainer = SetupTriggerPopup::getPageContainer(a1, 1); do { v46 = (cocos2d::CCSprite *)&unk_ACDDA8; switch ( v20 ) { case 1: v24 = "edit_areaModeBtn05_001.png"; goto LABEL_8; case 2: v24 = "edit_areaModeBtn01_001.png"; goto LABEL_8; case 3: v24 = "edit_areaModeBtn02_001.png"; goto LABEL_8; case 4: v24 = "edit_areaModeBtn03_001.png"; goto LABEL_8; case 5: v24 = "edit_areaModeBtn03b_001.png"; goto LABEL_8; case 6: v26 = "edit_areaModeBtn01_001.png"; goto LABEL_15; case 7: v26 = "edit_areaModeBtn02_001.png"; LABEL_15: sub_7753D4((int)&v46, v26); v25 = 1119092736; break; case 8: v27 = "edit_areaModeBtn03b_001.png"; goto LABEL_18; case 9: v27 = "edit_areaModeBtn03_001.png"; LABEL_18: sub_7753D4((int)&v46, v27); v25 = -1028390912; break; default: v24 = "edit_areaModeBtn04_001.png"; LABEL_8: sub_7753D4((int)&v46, v24); v25 = 0; break; } v28 = (ButtonSprite *)cocos2d::CCSprite::createWithSpriteFrameName((const char *)v46); ((void (__fastcall *)(ButtonSprite *, int))v28->setRotation)(v28, v25); SetupAreaMoveTriggerPopup::getModeValues(a1, v20, &v47, &v44, &v45); if ( v21 == v47 ) { if ( v44 == v22 ) { if ( v45 == v39 ) v29 = "GJ_button_02.png"; else v29 = "GJ_button_04.png"; } else { v29 = "GJ_button_04.png"; } } else { v29 = "GJ_button_04.png"; } v30 = ButtonSprite::create( v28, (cocos2d::CCSprite *)&dword_20, 0, 32.0, 1.0, (_BOOL4)&dword_0 + 1, v29, (const char *)&dword_0 + 1, v38); v57.y = 0.0; LODWORD(v57.x) = SetupAreaMoveTriggerPopup::onMode; v31 = CCMenuItemSpriteExtra::create( v30, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupAreaMoveTriggerPopup::onMode, (unsigned int)a1)); v31->setTag(v31, v20); cocos2d::CCArray::addObject(PageContainer, v31); cocos2d::CCArray::addObject(a1->m_modeButtons, v31); (*(void (__fastcall **)(ButtonSprite *, int))((char *)&v28->copyWithZone + (unsigned int)&dword_50))( v28, 1072064102); v32 = *(void (__fastcall **)(ButtonSprite *, cocos2d::CCPoint *))((char *)&v28->copyWithZone + (unsigned int)off_5C); width = v31->getContentSize(v31)->width; v34 = (int)v31->getContentSize(v31); cocos2d::CCPoint::CCPoint(&v54, width * 0.5, *(float *)(v34 + 4) * 0.5); v32(v28, &v54); ((void (__fastcall *)(CCMenuItemSpriteExtra *, int))v31->setScale)(v31, 1056964608); v35 = a1->m_buttonMenu; v31->m_baseScale = 0.5; v35->addChild(v35, v31); v36 = -25.0; v37 = v31->setPosition; v41 = a1->m_buttonMenu; if ( v20 <= 4 ) v36 = 0.0; cocos2d::CCPoint::CCPoint( &v53, (float)((float)((float)(v48.width * 0.5) - (float)(a1->m_width * 0.5)) + 50.0) + (float)((float)(v20 % 5) * 25.0), (float)((float)(v48.height * 0.5) - 20.0) + v36); cocos2d::CCNode::convertToNodeSpace(&v54, v41, &v53); v37(v31, &v54); ++v20; sub_774008(&v46); } while ( v20 != 10 ); }
GD Web Decomp Icon

GD Web Decomp

Raw Source