// // GJScaleControl::createScaleInput from 0x6ee74c to 0x6ee900 (436 bytes) // // 3 xrefs: // > GJScaleControl::init @ 0x6ef7a4 // > GJScaleControl::init @ 0x6ef872 // > GJScaleControl::init @ 0x6ef8f2 // // 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::createScaleInput(_DWORD **a1, int a2, int a3, int *a4) { int *v8; // r4 void (__fastcall *v9)(int *, _DWORD *); // r6 int v10; // r6 const char *v11; // r1 int v12; // r5 int v13; // r5 void (__fastcall *v14)(int, _BYTE *); // r11 void (__fastcall *v16)(int, _DWORD *); // [sp+Ch] [bp-38h] _BYTE v17[8]; // [sp+10h] [bp-34h] BYREF _BYTE v18[8]; // [sp+18h] [bp-2Ch] BYREF int v19[3]; // [sp+20h] [bp-24h] BYREF _DWORD v20[4]; // [sp+2Ch] [bp-18h] BYREF v8 = CCTextInputNode::create( (CCTextInputNode *)0x42400000, 19.2, " ", "Thonburi", (const char *)&dword_18, "bigFont.fnt", (const char *)&_stack_chk_guard); v9 = *(void (__fastcall **)(int *, _DWORD *))(*v8 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.0); cocos2d::CCPoint::operator+(v20, a2, v18); v9(v8, v20); CCTextInputNode::setMaxLabelScale((unsigned int)v8, 0.48); CCTextInputNode::setMaxLabelWidth((unsigned int)v8, 48.0); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v8[104] + 172))(v8[104], 0); v8[106] = 6; v8[126] = 1; v8[127] = 2; memset(v19, 0, sizeof(v19)); std::string::__init(v19, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars((int)v8, (unsigned __int8 *)v19); std::string::~string((int)v19); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v20, 0.0, 0.0, 40.0, 40.0); v10 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v20); v16 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v10 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v20, 80.0, 32.0); v16(v10, v20); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1059061760); (*(void (__fastcall **)(int, int))(*(_DWORD *)v10 + 456))(v10, 90); (*(void (__fastcall **)(int, _DWORD, int))(*(_DWORD *)v10 + 124))(v10, 0, -1090519040); (*(void (__fastcall **)(int *, int, int))(*v8 + 232))(v8, v10, -1); ((void (__fastcall *)(_DWORD **, int *, int))(*a1)[58])(a1, v8, 2); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_updateBtn_001.png", v11); (*(void (__fastcall **)(int, int))(*(_DWORD *)v12 + 80))(v12, 1053609165); v20[0] = GJScaleControl::onApplyScale; v20[1] = 0; v13 = CCMenuItemSpriteExtra::create(v12, 0, (int)a1, (int)GJScaleControl::onApplyScale, 0); (*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 36))(v13, a3); v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, 41.0, 0.0); cocos2d::CCPoint::operator+(v18, a2, v17); v14(v13, v18); (*(void (__fastcall **)(_DWORD *, int))(*a1[98] + 228))(a1[98], v13); *a4 = v13; return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source