// // SetupRotateCommandPopup::init from 0xa7b3ec to 0xa7c1d8 (3564 bytes) // // 2 xrefs: // > SetupRotateCommandPopup::create @ 0xa7c438 // > @ 0x7b448 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:00:29 +0000 // __int64 __fastcall SetupRotateCommandPopup::init(cocos2d::CCNode **this, EffectGameObject *a2, cocos2d::CCArray *a3) { unsigned __int8 v4; // w0 unsigned int v5; // w26 cocos2d::CCDirector *v7; // x0 cocos2d::CCDirector *v8; // x0 const char *v9; // x6 __int64 v10; // x27 cocos2d::CCObject *v11; // x27 void (__fastcall *v12)(cocos2d::CCObject *, __int64 *); // x28 int v13; // [xsp+8h] [xbp-28h] int v14; // [xsp+8h] [xbp-28h] int v15; // [xsp+8h] [xbp-28h] int v16; // [xsp+8h] [xbp-28h] int v17; // [xsp+8h] [xbp-28h] int v18; // [xsp+8h] [xbp-28h] int v19; // [xsp+8h] [xbp-28h] int v20; // [xsp+20h] [xbp-10h] int v21; // [xsp+20h] [xbp-10h] int v22; // [xsp+20h] [xbp-10h] int v23; // [xsp+20h] [xbp-10h] cocos2d::CCNode *v24; // [xsp+D8h] [xbp+A8h] __int64 v25; // [xsp+E0h] [xbp+B0h] BYREF _BYTE v26[8]; // [xsp+E8h] [xbp+B8h] BYREF _BYTE v27[8]; // [xsp+F0h] [xbp+C0h] BYREF __int64 v28; // [xsp+F8h] [xbp+C8h] BYREF __int64 v29; // [xsp+100h] [xbp+D0h] BYREF __int64 v30[2]; // [xsp+108h] [xbp+D8h] BYREF void *v31; // [xsp+118h] [xbp+E8h] __int64 v32; // [xsp+120h] [xbp+F0h] BYREF __int64 v33; // [xsp+128h] [xbp+F8h] void *v34; // [xsp+130h] [xbp+100h] v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 440.0, 310.0, 1, 0.0); v5 = v4; if ( v4 ) { v7 = (cocos2d::CCDirector *)SetupTriggerPopup::preSetup((SetupTriggerPopup *)this); v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7); cocos2d::CCDirector::getWinSize(&v25, v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v26, *(float *)&v25 * 0.5, *((float *)&v25 + 1) * 0.5); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Setup Rotate Command", 0x14u); SetupTriggerPopup::addTitle(this, &v32); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v32); if ( (v32 & 1) != 0 ) operator delete(v34); v30[0] = 0; v30[1] = 0; v31 = nullptr; std::string::__init(v30, "Help", 4u); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init( &v32, "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, v30, &v32, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); if ( (v30[0] & 1) != 0 ) operator delete(v31); SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Degrees:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -100.0, 100.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createValueControlAdvanced( this, 68, &v32, &v29, 0, 1, 10, 0, 0.8, -360.0, 360.0, 0, 9001, 1, 2, 0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "x360:", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 105.0, 100.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v20) = 0; SetupTriggerPopup::createValueControlAdvanced( this, 69, &v32, &v29, 0, 2, 10, 0, 0.8, -20.0, 20.0, 0, 9001, 1, 0, v20); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Rot Target ID:", 0xEu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -80.0, 90.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v13) = 0; IDNameInput::create(this, this + 68, 1, 401, &v32, &v29, 6, 9002, 0.8, 0, v13); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Rot Offset:", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 80.0, 90.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v21) = 0; SetupTriggerPopup::createValueControlAdvanced( this, 402, &v32, &v29, 1, 1, 10, 1, 0.8, -360.0, 360.0, 0, 9002, 0, 2, v21); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 170.0, 120.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 138, &v32, &v29, 0, 0, 9002, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 170.0, 90.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 200, &v32, &v29, 0, 0, 9002, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Aim\nMode", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -180.0, 48.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 100, &v32, &v29, 0, 0, 0, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Follow\nMode", 0xBu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -80.0, 48.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 394, &v32, &v29, 0, 0, 0, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Dynamic\nMode", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 20.0, 48.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 397, &v32, &v29, 0, 0, 0, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Lock Obj\nRotation", 0x11u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 120.0, 48.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createToggleValueControl(this, 70, &v32, &v29, 0, 0, 0, 1.0); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Move Time:", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -100.0, 0.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v22) = 0; SetupTriggerPopup::createValueControlAdvanced(this, 10, &v32, &v29, 0, 1, 10, 0, 0.8, 0.0, 10.0, 0, 0, 0, 2, v22); if ( (v32 & 1) != 0 ) operator delete(v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 105.0, 5.0); cocos2d::CCPoint::operator+(&v29, v26); SetupTriggerPopup::createEasingControls(this, &v29, 0, 9003, 0.8); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Easing:", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 105.0, 0.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v23) = 0; SetupTriggerPopup::createValueControlAdvanced( this, 403, &v32, &v29, 0, 2, 10, 0, 0.8, 0.0, 100.0, 0, 9004, 0, 2, v23); if ( (v32 & 1) != 0 ) operator delete(v34); v10 = ButtonSprite::create( (ButtonSprite *)"Inf", (const char *)&qword_28, 0, 1, 0.8, "goldFont.fnt", "GJ_button_04.png", v9, 30.0); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.5); v11 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( v10, 0, (__int64)this, (__int64)SetupRotateCommandPopup::onInfiniteDuration, 0); (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *))(*(_QWORD *)*(this + 69) + 456LL))(*(this + 69), v11); v24 = *(this + 69); v12 = *(void (__fastcall **)(cocos2d::CCObject *, __int64 *))(*(_QWORD *)v11 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, -10.0, 0.0); cocos2d::CCPoint::operator+(&v28, v26); cocos2d::CCNode::convertToNodeSpace(&v29, v24, (const cocos2d::CCPoint *)&v28); v12(v11, &v29); SetupTriggerPopup::addObjectToGroup((SetupTriggerPopup *)this, v11, 9004); SetupTriggerPopup::addObjectToPage((SetupTriggerPopup *)this, v11, 0); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Target Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -80.0, -85.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v14) = 0; IDNameInput::create(this, this + 68, 1, 51, &v32, &v29, 6, 0, 0.8, 0, v14); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "Center Group ID:", 0x10u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 80.0, -85.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v15) = 0; IDNameInput::create(this, this + 68, 1, 71, &v32, &v29, 6, 0, 0.8, 0, v15); if ( (v32 & 1) != 0 ) operator delete(v34); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v29, *(float *)&v25 * 0.5, *((float *)&v25 + 1) * 0.5); cocos2d::CCPoint::operator=(v26, &v29); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "MinX ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -80.0, 40.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v16) = 0; IDNameInput::create(this, this + 68, 1, 516, &v32, &v29, 6, 0, 0.8, 1, v16); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "MaxX ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 80.0, 40.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v17) = 0; IDNameInput::create(this, this + 68, 1, 518, &v32, &v29, 6, 0, 0.8, 1, v17); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "MinY ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, -80.0, -40.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v18) = 0; IDNameInput::create(this, this + 68, 1, 517, &v32, &v29, 6, 0, 0.8, 1, v18); if ( (v32 & 1) != 0 ) operator delete(v34); v32 = 0; v33 = 0; v34 = nullptr; std::string::__init(&v32, "MaxY ID:", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v28, 80.0, -40.0); cocos2d::CCPoint::operator+(&v29, v26); LOBYTE(v19) = 0; IDNameInput::create(this, this + 68, 1, 519, &v32, &v29, 6, 0, 0.8, 1, v19); if ( (v32 & 1) != 0 ) operator delete(v34); SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 183) * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage((SetupTriggerPopup *)this, 0, 0); SetupRotateCommandPopup::updateControlVisibility((SetupRotateCommandPopup *)this); SetupTriggerPopup::postSetup((SetupTriggerPopup *)this); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source