// // EditorUI::valueFromXPos from 0x7c6c9c to 0x7c6d50 (180 bytes) // // 2 xrefs: // > EditorUI::updateSlider @ 0x7c6d84 // > @ 0x440c8 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:09 +0000 // float __fastcall EditorUI::valueFromXPos(LevelEditorLayer **this, float a2) { float XMin; // s9 int SectionCount; // w19 float v6; // s0 float result; // s0 XMin = EditorUI::getXMin((EditorUI *)this, 0); SectionCount = LevelEditorLayer::getSectionCount(*(this + 180)); (*(void (__fastcall **)(_QWORD))(**((_QWORD **)*(this + 180) + 490) + 168LL))(*((_QWORD *)*(this + 180) + 490)); 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