// // cocos2d::extension::CCControlColourPicker::hueSliderValueChanged from 0x1001ae518 to 0x1001ae5f8 (224 bytes) // // 1 xrefs: // > cocos2d::extension::CCControlColourPicker::init @ 0x1001ae468 // // 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::hueSliderValueChanged( cocos2d::extension::CCControlColourPicker *a1, cocos2d::CCObject *a2, unsigned int a3) { __n128 v3; // q0 __n128 v4; // q1 double v6; // d0 double v7; // d1 double v8; // d2 float h; // s0 cocos2d::CCSprite *m_colorTarget; // x0 cocos2d::extension::ColorPickerDelegate *m_delegate; // x0 v3.n128_f64[0] = *(float *)&a2[8].m_uAutoReleaseCount; *(_QWORD *)&a1->m_hsv.h = v3.n128_u64[0]; v4.n128_u64[0] = *(_QWORD *)&a1->m_hsv.s; v6 = cocos2d::extension::CCControlUtils::RGBfromHSV(a1, v3, v4, a1->m_hsv.v); a1->m_rgb.b = (int)(v8 * 255.0); *(_WORD *)&a1->m_rgb.r = (int)(v6 * 255.0) | ((unsigned __int16)(int)(v7 * 255.0) << 8); ((void (__fastcall *)(cocos2d::extension::CCControlColourPicker *, __int64))a1->sendActionsForControlEvents)(a1, 256); h = a1->m_hsv.h; ((void (__fastcall *)(cocos2d::extension::CCControlHuePicker *, float))a1->m_huePicker->getHue)(a1->m_huePicker, h); ((void (__fastcall *)(cocos2d::extension::CCControlSaturationBrightnessPicker *, double, double, double))a1->m_colourPicker->getBrightness)( a1->m_colourPicker, a1->m_hsv.h, a1->m_hsv.s, a1->m_hsv.v); 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