Fix visiblity issues

This commit is contained in:
JeremyStar™ 2024-02-09 23:03:41 +01:00
parent dfb8cacb0d
commit 953ad8201f
2 changed files with 8 additions and 10 deletions

View file

@ -67,6 +67,7 @@ func _pull_config() -> void:
func _ready() -> void:
# Add to SceneTree
core.sms.add_child(background)
core.sms.move_child(background, 0)
background.add_child(logrtl)
# Hide VScrollBar
var vsbar: VScrollBar = logrtl.get_child(0, true)

View file

@ -38,11 +38,11 @@ func _initialize() -> void:
scenes_menu.name = "MENU"
scenes_main.name = "MAIN"
scenes_background.name = "BACKGROUND"
add_child(scenes_debug)
add_child(scenes_cutscene)
add_child(scenes_menu)
add_child(scenes_main)
add_child(scenes_background)
add_child(scenes_main)
add_child(scenes_menu)
add_child(scenes_cutscene)
add_child(scenes_debug)
func _pull_config() -> void:
if core.config.headless:
@ -133,9 +133,6 @@ func get_scene_collection_count(type: CoreTypes.SceneType) -> int:
# Return scene existance & scene collection
func exists(sname: String) -> CoreTypes.SceneType:
if scenes_debug.has(sname): return CoreTypes.SceneType.DEBUG
elif scenes_cutscene.has(sname): return CoreTypes.SceneType.CUTSCENE
elif scenes_menu.has(sname): return CoreTypes.SceneType.MENU
elif scenes_main.has(sname): return CoreTypes.SceneType.MAIN
elif scenes_background.has(sname): return CoreTypes.SceneType.BACKGROUND
else: return CoreTypes.SceneType.NONE
for scene in scenes:
if scene == sname: return scenes[scene]["type"]
return CoreTypes.SceneType.NONE