From 6df0f5e45b4560a0ffc77623fe8f2277fc013642 Mon Sep 17 00:00:00 2001 From: Oier Bravo Urtasun Date: Sun, 5 Oct 2025 14:39:48 +0200 Subject: [PATCH] Rich tooltip cleanup --- .../rtmi_rich_tooltip.gd | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/addons/escoria-ui-return-monkey-island/rtmi_rich_tooltip.gd b/addons/escoria-ui-return-monkey-island/rtmi_rich_tooltip.gd index 395fa62a..81991f66 100644 --- a/addons/escoria-ui-return-monkey-island/rtmi_rich_tooltip.gd +++ b/addons/escoria-ui-return-monkey-island/rtmi_rich_tooltip.gd @@ -61,14 +61,9 @@ var hiddenTooltip: bool = false signal tooltip_size_updated # Connect relevant functions -func _ready(): +func _enter_tree() -> void: escoria.main.room_ready.connect(_on_room_ready) escoria.action_manager.action_changed.connect(_on_action_selected) - #if escoria.main.connect("room_ready", Callable(self, "_on_room_ready")) != 0: - # escoria.logger.error(self, "Error connecting room_ready with _on_room_ready") - - #if escoria.action_manager.connect("action_changed", Callable(self, "_on_action_selected")) != 0: -# escoria.logger.error(self, "Error connecting action_changed with _on_action_selected") # Set the color of the label @@ -95,8 +90,6 @@ func set_debug_mode(p_debug_mode: bool): debug_texturerect_node.texture = load("res://addons/escoria-core/game/assets/images/white.png") debug_texturerect_node.expand = true debug_texturerect_node.stretch_mode = TextureRect.STRETCH_TILE - #debug_texturerect_node.size_flags_horizontal = SIZE_EXPAND_FILL - #debug_texturerect_node.size_flags_vertical = SIZE_EXPAND_FILL debug_texturerect_node.show_behind_parent = true debug_texturerect_node.anchor_right = 1.0 debug_texturerect_node.anchor_bottom = 1.0 @@ -208,12 +201,6 @@ func get_tooltip2_size(): # **Return** # The calculated offset func _offset(position: Vector2) -> Vector2: - #var center_offset_x = current_size.x / 2 - #var offset_y = 5 - - #position.x -= center_offset_x - #position.y += offset_y - return position