// // LevelSettingsLayer::createToggleButton from 0x100258350 to 0x10025855d (525 bytes) // // 1 xrefs: // > LevelSettingsLayer::init @ 0x100256ea2 // // 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 12:27:27 +0000 // __int64 __fastcall LevelSettingsLayer::createToggleButton( __int64 a1, unsigned __int8 *a2, __int64 a3, __int64 a4, unsigned int a5, __int64 a6, __int64 a7) { __int64 v8; // r14 __int64 v9; // r15 char *v10; // rbx __int64 result; // rax unsigned __int8 *v12; // r12 __int64 v13; // r12 float *v14; // rax float *v15; // rax _BYTE v16[8]; // [rsp+8h] [rbp-58h] BYREF __int64 v17; // [rsp+10h] [rbp-50h] __int64 v18; // [rsp+18h] [rbp-48h] __int64 v19; // [rsp+20h] [rbp-40h] _BYTE v20[8]; // [rsp+2Ch] [rbp-34h] BYREF unsigned int v21; // [rsp+34h] [rbp-2Ch] v21 = a5; v17 = a4; v18 = a3; v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOn_001.png"); v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_checkOff_001.png"); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 160LL))(v8, 0.80000001); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 160LL))(v9, 0.80000001); v19 = a1; v10 = CCMenuItemToggler::create(v8, v9, a1, v18, v17); CCMenuItemToggler::toggle((__int64)v10, v21); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a6 + 456LL))(a6, v10); cocos2d::CCNode::convertToNodeSpace(v20, a6, a7); (*(void (__fastcall **)(char *, _BYTE *))(*(_QWORD *)v10 + 184LL))(v10, v20); CCMenuItemToggler::setSizeMult((__int64)v10, 1.5); result = *a2; if ( (result & 1) != 0 ) { if ( !*((_QWORD *)a2 + 1) ) return result; v12 = *((unsigned __int8 **)a2 + 2); } else { if ( !(_BYTE)result ) return result; v12 = a2 + 1; } v13 = cocos2d::CCLabelBMFont::create_3(v12, "bigFont.fnt"); (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(v19 + 584) + 456LL))(*(_QWORD *)(v19 + 584), v13); sub_100278250(v20, 0.0, 0.5); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 296LL))(v13, v20); v14 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 328LL))(v8); sub_100278250(v16, (float)((float)(0.5 * *v14) * 0.80000001) + 6.0, 0.0); sub_100278350(v20, a7, v16); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL))(v13, v20); if ( *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13) > 110.0 ) { v15 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 110.0 / *v15); } return (*(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.34999999); }
GD Web Decomp Icon

GD Web Decomp

Raw Source