// // SetupForceBlockPopup::init from 0x6b606c to 0x6b64b0 (1092 bytes) // // 1 xrefs: // > SetupForceBlockPopup::create @ 0x6b6526 // // 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:42 +0000 // GameManager *__fastcall SetupForceBlockPopup::init( SetupForceBlockPopup *this, ForceBlockGameObject *a2, cocos2d::CCArray *a3) { GameManager *v4; // r9 cocos2d::CCDirector *v5; // r0 float v6; // s15 float v8; // [sp+34h] [bp-38h] BYREF float v9; // [sp+38h] [bp-34h] _BYTE v10[8]; // [sp+3Ch] [bp-30h] BYREF _BYTE v11[8]; // [sp+44h] [bp-28h] BYREF int v12[3]; // [sp+4Ch] [bp-20h] BYREF int v13; // [sp+58h] [bp-14h] BYREF int v14; // [sp+5Ch] [bp-10h] int v15; // [sp+60h] [bp-Ch] v4 = SetupTriggerPopup::init(this, a2, a3, 380.0, 270.0, (_BYTE *)&dword_0 + 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Setup Force Block", 0x11u); 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, "Force is how much force is applied upon player collision.\n" "Blocks with the same Force ID do not stack.\n" "Relative makes force direction based on angle between player and object center.\n" "UseRange lets you set a range to apply force from based on player position. Range calculation is based on block radius.", 0x14Du); SetupTriggerPopup::addHelpButton((int)this, (int)v12, (int)&v13, 1065353216); std::string::~string((int)&v13); v5 = (cocos2d::CCDirector *)std::string::~string((int)v12); cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v8 * 0.5, (float)(v9 * 0.5) + 30.0); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Force:", 6u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v8 * 0.5, (float)(v9 * 0.5) + 80.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 149, (unsigned __int8 *)&v13, (int)v11, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 149, 0, 3, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "MinForce:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(v8 * 0.5) - 80.0, (float)(v9 * 0.5) + 80.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 526, (unsigned __int8 *)&v13, (int)v11, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 529, 0, 3, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "MaxForce:", 9u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(v8 * 0.5) + 80.0, (float)(v9 * 0.5) + 80.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 527, (unsigned __int8 *)&v13, (int)v11, 1061997773, 0, 1, 4, 0, 0, 1084227584, 0, 529, 0, 3, 0); std::string::~string((int)&v13); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "Relative", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(v8 * 0.5) - 80.0, (float)(v9 * 0.5) + 15.0); SetupTriggerPopup::createToggleValueControl((int)this, 528, (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, "Range", 5u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (float)(v8 * 0.5) + 50.0, (float)(v9 * 0.5) + 15.0); SetupTriggerPopup::createToggleValueControl((int)this, 529, (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, "ForceID", 7u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, v8 * 0.5, (float)(v9 * 0.5) - 55.0); SetupTriggerPopup::createValueControlAdvanced( (cocos2d::CCDictionary **)this, 530, (unsigned __int8 *)&v13, (int)v11, 1061997773, 1, 2, 10, 1, 0, 1176255488, 0, 0, 0, 0, 0); std::string::~string((int)&v13); v6 = COERCE_FLOAT((*(int (__fastcall **)(SetupForceBlockPopup *, int))(*(_DWORD *)this + 732))(this, 529)); (*(void (__fastcall **)(SetupForceBlockPopup *, int, bool))(*(_DWORD *)this + 676))(this, 529, v6 != 0.0); (*(void (__fastcall **)(SetupForceBlockPopup *, int, bool))(*(_DWORD *)this + 676))(this, 149, v6 == 0.0); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source