// // SetupRotateCommandPopup::init from 0x61027c to 0x610c56 (2522 bytes) // // 1 xrefs: // > SetupRotateCommandPopup::create @ 0x610e70 // // 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:54:51 +0000 // int __fastcall SetupRotateCommandPopup::init(cocos2d::CCPoint **this, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 ButtonSprite *v5; // r6 cocos2d::CCObject *v6; // r11 float v8; // [sp+10h] [bp-84h] int v9; // [sp+30h] [bp-64h] void (__fastcall *v10)(cocos2d::CCObject *, _BYTE *); // [sp+34h] [bp-60h] cocos2d::CCPoint *v11; // [sp+3Ch] [bp-58h] float v12; // [sp+44h] [bp-50h] BYREF float v13; // [sp+48h] [bp-4Ch] _BYTE v14[8]; // [sp+4Ch] [bp-48h] BYREF _BYTE v15[8]; // [sp+54h] [bp-40h] BYREF _BYTE v16[8]; // [sp+5Ch] [bp-38h] BYREF _BYTE v17[8]; // [sp+64h] [bp-30h] BYREF _DWORD v18[2]; // [sp+6Ch] [bp-28h] BYREF int v19[3]; // [sp+74h] [bp-20h] BYREF int v20; // [sp+80h] [bp-14h] BYREF int v21; // [sp+84h] [bp-10h] int v22; // [sp+88h] [bp-Ch] v9 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 440.0, 310.0, 1, 0.0); if ( v9 ) { v4 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); cocos2d::CCDirector::sharedDirector(v4); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v12); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v14, v12 * 0.5, v13 * 0.5); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Setup Rotate Command", 0x14u); SetupTriggerPopup::addTitle(this, &v20); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v20); std::string::~string((int)&v20); memset(v19, 0, sizeof(v19)); std::string::__init(v19, "Help", 4u); v20 = 0; v21 = 0; v22 = 0; std::string::__init( &v20, "Rotates a group of objects a given amount of degrees.\n" "Target Group ID is the group of objects being rotated.\n" "Center Group ID defines the center to rotate around.\n" "Aim Mode rotates the objects to face a given target object.\n" "Follow Mode follows the rotation of a given target object. Use Dynamic Mode to update locations in" " real-time for the previous 2 options.\n" "Use Move Time -1 for an infinite action.", 0x1C7u); SetupTriggerPopup::addHelpButton(this, v19, &v20, 1065353216); std::string::~string((int)&v20); std::string::~string((int)v19); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Degrees:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -100.0, 100.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createValueControlAdvanced( this, 68, &v20, v18, 1061997773, 0, 1, 10, 0, -1011613696, 1135869952, 0, 9001, 1, 2, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "x360:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 105.0, 100.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createValueControlAdvanced( this, 69, &v20, v18, 1061997773, 0, 2, 10, 0, -1046478848, 1101004800, 0, 9001, 1, 0, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Rot Target ID:", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, 90.0); cocos2d::CCPoint::operator+(v18, v14, v17); IDNameInput::create((int)this, (int)(this + 110), 1, 401, (int)&v20, (int)v18, 0.8, 6, 9002, 0, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Rot Offset:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 80.0, 90.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createValueControlAdvanced( this, 402, &v20, v18, 1061997773, 1, 1, 10, 1, -1011613696, 1135869952, 0, 9002, 0, 2, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 170.0, 120.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v20, (int)v18, 0, 0, 9002, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 170.0, 90.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v20, (int)v18, 0, 0, 9002, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Aim\nMode", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -180.0, 48.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 100, (int)&v20, (int)v18, 0, 0, 0, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Follow\nMode", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -80.0, 48.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 394, (int)&v20, (int)v18, 0, 0, 0, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Dynamic\nMode", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 20.0, 48.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 397, (int)&v20, (int)v18, 0, 0, 0, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Lock Obj\nRotation", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 120.0, 48.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createToggleValueControl((int)this, 70, (int)&v20, (int)v18, 0, 0, 0, 1.0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Move Time:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, -100.0, 0.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createValueControlAdvanced( this, 10, &v20, v18, 1061997773, 0, 1, 10, 0, 0, 1092616192, 0, 0, 0, 2, 0); std::string::~string((int)&v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 105.0, 5.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createEasingControls(this, v18, 1061997773, 0, 9003); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Easing:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 105.0, 0.0); cocos2d::CCPoint::operator+(v18, v14, v17); SetupTriggerPopup::createValueControlAdvanced( this, 403, &v20, v18, 1061997773, 0, 2, 10, 0, 0, 1120403456, 0, 9004, 0, 2, 0); std::string::~string((int)&v20); v5 = ButtonSprite::create( (ButtonSprite *)"Inf", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_04.png", (const char *)0x41F00000, v8); (*(void (__fastcall **)(ButtonSprite *, int))(*(_DWORD *)v5 + 80))(v5, 1056964608); v18[0] = SetupRotateCommandPopup::onInfiniteDuration; v18[1] = 0; v6 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v5, 0, (int)this, (int)SetupRotateCommandPopup::onInfiniteDuration, 0); (*(void (__fastcall **)(_DWORD, cocos2d::CCObject *))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v6); v10 = *(void (__fastcall **)(cocos2d::CCObject *, _BYTE *))(*(_DWORD *)v6 + 92); v11 = *(this + 111); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v15, -10.0, 0.0); cocos2d::CCPoint::operator+(v16, v14, v15); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v17, v11); v10(v6, v17); SetupTriggerPopup::addObjectToGroup((SetupTriggerPopup *)this, v6, 9004); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v6, 0); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Target Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -80.0, -85.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 51, (int)&v20, (int)v17, 0.8, 6, 0, 0, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "Center Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 80.0, -85.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 71, (int)&v20, (int)v17, 0.8, 6, 0, 0, 0); std::string::~string((int)&v20); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, v12 * 0.5, v13 * 0.5); cocos2d::CCPoint::operator=(v14, v17); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "MinX ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -80.0, 40.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 516, (int)&v20, (int)v17, 0.8, 6, 0, 1, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "MaxX ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 80.0, 40.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 518, (int)&v20, (int)v17, 0.8, 6, 0, 1, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "MinY ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, -80.0, -40.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 517, (int)&v20, (int)v17, 0.8, 6, 0, 1, 0); std::string::~string((int)&v20); v20 = 0; v21 = 0; v22 = 0; std::string::__init(&v20, "MaxY ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v16, 80.0, -40.0); cocos2d::CCPoint::operator+(v17, v14, v16); IDNameInput::create((int)this, (int)(this + 110), 1, 519, (int)&v20, (int)v17, 0.8, 6, 0, 1, 0); std::string::~string((int)&v20); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 139) * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage((SetupTriggerPopup *)this, 0, 0); SetupRotateCommandPopup::updateControlVisibility((SetupRotateCommandPopup *)this); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source