Implemented tooltip follows mouse (not perfect).

Fixed bug when using mousewheel action on inventory items.
Added a debug mode for tooltip following mouse
This commit is contained in:
Julian Murgia
2021-02-19 07:53:45 +01:00
parent 52d19c34bd
commit 38f554b496
24 changed files with 421 additions and 174 deletions

View File

@@ -16,7 +16,7 @@ func _input(event):
if ProjectSettings.get_setting("escoria/ui/tooltip_follows_mouse"):
if !hotspot_focused.empty():
if event is InputEventMouseMotion:
escoria.main.current_scene.game.update_tooltip_position(event.position)
escoria.main.current_scene.game.update_tooltip_following_mouse_position(event.position)
###################################################################################