Remove non-existent escoria.action_to_string() function.
Apparently this was accidentally introduced in
99dc1e0110. This commit
removes it and consolidates one clause into the existing
conditional check.
This commit is contained in:
@@ -93,11 +93,9 @@ func element_focused(element_id: String) -> void:
|
|||||||
$tooltip_layer/tooltip.set_target(target_obj.tooltip_name)
|
$tooltip_layer/tooltip.set_target(target_obj.tooltip_name)
|
||||||
|
|
||||||
if escoria.action_manager.current_action != "use" \
|
if escoria.action_manager.current_action != "use" \
|
||||||
and escoria.action_manager.current_tool == null:
|
and escoria.action_manager.current_tool == null \
|
||||||
if target_obj is ESCItem:
|
and target_obj is ESCItem:
|
||||||
$mouse_layer/verbs_menu.set_by_name(
|
$mouse_layer/verbs_menu.set_by_name(target_obj.default_action)
|
||||||
escoria.action_to_string(target_obj.default_action)
|
|
||||||
)
|
|
||||||
|
|
||||||
func element_unfocused() -> void:
|
func element_unfocused() -> void:
|
||||||
$tooltip_layer/tooltip.set_target("")
|
$tooltip_layer/tooltip.set_target("")
|
||||||
|
|||||||
Reference in New Issue
Block a user