// // SetupPlayerControlPopup::init from 0x6b3a60 to 0x6b3d90 (816 bytes) // // 1 xrefs: // > SetupPlayerControlPopup::create @ 0x6b3e56 // // 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:41 +0000 // GameManager *__fastcall SetupPlayerControlPopup::init( SetupPlayerControlPopup *this, PlayerControlGameObject *a2, cocos2d::CCArray *a3) { GameManager *v4; // r11 cocos2d::CCDirector *MultiTriggerItemsDefault; // r0 float v7[2]; // [sp+14h] [bp-48h] BYREF _BYTE v8[8]; // [sp+1Ch] [bp-40h] BYREF _BYTE v9[8]; // [sp+24h] [bp-38h] BYREF _BYTE v10[8]; // [sp+2Ch] [bp-30h] BYREF _BYTE v11[8]; // [sp+34h] [bp-28h] BYREF int v12[3]; // [sp+3Ch] [bp-20h] BYREF int v13; // [sp+48h] [bp-14h] BYREF int v14; // [sp+4Ch] [bp-10h] int v15; // [sp+50h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 320.0, 220.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Player Control", 0xEu); SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v13); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "OK", 2u); SetupTriggerPopup::addCloseButton((int)this, (int)&v13); std::string::~string((int)&v13); memset(v12, 0, sizeof(v12)); std::string::__init(v12, "Help", 4u); v13 = 0; v14 = 0; v15 = 0; std::string::__init( &v13, "Controls player P1 or P2 behavior with a specified setting.\n" "Stop Slide can be used to stop the player from sliding after a force has been applied.", 0xAAu); SetupTriggerPopup::addHelpButton((int)this, (int)v12, (int)&v13, 1065353216); std::string::~string((int)&v13); std::string::~string((int)v12); MultiTriggerItemsDefault = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefault(this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefault); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, v7[1] * 0.5); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, -20.0, 40.0); cocos2d::CCPoint::operator+(v9, v8, v11); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "P1", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -40.0, 20.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 138, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "P2", 2u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 40.0, 20.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 200, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Stop\nJump", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -20.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 540, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Stop\nMove", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -20.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 541, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Stop\nRot", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 80.0, -20.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 542, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Stop\nSlide", 0xAu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, -80.0, -60.0); cocos2d::CCPoint::operator+(v11, v9, v10); SetupTriggerPopup::createToggleValueControl((int)this, 543, (int)&v13, (const cocos2d::CCPoint *)v11, 0, 0, 0, 1.0); std::string::~string((int)&v13); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source