RESTORED ORIGINAL addons/escoria-core/game/escoria.gd

This commit is contained in:
2023-03-07 23:41:30 +01:00
parent 50ad55ce14
commit 0380acc353
2 changed files with 4 additions and 2 deletions

View File

@@ -18,8 +18,7 @@ onready var main = $main
func _init():
escoria.inventory_manager = ESCInventoryManager.new()
# MODIFIED FOR RETURN TO MONKEY UI
escoria.action_manager = ESCActionManagerMonkey.new()
escoria.action_manager = ESCActionManager.new()
escoria.event_manager = ESCEventManager.new()
escoria.globals_manager = ESCGlobalsManager.new()
add_child(escoria.event_manager)

View File

@@ -82,6 +82,9 @@ var _current_mouse_pos = Vector2.ZERO
var tooltip2_node: Object
func _ready():
# We need a slightly modified version of Action Manager to combine items with different actions.
escoria.action_manager = ESCActionManagerMonkey.new()
if $tooltip_layer/tooltip.connect("tooltip_size_updated", self, "update_tooltip_following_mouse_position", [tooltip_node]) != 0:
escoria.logger.error(self, "Error connecting tooltip_size_updated")