// // SelectArtLayer::onSelectCustom from 0xa342e8 to 0xa343ac (196 bytes) // // 6 xrefs: // > SelectArtLayer::updateSelectedCustom @ 0xa364d4 // > @ 0x9c4e0 // > SelectArtLayer::init @ 0xa35fec // > SelectArtLayer::init @ 0xa360d8 // > SelectArtLayer::init @ 0xa361c4 // > @ 0x122d580 // // 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 SelectArtLayer::onSelectCustom(SelectArtLayer *a1, cocos2d::CCObject *a2) { int m_line; // w0 unsigned int v4; // w19 bool v5; // cf unsigned int v6; // w1 ButtonSprite *v7; // x0 if ( a2 ) m_line = a2->getTag(a2); else m_line = a1->m_line; if ( m_line <= 0 ) m_line = 1; if ( m_line > 3 ) m_line = 3; v4 = 0; a1->m_line = m_line; while ( 1 ) { v5 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_lineSprites); v6 = v4++; if ( v5 ) break; while ( 1 ) { v7 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_lineSprites, v6); if ( a1->m_line == v4 ) break; ButtonSprite::updateBGImage(v7, "GJ_button_04.png"); v5 = v4 >= (unsigned int)cocos2d::CCArray::count(a1->m_lineSprites); v6 = v4++; if ( v5 ) return; } ButtonSprite::updateBGImage(v7, "GJ_button_02.png"); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source