// // cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition from 0x1001be270 to 0x1001be354 (228 bytes) // // 2 xrefs: // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchBegan @ 0x1001be3f8 // > cocos2d::extension::CCControlSaturationBrightnessPicker::ccTouchMoved @ 0x1001be450 // // 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 // bool __fastcall cocos2d::extension::CCControlSaturationBrightnessPicker::checkSliderPosition( cocos2d::extension::CCControlSaturationBrightnessPicker *a1, cocos2d::CCPoint a2) { __int64 v2; // x1 _BOOL4 v3; // w2 _BOOL4 v4; // w21 __int64 v5; // x20 float x; // s8 float y; // s10 float v9; // s8 __int64 v11; // [xsp+0h] [xbp-50h] BYREF float v12; // [xsp+8h] [xbp-48h] float v13; // [xsp+Ch] [xbp-44h] cocos2d::CCPoint v14; // 0:s0.4,4:s1.4 v4 = v3; v5 = v2; x = a1->m_startPos.x; cocos2d::CCNode::boundingBox(a1->m_background); y = a1->m_startPos.y; cocos2d::CCNode::boundingBox(a1->m_background); v9 = sqrtf( (float)((float)(*(float *)(v5 + 4) - (float)(y + (float)(v13 * 0.5))) * (float)(*(float *)(v5 + 4) - (float)(y + (float)(v13 * 0.5)))) + (float)((float)(*(float *)v5 - (float)(x + (float)(v12 * 0.5))) * (float)(*(float *)v5 - (float)(x + (float)(v12 * 0.5))))); cocos2d::CCNode::boundingBox(a1->m_background); if ( v9 <= (float)(v12 * 0.5) ) v4 = 1; if ( v4 ) { v14.x = sub_1000229B8(&v11, (__int64 *)v5); cocos2d::extension::CCControlSaturationBrightnessPicker::updateSliderPosition(a1, v14); ((void (__fastcall *)(cocos2d::extension::CCControlSaturationBrightnessPicker *, __int64))a1->sendActionsForControlEvents)( a1, 256); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source