// // CustomizeObjectLayer::onSelectMode from 0x1001d9850 to 0x1001d9a4c (508 bytes) // // 4 xrefs: // > CustomizeObjectLayer::init @ 0x1001d95bc // > CustomizeObjectLayer::init @ 0x1001d78ec // > CustomizeObjectLayer::init @ 0x1001d79ef // > CustomizeObjectLayer::init @ 0x1001d8a67 // // 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:26:25 +0000 // __int64 __fastcall CustomizeObjectLayer::onSelectMode(__int64 a1, __int64 a2) { char v2; // al int v4; // eax _QWORD *v5; // rdi const char *v6; // r8 const char *v7; // rsi __int64 v8; // rax const char *v9; // r14 const char *v10; // rsi __int64 v11; // rax const char *v12; // rsi __int64 v13; // rdi __int64 v14; // rax int ActiveMode; // eax __int64 CString; // rax __int64 v17; // rax const std::string::value_type *v18; // rsi char v20; // [rsp-8h] [rbp-20h] v20 = v2; v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); *(_DWORD *)(a1 + 744) = v4; v5 = *(_QWORD **)(a1 + 800); v6 = "Insert Text"; if ( v4 == 2 ) v6 = "Detail Color"; v7 = "Base Color"; if ( v4 != 1 ) v7 = v6; (*(void (__fastcall **)(_QWORD *, const char *, const char *, _QWORD, const char *))(*v5 + 928LL))( v5, v7, "Detail Color", *v5, v6); v8 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 760) + 1072LL))(*(_QWORD *)(a1 + 760)); v9 = "GJ_button_04.png"; v10 = "GJ_button_04.png"; if ( *(_DWORD *)(a1 + 744) == 1 ) v10 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v8, (__int64)v10); v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 768) + 1072LL))(*(_QWORD *)(a1 + 768)); v12 = "GJ_button_04.png"; if ( *(_DWORD *)(a1 + 744) == 2 ) v12 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v11, (__int64)v12); v13 = *(_QWORD *)(a1 + 776); if ( v13 ) { v14 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 1072LL))(v13); if ( *(_DWORD *)(a1 + 744) == 3 ) v9 = "GJ_button_03.png"; ButtonSprite::updateBGImage(v14, (__int64)v9); } CustomizeObjectLayer::toggleVisible(a1); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 784) + 344LL))( *(_QWORD *)(a1 + 784), *(_DWORD *)(a1 + 744) == 1); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 784) + 1056LL))( *(_QWORD *)(a1 + 784), *(_DWORD *)(a1 + 744) == 1); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 792) + 344LL))( *(_QWORD *)(a1 + 792), *(_DWORD *)(a1 + 744) == 2); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 792) + 1056LL))( *(_QWORD *)(a1 + 792), *(_DWORD *)(a1 + 744) == 2); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 912) + 344LL))( *(_QWORD *)(a1 + 912), *(_DWORD *)(a1 + 744) != 3); (*(void (__fastcall **)(_QWORD, bool))(**(_QWORD **)(a1 + 912) + 1056LL))( *(_QWORD *)(a1 + 912), *(_DWORD *)(a1 + 744) != 3); CustomizeObjectLayer::updateHSVButtons(a1); CustomizeObjectLayer::updateColorSprite(a1); ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1); if ( ActiveMode < 1000 ) { if ( ActiveMode <= 0 ) { v18 = " "; return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 808) + 928LL))( *(_QWORD *)(a1 + 808), v18); } v17 = sub_10088E820("%i", v20); CString = cocos2d::CCString::getCString(v17); } else { CString = GJSpecialColorSelect::textForColorIdx((unsigned int)ActiveMode); } v18 = (const std::string::value_type *)CString; return (*(__int64 (__fastcall **)(_QWORD, const std::string::value_type *))(**(_QWORD **)(a1 + 808) + 928LL))( *(_QWORD *)(a1 + 808), v18); }