UNDO CHANGES IN escoria-core

This commit is contained in:
2023-02-13 18:20:52 +01:00
parent cfc45d0c56
commit 143086c4f3
6 changed files with 45 additions and 9 deletions

View File

@@ -70,6 +70,8 @@ var _is_gamepad_connected = false
# Tracks the mouse's current position onscreen.
var _current_mouse_pos = Vector2.ZERO
# A reference to the node handling tooltip2
var tooltip2_node: Object
func _ready():
$tooltip_layer/tooltip.connect("tooltip_size_updated", self, "update_tooltip_following_mouse_position")
@@ -306,6 +308,7 @@ func inventory_item_focused(inventory_item_global_id: String) -> void:
func inventory_item_unfocused() -> void:
$tooltip_layer/tooltip.set_target("")
$tooltip_layer/tooltip2.set_target("")
func open_inventory():
@@ -439,6 +442,7 @@ func _on_event_done(_return_code: int, _event_name: String):
escoria.action_manager.clear_current_action()
$mouse_layer/verbs_menu.clear_tool_texture()
$tooltip_layer/tooltip.set_target("")
$tooltip_layer/tooltip2.set_target("")
func _on_MenuButton_pressed() -> void:

View File

@@ -0,0 +1,4 @@
extends ESCItem
# The text for the tooltip of action2
export(String) var tooltip2_name