// // GJScaleControl::createScaleInput from 0xbd2d80 to 0xbd306c (748 bytes) // // 4 xrefs: // > GJScaleControl::init @ 0xbd4698 // > GJScaleControl::init @ 0xbd4754 // > GJScaleControl::init @ 0xbd4810 // > @ 0xd4f80 // // This function is hookable on this platform (idp: arm, 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 13:03:38 +0000 // __int64 __fastcall GJScaleControl::createScaleInput(_QWORD **a1, __int64 a2, unsigned int a3, __int64 *a4) { __int64 v8; // x19 void (__fastcall *v9)(__int64, _QWORD *); // x28 __int64 v10; // x20 void (__fastcall *v11)(__int64, _QWORD *); // x28 const char *v12; // x1 __int64 v13; // x20 __int64 v14; // x20 void (__fastcall *v15)(__int64, _QWORD *); // x27 _BYTE v17[8]; // [xsp+78h] [xbp+78h] BYREF _QWORD v18[2]; // [xsp+80h] [xbp+80h] BYREF __int64 v19[2]; // [xsp+90h] [xbp+90h] BYREF void *v20; // [xsp+A0h] [xbp+A0h] v8 = CCTextInputNode::create( (CCTextInputNode *)&byte_11E1A70, 48.0, 19.2, "Thonburi", (const char *)&off_18, "bigFont.fnt", _stack_chk_guard); v9 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v8 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 0.0, 0.0); cocos2d::CCPoint::operator+(v18, a2); v9(v8, v18); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v8, 0.48); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v8, 48.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v8 + 576) + 344LL))(*(_QWORD *)(v8 + 576), 0); v19[0] = 0; *(_DWORD *)(v8 + 592) = 6; *(_DWORD *)(v8 + 704) = 2; *(_DWORD *)(v8 + 700) = 1; v19[1] = 0; v20 = nullptr; std::string::__init(v19, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v8, (__int64)v19); if ( (v19[0] & 1) != 0 ) operator delete(v20); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v18, 0.0, 0.0, 40.0, 40.0); v10 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v18); v11 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v10 + 320LL); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v18, 80.0, 32.0); v11(v10, v18); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v10 + 160LL))(v10, 0.625); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v10 + 912LL))(v10, 90); (*(void (__fastcall **)(__int64, float, float))(*(_QWORD *)v10 + 248LL))(v10, 0.0, -0.5); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)v8 + 464LL))(v8, v10, 0xFFFFFFFFLL); ((void (__fastcall *)(_QWORD **, __int64, __int64))(*a1)[58])(a1, v8, 2); v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.4); v14 = CCMenuItemSpriteExtra::create(v13, 0, (__int64)a1, (__int64)GJScaleControl::onApplyScale, 0); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 72LL))(v14, a3); v15 = *(void (__fastcall **)(__int64, _QWORD *))(*(_QWORD *)v14 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 41.0, 0.0); cocos2d::CCPoint::operator+(v18, a2); v15(v14, v18); (*(void (__fastcall **)(_QWORD *, __int64))(*a1[67] + 456LL))(a1[67], v14); *a4 = v14; return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source