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