// // GJScaleControl::init from 0x1401a2ef0 to 0x1401a35e9 (1785 bytes) // // 6 xrefs: // > EditorUI::init @ 0x1401a9de7 // > EditorUI::init @ 0x1401a9dd8 // > @ 0x140750948 // > @ 0x1408a08d0 // > @ 0x1408a08ec // > @ 0x1409199b8 // // This function is hookable on this platform (idp: pc, 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 11:27:49 +0000 // bool __fastcall GJScaleControl::init(__int64 a1) { bool result; // al __int64 v3; // rdx int v4; // eax cocos2d::CCObject *v5; // rax struct cocos2d::CCMenu *v6; // rbx __int64 v7; // rcx __int64 v8; // r8 _BYTE *v9; // rdx cocos2d::CCLayer *v10; // rax __int64 *v11; // rdi __int64 v12; // rbx __int64 v13; // rax __int64 v14; // r8 cocos2d::CCLayer *v15; // rax __int64 v16; // rax __int64 v17; // rbx __int64 v18; // rax __int64 v19; // r8 cocos2d::CCLayer *v20; // rax __int64 *v21; // rdi __int64 v22; // rbx __int64 v23; // rax __int64 v24; // rcx __int64 v25; // rax struct cocos2d::CCMenu *v26; // rbx _BYTE *v27; // rdx __int64 v28; // rax __int64 v29; // rbx __int64 v30; // rax __int64 v31; // rax __int64 v32; // rbx __int64 v33; // rax __int64 v34; // rax __int64 v35; // rbx __int64 v36; // rax struct cocos2d::CCLabelBMFont *v37; // rax __int64 *v38; // rdi __int64 v39; // rbx __int64 v40; // rax __int64 v41; // rax __int64 v42; // rax struct cocos2d::CCLabelBMFont *v43; // rax __int64 *v44; // rdi __int64 v45; // rbx __int64 v46; // rax __int64 v47; // rax __int64 v48; // rax struct cocos2d::CCLabelBMFont *v49; // rax __int64 *v50; // rdi __int64 v51; // rbx __int64 v52; // rax __int64 v53; // rax __int64 v54; // rax struct cocos2d::CCMenu *v55; // [rsp+40h] [rbp-9h] BYREF char v56[8]; // [rsp+48h] [rbp-1h] BYREF char v57; // [rsp+B8h] [rbp+6Fh] BYREF char v58; // [rsp+C0h] [rbp+77h] BYREF char v59; // [rsp+C8h] [rbp+7Fh] BYREF result = cocos2d::CCLayer::init((cocos2d::CCLayer *)a1); if ( result ) { LOBYTE(v3) = 1; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 920LL))(a1, v3); (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)a1 + 288LL))(a1, &unk_14090A6C8); v4 = (unsigned int)cocos2d::CCSprite::createWithSpriteFrameName("warpLockOffBtn_001.png"); v5 = CCMenuItemSpriteExtra::create(v4, 0, a1, (__int64)GJScaleControl::onToggleLockScale); *(_QWORD *)(a1 + 600) = v5; v6 = cocos2d::CCMenu::createWithItem(v5); (*(void (__fastcall **)(__int64, struct cocos2d::CCMenu *, __int64))(*(_QWORD *)a1 + 456LL))(a1, v6, 3); v7 = *(_QWORD *)v6; v55 = v6; (*(void (__fastcall **)(struct cocos2d::CCMenu *, _QWORD))(v7 + 920))(v6, 0); v9 = *(_BYTE **)(a1 + 552); if ( v9 == *(_BYTE **)(a1 + 560) ) { sub_1400699B0((_QWORD *)(a1 + 544), v9, &v55); } else { *(_QWORD *)v9 = v6; *(_QWORD *)(a1 + 552) += 8LL; } v10 = Slider::create( a1, (__int64)GJScaleControl::sliderChanged, v8, "slidergroove_02.png", (__int64)"GJ_moveBtn.png", (__int64)"GJ_moveSBtn.png", 0.80000001); *(_QWORD *)(a1 + 408) = v10; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v10 + 52) + 336LL))(*((_QWORD *)v10 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 408), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 408) + 408LL) + 920LL))( *(_QWORD *)(*(_QWORD *)(a1 + 408) + 408LL), 0); v11 = *(__int64 **)(a1 + 408); v12 = *v11; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v55, 0.0, 0.0); (*(void (__fastcall **)(__int64 *, __int64))(v12 + 184))(v11, v13); v15 = Slider::create( a1, (__int64)GJScaleControl::sliderChanged, v14, "slidergroove_02.png", (__int64)"GJ_moveBtn.png", (__int64)"GJ_moveSBtn.png", 0.80000001); *(_QWORD *)(a1 + 416) = v15; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v15 + 52) + 336LL))(*((_QWORD *)v15 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 416), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 416) + 408LL) + 920LL))( *(_QWORD *)(*(_QWORD *)(a1 + 416) + 408LL), 0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 0.0, 60.0); v17 = v16; v18 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 200LL))(*(_QWORD *)(a1 + 408)); cocos2d::CCPoint::operator+(v18, &v55, v17); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu **))(**(_QWORD **)(a1 + 416) + 184LL))( *(_QWORD *)(a1 + 416), &v55); v20 = Slider::create( a1, (__int64)GJScaleControl::sliderChanged, v19, "slidergroove_02.png", (__int64)"GJ_moveBtn.png", (__int64)"GJ_moveSBtn.png", 0.80000001); *(_QWORD *)(a1 + 424) = v20; (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)v20 + 52) + 336LL))(*((_QWORD *)v20 + 52), 0); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 424), 2); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 424) + 408LL) + 920LL))( *(_QWORD *)(*(_QWORD *)(a1 + 424) + 408LL), 0); v21 = *(__int64 **)(a1 + 424); v22 = *v21; v23 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 200LL))(*(_QWORD *)(a1 + 408)); (*(void (__fastcall **)(__int64 *, __int64))(v22 + 184))(v21, v23); *(_DWORD *)(a1 + 432) = -1; v25 = cocos2d::CCMenu::create(v24); *(_QWORD *)(a1 + 536) = v25; (*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v25 + 184LL))(v25, &unk_14090A6C8); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 536) + 312LL))(*(_QWORD *)(a1 + 536), &unk_14090A6E0); (*(void (__fastcall **)(__int64, _QWORD, __int64))(*(_QWORD *)a1 + 456LL))(a1, *(_QWORD *)(a1 + 536), 4); v55 = *(struct cocos2d::CCMenu **)(a1 + 536); v26 = v55; (*(void (__fastcall **)(struct cocos2d::CCMenu *, _QWORD))(*(_QWORD *)v26 + 920LL))(v26, 0); v27 = *(_BYTE **)(a1 + 552); if ( v27 == *(_BYTE **)(a1 + 560) ) { sub_1400699B0((_QWORD *)(a1 + 544), v27, &v55); } else { *(_QWORD *)v27 = v26; *(_QWORD *)(a1 + 552) += 8LL; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 14.0, 30.0); v29 = v28; v30 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 408) + 200LL))(*(_QWORD *)(a1 + 408)); cocos2d::CCPoint::operator+(v30, &v57, v29); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 14.0, 30.0); v32 = v31; v33 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 416) + 200LL))(*(_QWORD *)(a1 + 416)); cocos2d::CCPoint::operator+(v33, &v58, v32); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 14.0, 30.0); v35 = v34; v36 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 424) + 200LL))(*(_QWORD *)(a1 + 424)); cocos2d::CCPoint::operator+(v36, &v59, v35); v37 = cocos2d::CCLabelBMFont::create("ScaleX:", "goldFont.fnt"); *(_QWORD *)(a1 + 464) = v37; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v37 + 160LL))(v37); v38 = *(__int64 **)(a1 + 464); v39 = *v38; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 1.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v39 + 288))(v38, v40); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 464)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, -30.0, 0.0); cocos2d::CCPoint::operator+(&v57, &v55, v41); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu **))(**(_QWORD **)(a1 + 464) + 184LL))( *(_QWORD *)(a1 + 464), &v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const struct cocos2d::CCPoint *)&v57); *(_QWORD *)(a1 + 488) = GJScaleControl::createScaleInput(a1, v42, 0, a1 + 512); v43 = cocos2d::CCLabelBMFont::create("ScaleY:", "goldFont.fnt"); *(_QWORD *)(a1 + 472) = v43; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v43 + 160LL))(v43); v44 = *(__int64 **)(a1 + 472); v45 = *v44; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 1.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v45 + 288))(v44, v46); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 472)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, -30.0, 0.0); cocos2d::CCPoint::operator+(&v58, &v55, v47); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu **))(**(_QWORD **)(a1 + 472) + 184LL))( *(_QWORD *)(a1 + 472), &v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const struct cocos2d::CCPoint *)&v58); *(_QWORD *)(a1 + 496) = GJScaleControl::createScaleInput(a1, v48, 1, a1 + 520); v49 = cocos2d::CCLabelBMFont::create("Scale:", "goldFont.fnt"); *(_QWORD *)(a1 + 480) = v49; (*(void (__fastcall **)(struct cocos2d::CCLabelBMFont *))(*(_QWORD *)v49 + 160LL))(v49); v50 = *(__int64 **)(a1 + 480); v51 = *v50; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 1.0, 0.5); (*(void (__fastcall **)(__int64 *, __int64))(v51 + 288))(v50, v52); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, *(_QWORD *)(a1 + 480)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, -30.0, 0.0); cocos2d::CCPoint::operator+(&v59, &v55, v53); (*(void (__fastcall **)(_QWORD, struct cocos2d::CCMenu **))(**(_QWORD **)(a1 + 480) + 184LL))( *(_QWORD *)(a1 + 480), &v55); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, (const struct cocos2d::CCPoint *)&v59); *(_QWORD *)(a1 + 504) = GJScaleControl::createScaleInput(a1, v54, 2, a1 + 528); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source