Skip to content

Commit

Permalink
fix: properly hides mouse UI and inventory, e.g. when inventory drawe…
Browse files Browse the repository at this point in the history
…r is shown and the UI is then told to hide itself
  • Loading branch information
BHSDuncan authored and StraToN committed Jun 22, 2023
1 parent b62ca77 commit 47f02a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions addons/escoria-ui-simplemouse/game.gd
Original file line number Diff line number Diff line change
Expand Up @@ -311,13 +311,11 @@ func mousewheel_action(direction: int):


func hide_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.hide()
$CanvasLayer/ui.hide()
$CanvasLayer/ui.propagate_call("set_visible", [false], true)


func show_ui():
$CanvasLayer/ui/HBoxContainer/inventory_ui.show()
$CanvasLayer/ui.show()
$CanvasLayer/ui.propagate_call("set_visible", [true], false)


func hide_main_menu():
Expand Down

0 comments on commit 47f02a0

Please sign in to comment.