Rich tooltip cleanup
This commit was merged in pull request #164.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user