// // GJScaleControl::ccTouchEnded from 0x1003fb6e0 to 0x1003fb800 (288 bytes) // // 2 xrefs: // > sub_1003FB800 @ 0x1003fb804 // > @ 0x100815298 // // 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 GJScaleControl::ccTouchEnded(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { Slider **p_m_sliderY; // x22 float v7; // s0 cocos2d::CCString *v8; // x0 float Value; // s0 cocos2d::CCString *v10; // x0 GJScaleControlDelegate *m_delegate; // x0 if ( a1->m_touchID == a2->m_nId ) { if ( a1->m_scaleButtonType == Y ) { p_m_sliderY = &a1->m_sliderY; Value = Slider::getValue(a1->m_sliderY); v10 = (cocos2d::CCString *)sub_100268F4C( "%.02f", (float)(a1->m_lowerBound + (float)(Value * (float)(a1->m_upperBound - a1->m_lowerBound)))); a1->m_valueY = cocos2d::CCString::floatValue(v10); } else if ( a1->m_scaleButtonType ) { p_m_sliderY = &a1->m_sliderXY; } else { p_m_sliderY = &a1->m_sliderX; v7 = Slider::getValue(a1->m_sliderX); v8 = (cocos2d::CCString *)sub_100268F4C( "%.02f", (float)(a1->m_lowerBound + (float)(v7 * (float)(a1->m_upperBound - a1->m_lowerBound)))); a1->m_valueX = cocos2d::CCString::floatValue(v8); } ((void (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))(*p_m_sliderY)->ccTouchEnded)( *p_m_sliderY, a2, a3); if ( a1->m_touchID != -1 ) { a1->m_touchID = -1; m_delegate = a1->m_delegate; if ( m_delegate ) ((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeEnded)(m_delegate); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source