Skip to content

Commit

Permalink
Keep updating UI even while paused
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercd committed Oct 3, 2022
1 parent f284227 commit ae378ea
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions component-explorer/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae378ea

Please sign in to comment.