// // EditorUI::valueFromXPos from 0x68f878 to 0x68f92c (180 bytes) // // 2 xrefs: // > EditorUI::updateSlider @ 0x68f960 // > @ 0x2d1e0 // // 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 // float EditorUI::valueFromXPos(EditorUI *a1, float a2) { float XMin; // s9 int SectionCount; // w19 float v6; // s0 float result; // s0 XMin = EditorUI::getXMin(a1, 0); SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer); a1->m_editorLayer->m_objectLayer->getScale(a1->m_editorLayer->m_objectLayer); if ( SectionCount < 100 ) SectionCount = 100; result = (float)-(float)(a2 - XMin) / (float)((float)((float)SectionCount * 100.0) * v6); if ( result <= 0.0 ) return 0.0; if ( result >= 1.0 ) return 1.0; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source