// // GJScaleControl::init from 0x6ef484 to 0x6ef914 (1168 bytes) // // 1 xrefs: // > GJScaleControl::create @ 0x6eba86 // // 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:57:34 +0000 // int __fastcall GJScaleControl::init(GJScaleControl *this) { const char *v2; // r1 int v3; // r0 cocos2d::CCMenu *v4; // r0 cocos2d::CCMenuItem *v5; // r1 cocos2d::CCMenu *v6; // r5 Slider *v7; // r0 int v8; // r11 void (__fastcall *v9)(int, _DWORD *); // r5 Slider *v10; // r0 int v11; // r11 Slider *v12; // r0 int v13; // r7 int (__fastcall *v14)(int, int); // r9 int v15; // r0 cocos2d::CCMenu *v16; // r0 int v17; // r0 int v18; // r7 int v19; // r7 int v20; // r7 const char *v21; // r2 int v22; // r0 void (__fastcall *v23)(int, _BYTE *); // r7 const char *v24; // r2 int v25; // r0 int v26; // r11 void (__fastcall *v27)(int, _BYTE *); // r6 int v28; // r11 void (__fastcall *v29)(int, _BYTE *); // r6 const char *v30; // r2 int v31; // r0 int v32; // r6 void (__fastcall *v33)(int, _BYTE *); // r8 int v34; // r6 void (__fastcall *v35)(int, _BYTE *); // r8 int v37; // [sp+10h] [bp-74h] void (__fastcall *v38)(int, _BYTE *); // [sp+10h] [bp-74h] int v39; // [sp+14h] [bp-70h] int v40; // [sp+1Ch] [bp-68h] int v41; // [sp+20h] [bp-64h] void (__fastcall *v42)(int, _DWORD *); // [sp+28h] [bp-5Ch] _BYTE v43[8]; // [sp+34h] [bp-50h] BYREF _BYTE v44[8]; // [sp+3Ch] [bp-48h] BYREF _BYTE v45[8]; // [sp+44h] [bp-40h] BYREF _BYTE v46[8]; // [sp+4Ch] [bp-38h] BYREF _BYTE v47[8]; // [sp+54h] [bp-30h] BYREF int (__fastcall *v48)(GJScaleControl *, cocos2d::CCObject *); // [sp+5Ch] [bp-28h] int v49; // [sp+60h] [bp-24h] int (__fastcall *v50)(GJScaleControl *, cocos2d::CCObject *); // [sp+64h] [bp-20h] int v51; // [sp+68h] [bp-1Ch] int (__fastcall *v52)(GJScaleControl *, cocos2d::CCObject *); // [sp+6Ch] [bp-18h] int v53; // [sp+70h] [bp-14h] _DWORD v54[2]; // [sp+74h] [bp-10h] BYREF v40 = cocos2d::CCLayer::init(this); if ( v40 ) { (*(void (__fastcall **)(GJScaleControl *, int))(*(_DWORD *)this + 500))(this, 1); (*(void (__fastcall **)(GJScaleControl *, void *))(*(_DWORD *)this + 148))(this, &unk_D2DAF0); v3 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"warpLockOffBtn_001.png", v2); v48 = GJScaleControl::onToggleLockScale; v49 = 0; v4 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create(v3, 0, (int)this, (int)GJScaleControl::onToggleLockScale, 0); *((_DWORD *)this + 107) = v4; v6 = (cocos2d::CCMenu *)cocos2d::CCMenu::createWithItem(v4, v5); (*(void (__fastcall **)(GJScaleControl *, cocos2d::CCMenu *, int))(*(_DWORD *)this + 232))(this, v6, 3); ControlMenuTouch::addMenu((GJScaleControl *)((char *)this + 396), v6); v50 = GJScaleControl::sliderChanged; v51 = 0; v7 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (int)"GJ_moveBtn.png", (int)"GJ_moveSBtn.png", 0.8); *((_DWORD *)this + 79) = v7; Slider::setBarVisibility(v7, 0); (*(void (__fastcall **)(GJScaleControl *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 79), 2); Slider::disableTouch(*((Slider **)this + 79)); v8 = *((_DWORD *)this + 79); v9 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v54, 0.0, 0.0); v9(v8, v54); v52 = GJScaleControl::sliderChanged; v53 = 0; v10 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (int)"GJ_moveBtn.png", (int)"GJ_moveSBtn.png", 0.8); *((_DWORD *)this + 80) = v10; Slider::setBarVisibility(v10, 0); (*(void (__fastcall **)(GJScaleControl *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 80), 2); Slider::disableTouch(*((Slider **)this + 80)); v11 = *((_DWORD *)this + 80); v42 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v11 + 92); v41 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 79) + 96))(*((_DWORD *)this + 79)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 0.0, 60.0); cocos2d::CCPoint::operator+(v54, v41, v47); v42(v11, v54); v54[0] = GJScaleControl::sliderChanged; v54[1] = 0; v12 = (Slider *)Slider::create( (int)this, (int)GJScaleControl::sliderChanged, 0, (cocos2d::CCSprite *)"sliderBar.png", (cocos2d::CCSprite *)"slidergroove_02.png", (int)"GJ_moveBtn.png", (int)"GJ_moveSBtn.png", 0.8); *((_DWORD *)this + 81) = v12; Slider::setBarVisibility(v12, 0); (*(void (__fastcall **)(GJScaleControl *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 81), 2); Slider::disableTouch(*((Slider **)this + 81)); v13 = *((_DWORD *)this + 81); v14 = *(int (__fastcall **)(int, int))(*(_DWORD *)v13 + 92); v15 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 79) + 96))(*((_DWORD *)this + 79)); v16 = (cocos2d::CCMenu *)v14(v13, v15); *((_DWORD *)this + 82) = -1; v17 = cocos2d::CCMenu::create(v16); *((_DWORD *)this + 98) = v17; (*(void (__fastcall **)(int, void *))(*(_DWORD *)v17 + 92))(v17, &unk_D2DAF0); (*(void (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 98) + 160))(*((_DWORD *)this + 98), &unk_D2DAF8); (*(void (__fastcall **)(GJScaleControl *, _DWORD, int))(*(_DWORD *)this + 232))(this, *((_DWORD *)this + 98), 4); ControlMenuTouch::addMenu((GJScaleControl *)((char *)this + 396), *((cocos2d::CCMenu **)this + 98)); v18 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 79) + 96))(*((_DWORD *)this + 79)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 14.0, 30.0); cocos2d::CCPoint::operator+(v43, v18, v47); v19 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 80) + 96))(*((_DWORD *)this + 80)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 14.0, 30.0); cocos2d::CCPoint::operator+(v44, v19, v47); v20 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 81) + 96))(*((_DWORD *)this + 81)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 14.0, 30.0); cocos2d::CCPoint::operator+(v45, v20, v47); v22 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"ScaleX:", "goldFont.fnt", v21); *((_DWORD *)this + 89) = v22; (*(void (__fastcall **)(int, int))(*(_DWORD *)v22 + 80))(v22, 1058642330); v37 = *((_DWORD *)this + 89); v23 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v37 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 1.0, 0.5); v23(v37, v47); (*(void (__fastcall **)(GJScaleControl *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 89)); v39 = *((_DWORD *)this + 89); v38 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v39 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(v47, v43, v46); v38(v39, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, (const cocos2d::CCPoint *)v43); *((_DWORD *)this + 92) = GJScaleControl::createScaleInput((_DWORD **)this, (int)v47, 0, (int *)this + 95); v25 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"ScaleY:", "goldFont.fnt", v24); *((_DWORD *)this + 90) = v25; (*(void (__fastcall **)(int, int))(*(_DWORD *)v25 + 80))(v25, 1058642330); v26 = *((_DWORD *)this + 90); v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 1.0, 0.5); v27(v26, v47); (*(void (__fastcall **)(GJScaleControl *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 90)); v28 = *((_DWORD *)this + 90); v29 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v28 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(v47, v44, v46); v29(v28, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, (const cocos2d::CCPoint *)v44); *((_DWORD *)this + 93) = GJScaleControl::createScaleInput((_DWORD **)this, (int)v47, 1, (int *)this + 96); v31 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Scale:", "goldFont.fnt", v30); *((_DWORD *)this + 91) = v31; (*(void (__fastcall **)(int, int))(*(_DWORD *)v31 + 80))(v31, 1058642330); v32 = *((_DWORD *)this + 91); v33 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v32 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, 1.0, 0.5); v33(v32, v47); (*(void (__fastcall **)(GJScaleControl *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 91)); v34 = *((_DWORD *)this + 91); v35 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v34 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v46, -30.0, 0.0); cocos2d::CCPoint::operator+(v47, v45, v46); v35(v34, v47); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v47, (const cocos2d::CCPoint *)v45); *((_DWORD *)this + 94) = GJScaleControl::createScaleInput((_DWORD **)this, (int)v47, 2, (int *)this + 97); } return v40; }
GD Web Decomp Icon

GD Web Decomp

Raw Source