// // EditorUI::sliderChanged from 0x1400e2a40 to 0x1400e2b3d (253 bytes) // // 2 xrefs: // > EditorUI::init @ 0x1400df4e7 // > @ 0x1406c8be0 // // 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 EditorUI::sliderChanged(EditorUI *a1, cocos2d::CCObject *a2) { float Value; // xmm8_4 cocos2d::CCLayer *m_objectLayer; // rdi int v5; // edx float XMin; // xmm0_4 LevelEditorLayer *m_editorLayer; // rcx float v8; // xmm7_4 __int64 v9; // rbx double v10; // xmm0_8 int v11; // eax cocos2d::CCLayer_vtbl *v12; // rbx float v13; // xmm6_4 __int64 v14; // rax const cocos2d::CCPoint *v15; // rax cocos2d::CCPoint v16; // [rsp+60h] [rbp+8h] BYREF Value = SliderThumb::getValue((SliderThumb *)a2); m_objectLayer = a1->m_editorLayer->m_objectLayer; XMin = EditorUI::getXMin(a1, v5); m_editorLayer = a1->m_editorLayer; v8 = XMin; v9 = m_editorLayer->m_sections._Mypair._Myval2._Mylast - m_editorLayer->m_sections._Mypair._Myval2._Myfirst; v10 = ((double (__fastcall *)(cocos2d::CCLayer *))m_editorLayer->m_objectLayer->getScale)(m_editorLayer->m_objectLayer); v11 = 100; if ( (int)v9 > 100 ) v11 = v9; v12 = m_objectLayer->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v13 = *(float *)&v10 * (float)((float)v11 * 100.0); v14 = (__int64)m_objectLayer->getPosition_0(m_objectLayer); cocos2d::CCPoint::CCPoint(&v16, -(float)((float)(v13 * Value) - v8), *(float *)(v14 + 4)); v12->setPosition_0(m_objectLayer, v15); EditorUI::constrainGameLayerPosition(a1, -100.0, -100.0); }