// // GameObject::getActiveColorForMode from 0x1002623f4 to 0x1002624c8 (212 bytes) // // 3 xrefs: // > PlayLayer::addObject @ 0x1001189e8 // > PlayLayer::addObject @ 0x100118a04 // > GameObject::colorForMode @ 0x100262224 // // 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 // const cocos2d::ccColor3B *__fastcall GameObject::getActiveColorForMode(GameObject *a1, int a2, bool a3) { const cocos2d::ccColor3B *result; // x0 GJEffectManager *m_goEffectManager; // x20 ColorActionSprite *v6; // x8 cocos2d::ccColor3B *p_m_copyColor; // x9 int b; // w8 int v9; // w9 ColorActionSprite *m_mainActionSprite; // x8 unsigned __int16 *v11; // x0 cocos2d::ccHSVValue v12; // 0:x2.16 result = (const cocos2d::ccColor3B *)&unk_100640499; if ( a2 <= 1010 ) { if ( !a2 ) return result; if ( a2 == 1010 ) return (const cocos2d::ccColor3B *)&unk_100640496; LABEL_9: if ( a3 ) m_mainActionSprite = a1->m_mainActionSprite; else m_mainActionSprite = a1->m_detailActionSprite; return &m_mainActionSprite->m_copyColor; } if ( a2 == 1011 ) return result; if ( a2 != 1012 ) goto LABEL_9; m_goEffectManager = a1->m_goEffectManager; if ( a3 ) { v6 = a1->m_mainActionSprite; p_m_copyColor = &v6->m_copyColor; b = v6->m_copyColor.b; v9 = *(unsigned __int16 *)&p_m_copyColor->r; } else { v11 = (unsigned __int16 *)((__int64 (__fastcall *)(GameObject *))a1->getColor)(a1); b = *((unsigned __int8 *)v11 + 2); v9 = *v11; } *(_QWORD *)&v12.v = 0x1003E19999ALL; *(_QWORD *)&v12.h = 0x3F26666600000000LL; a1->m_groupColor = GJEffectManager::colorForEffect(m_goEffectManager, (cocos2d::ccColor3B)(v9 | (b << 16)), v12); return &a1->m_groupColor; }
GD Web Decomp Icon

GD Web Decomp

Raw Source