// // GameObject::colorForMode from 0x64a810 to 0x64a918 (264 bytes) // // 9 xrefs: // > PlayLayer::manualUpdateObjectColors @ 0x5c8fb0 // > PlayLayer::manualUpdateObjectColors @ 0x5c8fd4 // > PlayLayer::updateVisibility @ 0x5ce714 // > PlayLayer::updateVisibility @ 0x5cebb0 // > GameObject::updateMainColor @ 0x64a938 // > GameObject::updateMainColorOnly @ 0x64a984 // > GameObject::updateSecondaryColor @ 0x64a9f0 // > GameObject::updateSecondaryColorOnly @ 0x64aa58 // > @ 0x58308 // // 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 *GameObject::colorForMode(GameObject *a1, int a2, bool a3) { _BOOL4 v4; // w21 cocos2d::ccColor3B *p_m_groupColor; // x20 bool v6; // w2 GJSpriteColor *m_detailColor; // x1 unsigned __int64 v9; // x0 v4 = a3; p_m_groupColor = &a1->m_groupColor; if ( a2 <= 0 ) { a1->m_groupColor.r = -1; a1->m_groupColor.g = -1; a1->m_groupColor.b = -1; } else { *p_m_groupColor = *GameObject::getActiveColorForMode(a1, a2, a3); } if ( a1->m_colorGroupCount > 0 ) { if ( v4 ) { v6 = 1; if ( !a1->m_customSpriteColor ) { LABEL_7: *p_m_groupColor = *GameObject::groupColor(a1, p_m_groupColor, v6); goto LABEL_8; } } else if ( a1->m_activeDetailColorID == 1012 ) { goto LABEL_12; } v6 = 0; goto LABEL_7; } LABEL_8: if ( !v4 ) { LABEL_12: if ( !a1->m_detailUsesHSV ) return p_m_groupColor; m_detailColor = a1->m_detailColor; goto LABEL_16; } if ( !a1->m_baseUsesHSV ) return p_m_groupColor; m_detailColor = a1->m_baseColor; LABEL_16: v9 = GameToolbox::transformColor( &p_m_groupColor->r, *(_QWORD *)&m_detailColor->m_hsv.h, *(_QWORD *)&m_detailColor->m_hsv.v); a1->m_groupColor.r = v9; p_m_groupColor->g = BYTE1(v9); p_m_groupColor->b = BYTE2(v9); return p_m_groupColor; }
GD Web Decomp Icon

GD Web Decomp

Raw Source