Fixed a bug where bottle in magical closet room 9 had wrong interaction position.
This commit is contained in:
@@ -6,6 +6,8 @@ This script is out of Escoria's scope. It controls the UI reaction to an
|
||||
UI event (eg right click) to change the cursor accordingly.
|
||||
"""
|
||||
|
||||
var selected_action
|
||||
|
||||
func _ready():
|
||||
for but in $actions.get_children():
|
||||
but.connect("pressed", self, "_on_action_selected", [but.name])
|
||||
@@ -20,3 +22,10 @@ func _on_action_selected(action : String):
|
||||
func unselect_actions():
|
||||
for but in $actions.get_children():
|
||||
but.set_pressed(false)
|
||||
|
||||
func set_by_name(action_name : String):
|
||||
selected_action = action_name
|
||||
for but in $actions.get_children():
|
||||
but.set_pressed(but.get_name() == action_name)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user