// // GameObject::setObjectColor from 0x100260ec4 to 0x1002610b0 (492 bytes) // // 46 xrefs: // > ParticleGameObject::setObjectColor @ 0x100381b1c // > LabelGameObject::setObjectColor @ 0x10038931c // > @ 0x1007c4180 // > @ 0x1007cfe50 // > @ 0x1007d0638 // > @ 0x1007d0e48 // > @ 0x1007f5ef0 // > @ 0x1007f6ee0 // > @ 0x1007f76d8 // > @ 0x1007f7ed0 // > @ 0x1007f86c8 // > @ 0x1007f8ec0 // > @ 0x1007f9eb8 // > @ 0x1007fa720 // > @ 0x1007faf30 // > @ 0x1007fb740 // > @ 0x1007fbf50 // > @ 0x1007fc760 // > @ 0x1007fcf70 // > @ 0x1007fd780 // > @ 0x1007fdf90 // > @ 0x1007fe7a0 // > @ 0x1007fefb0 // > @ 0x1007ff7d8 // > @ 0x100800030 // > @ 0x100800858 // > @ 0x100801080 // > @ 0x1008018a8 // > @ 0x1008020d0 // > @ 0x1008028e0 // > @ 0x1008030f0 // > @ 0x100803900 // > @ 0x100804110 // > @ 0x100804920 // > @ 0x100805130 // > @ 0x100805940 // > @ 0x100806150 // > @ 0x100806960 // > @ 0x100807170 // > @ 0x100807980 // > @ 0x100808190 // > @ 0x1008089a0 // > @ 0x1008091b0 // > @ 0x1008099c0 // > @ 0x10080a1d0 // > @ 0x1008164f0 // // 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 __fastcall GameObject::setObjectColor(GameObject *a1, const cocos2d::ccColor3B *a2) { int g; // w9 bool v5; // zf __int16 v7; // w8 cocos2d::CCArray *m_pChildren; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 cocos2d::CCSprite **arr; // x23 unsigned __int64 v12; // x24 cocos2d::CCSprite *v13; // x22 cocos2d::ccColor3B v14; // [xsp+Ch] [xbp-34h] BYREF cocos2d::ccHSVValue v15; // 0:x1.16 if ( a1->_realColor.r == a2->r ) { g = a2->g; if ( a1->_realColor.g == g ) { g = a1->_realColor.g; if ( a1->_realColor.b == a2->b ) { if ( a1->m_colorType == 1 ) a1->m_colorType = 2; return; } } } else { g = a2->g; } if ( a2->r ) v5 = 0; else v5 = g == 0; if ( v5 && a2->b == 0 ) { if ( a1->m_colorType == 1 ) v7 = 2; else v7 = 1; } else { v7 = 0; } a1->m_colorType = v7; if ( !a1->m_isObjectBlack ) ((void (__fastcall *)(GameObject *, const cocos2d::ccColor3B *))a1->setColor)(a1, a2); if ( !a1->m_customGlowColor ) ((void (__fastcall *)(GameObject *, const cocos2d::ccColor3B *))a1->setGlowColor)(a1, a2); if ( a1->m_particleUseObjectColor ) ((void (__fastcall *)(GameObject *, const cocos2d::ccColor3B *))a1->updateParticleColor)(a1, a2); if ( a1->m_hasCustomChild ) { m_pChildren = a1->m_pChildren; if ( m_pChildren ) { data = m_pChildren->data; num = data->num; if ( (_DWORD)num ) { arr = (cocos2d::CCSprite **)data->arr; v12 = (unsigned __int64)&arr[num - 1]; do { v13 = *arr; if ( !*arr ) break; if ( ((unsigned int (__fastcall *)(cocos2d::CCSprite *))v13->getTag)(*arr) == 2 ) { *(_QWORD *)&v15.h = 0x3F26666600000000LL; *(_QWORD *)&v15.v = 0x1003E19999ALL; v14 = GameToolbox::transformColor_1(a2, v15); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))v13->setColor)(v13, &v14); } else if ( (!a1->m_isColorSpriteBlack || ((unsigned int (__fastcall *)(cocos2d::CCSprite *))v13->getTag)(v13) == 997) && v13 != a1->m_colorSprite ) { ((void (__fastcall *)(cocos2d::CCSprite *, const cocos2d::ccColor3B *))v13->setColor)(v13, a2); } ++arr; } while ( (unsigned __int64)arr <= v12 ); } } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source