// // GJScaleControl::ccTouchBegan from 0x1003fb20c to 0x1003fb390 (388 bytes) // // 2 xrefs: // > sub_1003FB390 @ 0x1003fb394 // > @ 0x100815288 // // 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 GJScaleControl::ccTouchBegan(GJScaleControl *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { cocos2d::CCPoint v3; // x29 cocos2d::CCPoint v4; // x30 int v5; // w0 double v9; // d0 float Value; // s0 cocos2d::CCString *v11; // x0 ScaleButtonType v12; // w20 GJScaleControlDelegate *m_delegate; // x0 float v14; // s0 cocos2d::CCString *v15; // x0 double v17; // [xsp+10h] [xbp-40h] BYREF cocos2d::CCPoint v18[7]; // [xsp+18h] [xbp-38h] BYREF if ( a1->m_touchID == -1 ) { v18[5] = v3; v18[6] = v4; cocos2d::CCTouch::getLocation(a2); cocos2d::CCNode::convertToNodeSpace(a1, v18); v9 = sub_1000229D0(v18, &v17); if ( ((unsigned int (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *, double))a1->m_sliderX->ccTouchBegan)( a1->m_sliderX, a2, a3, v9) ) { a1->m_touchID = a2->m_nId; Value = Slider::getValue(a1->m_sliderX); v11 = (cocos2d::CCString *)sub_100268F4C( "%.02f", (float)(a1->m_lowerBound + (float)(Value * (float)(a1->m_upperBound - a1->m_lowerBound)))); v12 = X; a1->m_valueX = cocos2d::CCString::floatValue(v11); m_delegate = a1->m_delegate; if ( !m_delegate ) { LABEL_6: a1->m_scaleButtonType = v12; LOBYTE(v5) = 1; return v5; } } else if ( ((unsigned int (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->m_sliderY->ccTouchBegan)( a1->m_sliderY, a2, a3) ) { a1->m_touchID = a2->m_nId; v14 = Slider::getValue(a1->m_sliderY); v15 = (cocos2d::CCString *)sub_100268F4C( "%.02f", (float)(a1->m_lowerBound + (float)(v14 * (float)(a1->m_upperBound - a1->m_lowerBound)))); a1->m_valueY = cocos2d::CCString::floatValue(v15); m_delegate = a1->m_delegate; v12 = Y; if ( !m_delegate ) goto LABEL_6; } else { v5 = ((__int64 (__fastcall *)(Slider *, cocos2d::CCTouch *, cocos2d::CCEvent *))a1->m_sliderXY->ccTouchBegan)( a1->m_sliderXY, a2, a3); if ( !v5 ) return v5; a1->m_touchID = a2->m_nId; m_delegate = a1->m_delegate; v12 = XY; if ( !m_delegate ) goto LABEL_6; } ((void (__fastcall *)(GJScaleControlDelegate *))m_delegate->scaleChangeBegin)(m_delegate); goto LABEL_6; } LOBYTE(v5) = 0; return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source