// // cocos2d::extension::CCControlColourPicker::setColorValue from 0x1001ae7a4 to 0x1001ae860 (188 bytes) // // 1 xrefs: // > @ 0x1007af600 // // 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 cocos2d::extension::CCControlColourPicker::setColorValue( cocos2d::extension::CCControlColourPicker *a1, const cocos2d::ccColor3B *a2) { unsigned int v2; // s0 unsigned int v3; // s1 unsigned int v4; // s3 __int16 v6; // w8 double v7; // d1 double v8; // d2 cocos2d::CCSprite *m_colorTarget; // x0 cocos2d::extension::ColorPickerDelegate *m_delegate; // x0 v6 = *(_WORD *)&a2->r; a1->m_rgb.b = a2->b; *(_WORD *)&a1->m_rgb.r = v6; LOBYTE(v2) = a2->r; LOBYTE(v3) = a2->g; LOBYTE(v4) = a2->b; a1->m_hsv.h = cocos2d::extension::CCControlUtils::HSVfromRGB( (float)((float)v2 / 255.0), (float)((float)v3 / 255.0), (float)((float)v4 / 255.0), 1.0); a1->m_hsv.s = v7; a1->m_hsv.v = v8; cocos2d::extension::CCControlColourPicker::updateHueAndControlPicker(a1); m_colorTarget = a1->m_colorTarget; if ( m_colorTarget ) ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::ccColor3B *))m_colorTarget->setColor)(m_colorTarget, &a1->m_rgb); m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(cocos2d::extension::ColorPickerDelegate *, unsigned __int64))m_delegate->colorValueChanged)( m_delegate, *(unsigned __int16 *)&a1->m_rgb.r | ((unsigned __int64)a1->m_rgb.b << 16)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source