// // EditorUI::valueFromXPos from 0x1003e75a0 to 0x1003e7630 (144 bytes) // // 1 xrefs: // > EditorUI::updateSlider @ 0x1003e45e0 // // 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 __fastcall EditorUI::valueFromXPos(EditorUI *a1, float a2) { float XMin; // s9 int SectionCount; // w0 unsigned int v6; // w8 XMin = EditorUI::getXMin(a1, 0); SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer); if ( SectionCount <= 100 ) v6 = 100; else v6 = SectionCount; return fminf( fmaxf( (float)(a2 - XMin) / (float)((float)((float)v6 * -100.0) * ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer)), 0.0), 1.0); }
GD Web Decomp Icon

GD Web Decomp

Raw Source