// // CustomizeObjectLayer::onSelectMode from 0x984018 to 0x984240 (552 bytes) // // 6 xrefs: // > CustomizeObjectLayer::init @ 0x9865c4 // > @ 0xb7898 // > CustomizeObjectLayer::init @ 0x985318 // > CustomizeObjectLayer::init @ 0x9853f4 // > CustomizeObjectLayer::init @ 0x986670 // > @ 0x15454c8 // // 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 12:57:52 +0000 // __int64 __fastcall CustomizeObjectLayer::onSelectMode(CustomizeObjectLayer *this, cocos2d::CCObject *a2) { int v3; // w0 __int64 v4; // x2 ButtonSprite *v5; // x0 const char *v6; // x1 ButtonSprite *v7; // x0 const char *v8; // x1 __int64 v9; // x0 ButtonSprite *v10; // x0 const char *v11; // x1 __int64 v12; // x1 __int64 v13; // x2 int v14; // w3 unsigned int ActiveMode; // w0 v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2); *((_DWORD *)this + 186) = v3; v4 = *((_QWORD *)this + 100); if ( v3 == 1 ) { (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v4 + 928LL))(*((_QWORD *)this + 100), "Base Color"); } else if ( v3 == 2 ) { (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v4 + 928LL))(*((_QWORD *)this + 100), "Detail Color"); } else { (*(void (__fastcall **)(_QWORD, const char *))(*(_QWORD *)v4 + 928LL))(*((_QWORD *)this + 100), "Insert Text"); } v5 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 95) + 1072LL))(*((_QWORD *)this + 95)); if ( *((_DWORD *)this + 186) == 1 ) v6 = "GJ_button_03.png"; else v6 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v5, v6); v7 = (ButtonSprite *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 96) + 1072LL))(*((_QWORD *)this + 96)); if ( *((_DWORD *)this + 186) == 2 ) v8 = "GJ_button_03.png"; else v8 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v7, v8); v9 = *((_QWORD *)this + 97); if ( v9 ) { v10 = (ButtonSprite *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 1072LL))(v9); if ( *((_DWORD *)this + 186) == 3 ) v11 = "GJ_button_03.png"; else v11 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v10, v11); } CustomizeObjectLayer::toggleVisible(this); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 98) + 344LL))( *((_QWORD *)this + 98), *((_DWORD *)this + 186) == 1); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 98) + 1056LL))( *((_QWORD *)this + 98), *((_DWORD *)this + 186) == 1); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 99) + 344LL))( *((_QWORD *)this + 99), *((_DWORD *)this + 186) == 2); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 99) + 1056LL))( *((_QWORD *)this + 99), *((_DWORD *)this + 186) == 2); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 114) + 344LL))( *((_QWORD *)this + 114), *((_DWORD *)this + 186) != 3); (*(void (__fastcall **)(_QWORD, bool))(**((_QWORD **)this + 114) + 1056LL))( *((_QWORD *)this + 114), *((_DWORD *)this + 186) != 3); CustomizeObjectLayer::updateHSVButtons(this, v12, v13, v14); CustomizeObjectLayer::updateColorSprite(this); ActiveMode = CustomizeObjectLayer::getActiveMode(this, 1u); return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)ActiveMode); }
GD Web Decomp Icon

GD Web Decomp

Raw Source