// // CustomizeObjectLayer::getButtonByTag from 0x100050728 to 0x1000507a0 (120 bytes) // // 3 xrefs: // > CustomizeObjectLayer::onNextColorChannel @ 0x10004ff88 // > CustomizeObjectLayer::updateCurrentSelection @ 0x1000501a4 // > CustomizeObjectLayer::colorSetupClosed @ 0x1000504cc // // 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 // ButtonSprite *__fastcall CustomizeObjectLayer::getButtonByTag(CustomizeObjectLayer *a1, int a2) { __int64 v4; // x21 ButtonSprite *v5; // x22 if ( !(unsigned int)sub_10024A36C(a1->m_colorButtons) ) return nullptr; v4 = 0; while ( 1 ) { v5 = (ButtonSprite *)sub_10024A388(a1->m_colorButtons, v4); if ( ((unsigned int (__fastcall *)(ButtonSprite *))v5->getTag)(v5) == a2 ) break; v4 = (unsigned int)(v4 + 1); if ( (unsigned int)v4 >= (unsigned int)sub_10024A36C(a1->m_colorButtons) ) return nullptr; } return v5; }