// // CustomizeObjectLayer::onNextColorChannel from 0x1400a8ee0 to 0x1400a8fef (271 bytes) // // 2 xrefs: // > CustomizeObjectLayer::init @ 0x1400a77ee // > @ 0x1406c77f4 // // 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 // // Hidden C++ exception states: #wind=1 void CustomizeObjectLayer::onNextColorChannel(CustomizeObjectLayer *a1, cocos2d::CCObject *a2) { __int64 v3; // rcx int NextColorChannel; // eax int v5; // ebx int v6; // esi ButtonSprite *ButtonByTag; // rax const char *CString; // rdx cocos2d::CCString *v9; // rax void *v10; // [rsp+30h] [rbp+8h] v3 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v10 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v10); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = qword_1406C2ED8; } NextColorChannel = LevelEditorLayer::getNextColorChannel(*(LevelEditorLayer **)(v3 + 528)); v5 = NextColorChannel; v6 = NextColorChannel; if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD ) { a1->m_customColorChannel = NextColorChannel; v6 = 1008; a1->m_disableTextDelegate = 1; CustomizeObjectLayer::updateCustomColorLabels(a1); a1->m_disableTextDelegate = 0; } CustomizeObjectLayer::updateSelected(a1, v5); ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v6); CustomizeObjectLayer::highlightSelected(a1, ButtonByTag); CustomizeObjectLayer::updateColorSprite(a1); if ( v5 < 1000 ) { if ( v5 <= 0 ) { CString = " "; } else { v9 = cocos2d::CCString::createWithFormat("%i", v5); CString = cocos2d::CCString::getCString(v9); } } else { CString = GJSpecialColorSelect::textForColorIdx(v5); } a1->m_selectedColorLabel->setString(&a1->m_selectedColorLabel->cocos2d::CCLabelProtocol, CString); }
GD Web Decomp Icon

GD Web Decomp

Raw Source