// // EditorUI::updateSlider from 0x10002ab00 to 0x10002abb4 (180 bytes) // // 4 xrefs: // > EditorUI::ccTouchMoved @ 0x10004f6b4 // > LevelEditorLayer::init @ 0x1000dbfd4 // > LevelEditorLayer::init @ 0x1000dc00e // > LevelEditorLayer::onStopPlaytest @ 0x1000f32f6 // // 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 __fastcall EditorUI::updateSlider(EditorUI *a1) { int SectionCount; // eax int v2; // ecx float v3; // xmm0_4 float v4; // [rsp+Ch] [rbp-14h] float XMin; // [rsp+10h] [rbp-10h] float v6; // [rsp+14h] [rbp-Ch] v4 = *(float *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getPosition)(a1->m_editorLayer->m_objectLayer); XMin = EditorUI::getXMin(a1, 0); SectionCount = LevelEditorLayer::getSectionCount(a1->m_editorLayer); v2 = 100; if ( SectionCount >= 101 ) v2 = SectionCount; v6 = (float)v2 * -100.0; v3 = ((float (__fastcall *)(cocos2d::CCLayer *))a1->m_editorLayer->m_objectLayer->getScale)(a1->m_editorLayer->m_objectLayer); Slider::setValue(a1->m_positionSlider, fminf(fmaxf((float)(v4 - XMin) / (float)(v3 * v6), 0.0), 1.0)); }