// // GameObject::editorColorForMode from 0x647734 to 0x64786c (312 bytes) // // 3 xrefs: // > GameObject::updateObjectEditorColor @ 0x6478b8 // > GameObject::updateObjectEditorColor @ 0x647904 // > @ 0x8ddb0 // // 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 // cocos2d::ccColor3B GameObject::editorColorForMode(GameObject *a1, int a2) { GLubyte b; // w1 GLubyte g; // w2 GLubyte r; // w3 cocos2d::ccColor3B v6; // 0:w0.3 if ( a2 == 4 ) { b = -106; g = -1; r = -106; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } if ( a2 <= 4 ) { if ( a2 == 2 ) { g = -1; b = -106; r = -1; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } if ( a2 > 2 ) { b = -1; r = -106; g = -1; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } if ( a2 == 1 ) { b = -1; g = -106; r = -1; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } } else { if ( a2 == 1005 ) { b = -1; g = -106; r = -81; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } if ( a2 <= 1005 ) { if ( a2 == 1003 ) { g = -1; b = 0; r = -1; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } } else { if ( a2 == 1006 ) { b = -106; r = -1; g = -106; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } if ( a2 == 1007 ) { b = -1; g = -81; r = 75; return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); } } } if ( a1->m_isInvisibleBlock ) { b = 0; g = 127; r = -1; } else if ( (unsigned int)(a2 - 5) <= 0x3E1 ) { v6 = GameObject::editorColorForCustomMode(a1, a2); g = v6.g; b = v6.b; r = v6.r; } else { b = -1; g = -1; r = -1; } return (cocos2d::ccColor3B)(r | (unsigned __int16)(g << 8) | (b << 16)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source