From ae378ea1dce0acf6f212b4e0c541edb7a66df865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dexter=20Castor=20D=C3=B6pping?= Date: Mon, 3 Oct 2022 17:19:43 +0200 Subject: [PATCH] Keep updating UI even while paused --- component-explorer/init.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/component-explorer/init.lua b/component-explorer/init.lua index 23b819c..1006894 100644 --- a/component-explorer/init.lua +++ b/component-explorer/init.lua @@ -37,6 +37,14 @@ local windows_open_component = true local windows_open_entity = true function OnWorldPreUpdate() + update_ui(false) +end + +function OnPausePreUpdate() + update_ui(true) +end + +function update_ui(is_paused) local window_flags = imgui.WindowFlags.MenuBar if imgui.Begin("Component Explorer", nil, window_flags) then if imgui.BeginMenuBar() then