zorionak eneko
This commit is contained in:
@@ -98,11 +98,7 @@ func _ready():
|
||||
|
||||
if tooltip_node.connect("tooltip_size_updated", Callable(self, "update_tooltip_following_mouse_position").bind(tooltip_node)) != 0:
|
||||
escoria.logger.error(self, "Error connecting tooltip_size_updated with update_tooltip_following_mouse_position")
|
||||
# We get current day and month
|
||||
var time = Time.get_datetime_dict_from_system()
|
||||
var day = time["day"]
|
||||
var month = time["month"]
|
||||
escoria.globals_manager.set_global('zorionak_eneko', day == 8 and month ==2 )
|
||||
|
||||
|
||||
# Show inventory when video player finishes playing a video (inventory is hidden when a video starts)
|
||||
get_video_player().connect("finished", Callable(self, "show_ui"))
|
||||
@@ -136,6 +132,11 @@ func _enter_tree():
|
||||
if Input.connect("joy_connection_changed", Callable(self, "_on_joy_connection_changed")) != 0:
|
||||
escoria.logger.error(self, "Error connecting joy_connection_changed")
|
||||
|
||||
# We get current day and month
|
||||
var time = Time.get_datetime_dict_from_system()
|
||||
var day = time["day"]
|
||||
var month = time["month"]
|
||||
escoria.globals_manager.set_global('zorionak_eneko', day == 8 and month == 2)
|
||||
|
||||
func _exit_tree():
|
||||
escoria.inputs_manager.register_custom_input_handler(null)
|
||||
|
||||
Reference in New Issue
Block a user