// // CustomizeObjectLayer::onNextColorChannel from 0x1001f8110 to 0x1001f8239 (297 bytes) // // 1 xrefs: // > CustomizeObjectLayer::init @ 0x1001f6ec5 // // 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::onNextColorChannel(CustomizeObjectLayer *a1, cocos2d::CCObject *a2) { char v2; // al GameManager *v3; // rax int NextColorChannel; // r14d int v5; // r15d ButtonSprite *v6; // rsi unsigned int v7; // r12d __int64 v8; // r13 const char *CString; // rax cocos2d::CCString *v10; // rax const std::string::value_type *v11; // rsi char v12; // [rsp-8h] [rbp-30h] v12 = v2; v3 = GameManager::sharedState(); NextColorChannel = LevelEditorLayer::getNextColorChannel(v3->m_levelEditorLayer); v5 = NextColorChannel; if ( (unsigned int)(NextColorChannel - 10) <= 0x3DD ) { a1->m_customColorChannel = NextColorChannel; a1->m_disableTextDelegate = 1; CustomizeObjectLayer::updateCustomColorLabels(a1); a1->m_disableTextDelegate = 0; v5 = 1008; } CustomizeObjectLayer::updateSelected(a1, NextColorChannel); v6 = nullptr; if ( (unsigned int)sub_100720070(a1->m_colorButtons) ) { v7 = 0; while ( 1 ) { v8 = sub_1007200C0(a1->m_colorButtons, v7); if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8) == v5 ) break; if ( ++v7 >= (unsigned int)sub_100720070(a1->m_colorButtons) ) { v6 = nullptr; goto LABEL_9; } } v6 = (ButtonSprite *)v8; } LABEL_9: CustomizeObjectLayer::highlightSelected(a1, v6); CustomizeObjectLayer::updateColorSprite(a1); if ( NextColorChannel < 1000 ) { if ( NextColorChannel <= 0 ) { v11 = " "; goto LABEL_14; } v10 = (cocos2d::CCString *)sub_1007AB580("%i", v12); CString = cocos2d::CCString::getCString(v10); } else { CString = GJSpecialColorSelect::textForColorIdx(NextColorChannel); } v11 = CString; LABEL_14: ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const std::string::value_type *))a1->m_selectedColorLabel->setString)( a1->m_selectedColorLabel, v11); }