// // EditorUI::updateSlider from 0x1400e2b40 to 0x1400e2bfc (188 bytes) // // 9 xrefs: // > EditorUI::init @ 0x1400e0a2a // > EditorUI::onCreateObject @ 0x14010fb5c // > EditorUI::updateZoom @ 0x140112885 // > EditorUI::ccTouchMoved @ 0x1401245ad // > EditorUI::scrollWheel @ 0x140126977 // > LevelEditorLayer::init @ 0x1402d2c45 // > LevelEditorLayer::init @ 0x1402d2c7c // > LevelEditorLayer::onStopPlaytest @ 0x1402e0e00 // > @ 0x1406c8bec // // 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::updateSlider(EditorUI *a1) { float x; // xmm6_4 int v3; // edx float XMin; // xmm0_4 LevelEditorLayer *m_editorLayer; // rcx float v6; // xmm6_4 __int64 v7; // rbx int v8; // eax float v9; // xmm1_4 float v10; // xmm2_4 x = a1->m_editorLayer->m_objectLayer->getPosition_0(a1->m_editorLayer->m_objectLayer)->x; XMin = EditorUI::getXMin(a1, v3); m_editorLayer = a1->m_editorLayer; v6 = -(float)(x - XMin); v7 = m_editorLayer->m_sections._Mypair._Myval2._Mylast - m_editorLayer->m_sections._Mypair._Myval2._Myfirst; m_editorLayer->m_objectLayer->getScale(m_editorLayer->m_objectLayer); v8 = 100; if ( (int)v7 > 100 ) v8 = v7; v9 = 1.0; v10 = fmaxf(0.0, v6 / (float)(XMin * (float)((float)v8 * 100.0))); if ( v10 <= 1.0 ) v9 = v10; Slider::setValue(a1->m_positionSlider, v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source