Fix visiblity issues
This commit is contained in:
parent
dfb8cacb0d
commit
953ad8201f
2 changed files with 8 additions and 10 deletions
|
@ -67,6 +67,7 @@ func _pull_config() -> void:
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
# Add to SceneTree
|
# Add to SceneTree
|
||||||
core.sms.add_child(background)
|
core.sms.add_child(background)
|
||||||
|
core.sms.move_child(background, 0)
|
||||||
background.add_child(logrtl)
|
background.add_child(logrtl)
|
||||||
# Hide VScrollBar
|
# Hide VScrollBar
|
||||||
var vsbar: VScrollBar = logrtl.get_child(0, true)
|
var vsbar: VScrollBar = logrtl.get_child(0, true)
|
||||||
|
|
17
src/sms.gd
17
src/sms.gd
|
@ -38,11 +38,11 @@ func _initialize() -> void:
|
||||||
scenes_menu.name = "MENU"
|
scenes_menu.name = "MENU"
|
||||||
scenes_main.name = "MAIN"
|
scenes_main.name = "MAIN"
|
||||||
scenes_background.name = "BACKGROUND"
|
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_background)
|
||||||
|
add_child(scenes_main)
|
||||||
|
add_child(scenes_menu)
|
||||||
|
add_child(scenes_cutscene)
|
||||||
|
add_child(scenes_debug)
|
||||||
|
|
||||||
func _pull_config() -> void:
|
func _pull_config() -> void:
|
||||||
if core.config.headless:
|
if core.config.headless:
|
||||||
|
@ -133,9 +133,6 @@ func get_scene_collection_count(type: CoreTypes.SceneType) -> int:
|
||||||
|
|
||||||
# Return scene existance & scene collection
|
# Return scene existance & scene collection
|
||||||
func exists(sname: String) -> CoreTypes.SceneType:
|
func exists(sname: String) -> CoreTypes.SceneType:
|
||||||
if scenes_debug.has(sname): return CoreTypes.SceneType.DEBUG
|
for scene in scenes:
|
||||||
elif scenes_cutscene.has(sname): return CoreTypes.SceneType.CUTSCENE
|
if scene == sname: return scenes[scene]["type"]
|
||||||
elif scenes_menu.has(sname): return CoreTypes.SceneType.MENU
|
return CoreTypes.SceneType.NONE
|
||||||
elif scenes_main.has(sname): return CoreTypes.SceneType.MAIN
|
|
||||||
elif scenes_background.has(sname): return CoreTypes.SceneType.BACKGROUND
|
|
||||||
else: return CoreTypes.SceneType.NONE
|
|
||||||
|
|
Loading…
Reference in a new issue