// // CustomizeObjectLayer::onSelectColor from 0x1400a9cb0 to 0x1400a9d62 (178 bytes) // // 6 xrefs: // > CustomizeObjectLayer::init @ 0x1400a5faa // > CustomizeObjectLayer::init @ 0x1400a6089 // > CustomizeObjectLayer::init @ 0x1400a6168 // > CustomizeObjectLayer::init @ 0x1400a624d // > CustomizeObjectLayer::init @ 0x1400a6462 // > @ 0x1406c789c // // 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 CustomizeObjectLayer::onSelectColor(CustomizeObjectLayer *a1, cocos2d::CCObject *a2) { int m_customColorChannel; // eax ButtonSprite *v5; // rax int ActiveMode; // eax const char *CString; // rdx cocos2d::CCString *v8; // rax m_customColorChannel = a2->getTag(a2); if ( m_customColorChannel == 1008 ) m_customColorChannel = a1->m_customColorChannel; CustomizeObjectLayer::updateSelected(a1, m_customColorChannel); v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2); CustomizeObjectLayer::highlightSelected(a1, v5); CustomizeObjectLayer::updateColorSprite(a1); ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1); if ( ActiveMode < 1000 ) { if ( ActiveMode <= 0 ) { CString = " "; } else { v8 = cocos2d::CCString::createWithFormat("%i", ActiveMode); CString = cocos2d::CCString::getCString(v8); } } else { CString = GJSpecialColorSelect::textForColorIdx(ActiveMode); } a1->m_selectedColorLabel->setString(&a1->m_selectedColorLabel->cocos2d::CCLabelProtocol, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source