1
0
mirror of https://github.com/JohnBreaux/Boat-Battle.git synced 2024-11-15 05:25:57 +00:00

Load options on OptionController _ready(), so they will be available before options menu opens. Disable debug printout on loading scene using main bus signal. Cleanup formatting on Debug 'call' command output.

This commit is contained in:
John 2021-10-31 19:21:23 -05:00
parent c83e10668c
commit 29f643de20
3 changed files with 4 additions and 4 deletions

View File

@ -333,8 +333,8 @@ func command_call(command):
debug_print_line("We're sorry, but your call could not be completed as dialed.\n" debug_print_line("We're sorry, but your call could not be completed as dialed.\n"
+ "Please hang up and try your call again.\n") + "Please hang up and try your call again.\n")
return return
if (call_ret): if (call_ret != null):
debug_print_line("'" + String(call_ret) + "'\n") debug_print_line(String(call_ret) + "\n")
else: else:
debug_print_line("null\n") debug_print_line("null\n")
else: else:

View File

@ -42,7 +42,7 @@ func _process(_delta):
# Creates a new instance of each menu scene # Creates a new instance of each menu scene
func _on_scene_start(scene): func _on_scene_start(scene):
print ("_on_scene_start(",scene,")") #print ("_on_scene_start(",scene,")")
match scene: match scene:
"Singleplayer": "Singleplayer":
add_child (gameplay.instance()) add_child (gameplay.instance())

View File

@ -14,7 +14,7 @@ var mus_vol = 100
var sfx_vol = 100 var sfx_vol = 100
func _ready(): func _ready():
pass load_options()
# Setters # Setters
func set_theme(theme_name): func set_theme(theme_name):