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")
|
logger.info("Initializing internals")
|
||||||
|
|
||||||
# Load state manager
|
# Load state manager
|
||||||
var statemanager: Node = Node.new()
|
var presenloader: Node = Node.new()
|
||||||
statemanager.name = "State Manager"
|
presenloader.name = "Presentation loader"
|
||||||
statemanager.set_script(load("res://src/statemanager.gd"))
|
presenloader.set_script(load("res://src/presenloader.gd"))
|
||||||
get_tree().root.add_child(statemanager)
|
get_tree().root.add_child(presenloader)
|
||||||
|
|
||||||
# Decide whenether to load a presentation or the UI
|
# Decide whenether to load a presentation or the UI
|
||||||
if args["load_presentation"]:
|
if args["load_presentation"]:
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
extends Node
|
extends Node
|
||||||
|
|
||||||
@onready var core: Core = get_node("/root/CORE")
|
@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:
|
func _ready() -> void:
|
||||||
# Register cleanup hook
|
# Register cleanup hook
|
||||||
core.register_cleanup_hook(func() -> void: queue_free())
|
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