Rename statemanager.gd to presenloader.gd
This commit is contained in:
parent
4afaa8ef54
commit
fe2f4b7f7b
2 changed files with 6 additions and 6 deletions
|
@ -56,10 +56,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.""")
|
|||
logger.info("Initializing internals")
|
||||
|
||||
# Load state manager
|
||||
var statemanager: Node = Node.new()
|
||||
statemanager.name = "State Manager"
|
||||
statemanager.set_script(load("res://src/statemanager.gd"))
|
||||
get_tree().root.add_child(statemanager)
|
||||
var presenloader: Node = Node.new()
|
||||
presenloader.name = "Presentation loader"
|
||||
presenloader.set_script(load("res://src/presenloader.gd"))
|
||||
get_tree().root.add_child(presenloader)
|
||||
|
||||
# Decide whenether to load a presentation or the UI
|
||||
if args["load_presentation"]:
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
extends Node
|
||||
|
||||
@onready var core: Core = get_node("/root/CORE")
|
||||
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/statemanager.gd", self)
|
||||
@onready var logger: CoreLoggerInstance = core.logger.get_instance("src/presenloader.gd", self)
|
||||
|
||||
func _ready() -> void:
|
||||
# Register cleanup hook
|
||||
core.register_cleanup_hook(func() -> void: queue_free())
|
||||
|
||||
logger.verb("State manager is ready")
|
||||
logger.info("Presentation loader is ready")
|
Loading…
Reference in a new issue