Skip to content

Commit

Permalink
Fix: all show/hide UI calls are broken
Browse files Browse the repository at this point in the history
Buttons no longer appear before/after boss battle
  • Loading branch information
nightblade9 committed Jul 27, 2019
1 parent 4cc4dae commit 83a1b79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/Scenes/PopulatedMapScene.gd
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ func unfreeze_monsters():
monster.unfreeze()

func hide_ui():
for child in $UI.get_children():
for child in $UI/Control.get_children():
if child is Button:
child.visible = false

func show_ui():
for child in $UI.get_children():
for child in $UI/Control.get_children():
if child is Button:
child.visible = true

Expand Down Expand Up @@ -290,7 +290,7 @@ func _add_monsters():
monsters.remove(monsters.find(Globals.current_monster))
elif Globals.current_monster.IS_BOSS:
_should_autosave = false # if quit/reload, will miss cutscene
Globals.hide_ui()
hide_ui()
Globals.current_monster.is_alive = false
if Globals.current_monster.replace_with_npc != null:
var npc_class = Globals.quest.NPCS[Globals.current_monster.replace_with_npc]
Expand Down

0 comments on commit 83a1b79

Please sign in to comment.