// // CustomizeObjectLayer::onSelectColor from 0x1001f7a10 to 0x1001f7ab8 (168 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x1001f5a6a // > CustomizeObjectLayer::init @ 0x1001f5e07 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2) { int m_customColorChannel; // eax ButtonSprite *v3; // rax int ActiveMode; // eax const char *CString; // rax cocos2d::CCString *v6; // rax const std::string::value_type *v7; // rsi char v8; // [rsp+0h] [rbp-10h] m_customColorChannel = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( m_customColorChannel == 1008 ) m_customColorChannel = a1->m_customColorChannel; CustomizeObjectLayer::updateSelected(a1, m_customColorChannel); v3 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2); CustomizeObjectLayer::highlightSelected(a1, v3); CustomizeObjectLayer::updateColorSprite(a1); ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1); if ( ActiveMode < 1000 ) { if ( ActiveMode <= 0 ) { v7 = " "; goto LABEL_8; } v6 = (cocos2d::CCString *)sub_1007AB580("%i", v8); CString = cocos2d::CCString::getCString(v6); } else { CString = GJSpecialColorSelect::textForColorIdx(ActiveMode); } v7 = CString; LABEL_8: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_selectedColorLabel->setString)( a1->m_selectedColorLabel, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source