// // SliderTouchLogic::ccTouchMoved from 0x1003041a0 to 0x100304379 (473 bytes) // // 2 xrefs: // > sub_100304470 @ 0x10030447c // > @ 0x10090c550 // // 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 SliderTouchLogic::ccTouchMoved(SliderTouchLogic *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3) { bool m_rotated; // al float v4; // xmm0_4 float v5; // xmm1_4 float m_length; // xmm3_4 SliderThumb *m_thumb; // r14 float v8; // xmm1_4 float v9; // xmm3_4 bool v10; // cc Slider *m_slider; // r14 float *v12; // rbx __int64 v13; // r15 float v14; // xmm0_4 float v15; // xmm0_4 __m128 v16; // xmm2 cocos2d::CCSprite *m_sliderBar; // rbx double v18[2]; // [rsp+8h] [rbp-38h] BYREF unsigned __int64 v19; // [rsp+18h] [rbp-28h] BYREF float v20; // [rsp+20h] [rbp-20h] float v21; // [rsp+24h] [rbp-1Ch] cocos2d::CCNode::convertTouchToNodeSpace((cocos2d::CCNode *)&v19, (cocos2d::CCTouch *)a1); sub_10028CD00(v18, &v19, (unsigned __int64 *)&a1->m_position); sub_10028CC90(&v19, v18); m_rotated = a1->m_rotated; v4 = *(float *)&v19; v5 = *((float *)&v19 + 1); if ( !m_rotated ) v5 = *(float *)&v19; m_length = a1->m_length; if ( (float)(-0.5 * m_length) <= v5 ) { v9 = m_length * 0.5; v10 = v5 <= v9; m_thumb = a1->m_thumb; v8 = 0.0; if ( v10 ) { if ( m_rotated ) { v4 = 0.0; v8 = *((float *)&v19 + 1); } } else if ( m_rotated ) { v4 = 0.0; v8 = v9; } else { v4 = v9; } } else { m_thumb = a1->m_thumb; v8 = 0.0; if ( m_rotated ) { v4 = 0.0; v8 = -0.5 * m_length; } else { v4 = -0.5 * m_length; } } sub_10028CBE0((float *)v18, v4, v8); ((void (__fastcall *)(SliderThumb *, double *))m_thumb->setPosition)(m_thumb, v18); if ( a1->m_activateThumb ) ((void (__fastcall *)(SliderThumb *))a1->m_thumb->activate)(a1->m_thumb); m_slider = a1->m_slider; if ( m_slider ) { v12 = (float *)m_slider->m_touchLogic->m_thumb; v13 = *((unsigned __int8 *)v12 + 404); v21 = *(float *)((*(__int64 (__fastcall **)(float *))(*(_QWORD *)v12 + 192LL))(v12) + 4 * v13); v20 = v12[100]; v14 = (*(float (__fastcall **)(float *))(*(_QWORD *)v12 + 168LL))(v12); v20 = (float)((float)(v20 * v14) * 0.5) + v21; v21 = v12[100]; v15 = (*(float (__fastcall **)(float *))(*(_QWORD *)v12 + 168LL))(v12); v16 = (__m128)LODWORD(v20); v16.f32[0] = fminf((float)(v20 / (float)(v15 * v21)) * m_slider->m_width, m_slider->m_width); m_sliderBar = m_slider->m_sliderBar; sub_10028CC00((__int64)v18, 0.0, 0.0, v16, (__m128)LODWORD(m_slider->m_height)); ((void (__fastcall *)(cocos2d::CCSprite *, double *))m_sliderBar->setTextureRect)(m_sliderBar, v18); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source