// // EditorUI::valueFromXPos from 0x10002f0d0 to 0x10002f15b (139 bytes) // // 0 xrefs: // // 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) { int SectionCount; // eax int v3; // ecx float XMin; // [rsp+10h] [rbp-10h] XMin = EditorUI::getXMin(a1, 0); SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer); v3 = 100; if ( SectionCount >= 101 ) v3 = SectionCount; return fminf( fmaxf( (float)(a2 - XMin) / (float)(((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer) * (float)((float)v3 * -100.0)), 0.0), 1.0); }