// // SetupGravityModPopup::init from 0x6633d0 to 0x663916 (1350 bytes) // // 1 xrefs: // > SetupGravityModPopup::create @ 0x663a84 // // 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:55:39 +0000 // GameManager *__fastcall SetupGravityModPopup::init(Slider **this, EffectGameObject *a2, cocos2d::CCArray *a3, int a4) { char *v4; // r9 GameManager *v9; // r10 float v10; // s14 int v11; // s15 cocos2d::CCObject *v12; // r0 cocos2d::CCDirector *started; // r0 int v14; // r6 void (__fastcall *v15)(int, _DWORD *); // r7 void (__fastcall *v16)(int, _DWORD *); // r7 char *v17; // r1 cocos2d::CCLabelBMFont *v18; // r0 int v19; // r6 void (__fastcall *v20)(int, _DWORD *); // r7 ButtonSprite *v21; // r0 cocos2d::CCMenu *v22; // r0 Slider *v23; // r0 int v24; // r6 void (__fastcall *v25)(int, _DWORD *); // r7 char *v26; // r1 size_t v27; // r0 int v28; // r9 void (__fastcall *v29)(int, _DWORD *); // r11 const char *v30; // r2 Slider *v31; // r0 Slider *v32; // r3 int v33; // r9 void (__fastcall *v34)(int, _DWORD *); // r11 int v35; // r0 Slider *v36; // r3 int v37; // r9 int v38; // r11 int Thumb; // r0 float v40; // s15 Slider *v41; // r3 int v43; // [sp+10h] [bp-8Ch] cocos2d::CCPoint *v44; // [sp+20h] [bp-7Ch] cocos2d::CCPoint *v45; // [sp+20h] [bp-7Ch] float v46; // [sp+28h] [bp-74h] BYREF float v47; // [sp+2Ch] [bp-70h] _BYTE v48[8]; // [sp+30h] [bp-6Ch] BYREF _BYTE v49[8]; // [sp+38h] [bp-64h] BYREF int (__fastcall *v50)(SetupGravityModPopup *, cocos2d::CCObject *); // [sp+40h] [bp-5Ch] int v51; // [sp+44h] [bp-58h] int v52[2]; // [sp+48h] [bp-54h] BYREF cocos2d::CCLabelBMFont *v53; // [sp+50h] [bp-4Ch] int v54[2]; // [sp+54h] [bp-48h] BYREF char *v55; // [sp+5Ch] [bp-40h] int v56[3]; // [sp+60h] [bp-3Ch] BYREF int v57[3]; // [sp+6Ch] [bp-30h] BYREF int v58[3]; // [sp+78h] [bp-24h] BYREF _DWORD v59[4]; // [sp+84h] [bp-18h] BYREF v9 = FLAlertLayer::init((FLAlertLayer *)this, 150); if ( !v9 ) return v9; *((_BYTE *)this + 540) = a4; *((_BYTE *)this + 468) = 1; v10 = 5.0; if ( a4 ) v10 = 2.0; v11 = 1036831949; *((float *)this + 137) = v10; if ( !a4 ) v11 = 0; *(this + 136) = (Slider *)v11; if ( a2 ) { *(this + 130) = a2; v12 = a2; LABEL_10: cocos2d::CCObject::retain(v12); goto LABEL_11; } if ( a3 ) { v12 = a3; *(this + 131) = a3; goto LABEL_10; } LABEL_11: started = (cocos2d::CCDirector *)SetupGravityModPopup::determineStartValues(this); cocos2d::CCDirector::sharedDirector(started); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v46); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v59, 0.0, 0.0, 80.0, 80.0); v14 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v59); v15 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v59, 360.0, 280.0); v15(v14, v59); (*(void (__fastcall **)(_DWORD, int, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v14, -2); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v14 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v46 * 0.5, v47 * 0.5); v16(v14, v59); v52[0] = 0; v52[1] = 0; v53 = nullptr; if ( *((_BYTE *)this + 540) ) v17 = "Setup Gravity Trigger"; else v17 = "Setup Force Modifier"; std::string::assign(v52, v17); if ( (v52[0] & 1) != 0 ) v18 = v53; else v18 = (cocos2d::CCLabelBMFont *)((char *)v52 + 1); v19 = cocos2d::CCLabelBMFont::create(v18, "goldFont.fnt", (const char *)(LOBYTE(v52[0]) << 31)); (*((void (__fastcall **)(Slider **, int))*this + 57))(this, v19); (*(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 80))(v19, 1060320051); v20 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v19 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v46 * 0.5, (float)((float)(v47 * 0.5) + 140.0) - 18.0); v20(v19, v59); v21 = ButtonSprite::create( (ButtonSprite *)"OK", (const char *)&word_28, 0, 0.8, 1, "goldFont.fnt", "GJ_button_01.png", (const char *)0x41F00000, *(float *)&v43); v51 = 0; v50 = SetupGravityModPopup::onClose; v22 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v21, 0, (int)this, (int)SetupGravityModPopup::onClose, 0); v23 = (Slider *)cocos2d::CCMenu::create(v22, nullptr); *(this + 111) = v23; (*(void (__fastcall **)(_DWORD, Slider *, int))(*(_DWORD *)*(this + 115) + 232))(*(this + 115), v23, 10); v24 = (int)*(this + 111); v25 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v24 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v46 * 0.5, (float)((float)(v47 * 0.5) - 140.0) + 24.0); v25(v24, v59); v54[0] = 0; v54[1] = 0; v55 = nullptr; if ( *((_BYTE *)this + 540) ) v26 = "Changes the gravity for the player."; else v26 = "Pushes the player with a force in the direction of the objects rotation. Blocks with the same forceID do not stack."; std::string::assign(v54, v26); memset(v56, 0, sizeof(v56)); std::string::__init(v56, "Help", 4u); if ( (v54[0] & 1) == 0 ) v4 = (char *)v54 + 1; v57[0] = 0; if ( (v54[0] & 1) != 0 ) v4 = v55; v57[1] = 0; v57[2] = 0; v27 = strlen(v4); std::string::__init(v57, v4, v27); v28 = InfoAlertButton::create((char *)v56, (int)v57, 1065353216); std::string::~string((int)v57); std::string::~string((int)v56); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v28); v29 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v28 + 92); v44 = *(this + 111); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v49, (float)((float)(v46 * 0.5) - 180.0) + 18.0, (float)((float)(v47 * 0.5) + 140.0) - 18.0); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v59, v44); v29(v28, v59); *(this + 125) = (Slider *)-1; v31 = (Slider *)cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "goldFont.fnt", v30); v32 = *this; *(this + 132) = v31; (*((void (__fastcall **)(Slider **, Slider *))v32 + 57))(this, v31); v33 = (int)*(this + 132); v34 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v33 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v46 * 0.5, (float)(v47 * 0.5) + 60.0); v34(v33, v59); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 132) + 80))(*(this + 132), 1058642330); v59[0] = SetupGravityModPopup::sliderChanged; v59[1] = 0; v35 = Slider::create((int)this); v36 = *this; *(this + 133) = (Slider *)v35; (*((void (__fastcall **)(Slider **, int))v36 + 57))(this, v35); v37 = (int)*(this + 133); v45 = *(cocos2d::CCPoint **)(*(_DWORD *)v37 + 92); v38 = (*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 132) + 96))(*(this + 132)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, 0.0, -23.0); cocos2d::CCPoint::operator+(v49, v38, v48); ((void (__fastcall *)(int, _BYTE *))v45)(v37, v49); Thumb = Slider::getThumb(*(this + 133)); (*(void (__fastcall **)(int, int))(*(_DWORD *)Thumb + 36))(Thumb, 2); SetupGravityModPopup::updateValueLabel((SetupGravityModPopup *)this); v40 = (float)(*((float *)this + 134) - *((float *)this + 136)) / (float)(*((float *)this + 137) - *((float *)this + 136)); if ( v40 >= 1.0 ) { v40 = 1.0; } else if ( v40 <= 0.0 ) { v40 = 0.0; } Slider::setValue(*(this + 133), v40); if ( !*((_BYTE *)this + 540) ) { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v48, v46 * 0.5, (float)(v47 * 0.5) - 40.0); memset(v58, 0, sizeof(v58)); std::string::__init(v58, "Force ID", 8u); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v49, (const cocos2d::CCPoint *)v48); *(this + 139) = (Slider *)IDNameInput::create( (int)this, (int)(this + 110), 2, 0, (int)v58, (int)v49, 1.0, 6, 0, 0, 0); std::string::~string((int)v58); v41 = *(this + 139); if ( v41 ) v41 = *((Slider **)v41 + 75); *(this + 138) = v41; SetupGravityModPopup::updateTextInputLabel((SetupGravityModPopup *)this); *((_BYTE *)this + 564) = 0; } std::string::~string((int)v54); std::string::~string((int)v52); return v9; }
GD Web Decomp Icon

GD Web Decomp

Raw Source