RESTORED ORIGINAL addons/escoria-core/game/escoria.gd
This commit is contained in:
@@ -18,8 +18,7 @@ onready var main = $main
|
|||||||
|
|
||||||
func _init():
|
func _init():
|
||||||
escoria.inventory_manager = ESCInventoryManager.new()
|
escoria.inventory_manager = ESCInventoryManager.new()
|
||||||
# MODIFIED FOR RETURN TO MONKEY UI
|
escoria.action_manager = ESCActionManager.new()
|
||||||
escoria.action_manager = ESCActionManagerMonkey.new()
|
|
||||||
escoria.event_manager = ESCEventManager.new()
|
escoria.event_manager = ESCEventManager.new()
|
||||||
escoria.globals_manager = ESCGlobalsManager.new()
|
escoria.globals_manager = ESCGlobalsManager.new()
|
||||||
add_child(escoria.event_manager)
|
add_child(escoria.event_manager)
|
||||||
|
|||||||
@@ -82,6 +82,9 @@ var _current_mouse_pos = Vector2.ZERO
|
|||||||
var tooltip2_node: Object
|
var tooltip2_node: Object
|
||||||
|
|
||||||
func _ready():
|
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:
|
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")
|
escoria.logger.error(self, "Error connecting tooltip_size_updated")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user