mirror of
https://github.com/JohnBreaux/Boat-Battle.git
synced 2024-11-15 05:25:57 +00:00
Load the theme on startup
This commit is contained in:
parent
bd5d350e96
commit
31e00eb7f4
@ -26,6 +26,8 @@ func _ready():
|
|||||||
_errno += MessageBus.connect("quit" , self, "_on_quit_request" )
|
_errno += MessageBus.connect("quit" , self, "_on_quit_request" )
|
||||||
_errno += MessageBus.connect("return_to_title", self, "_on_title_request" )
|
_errno += MessageBus.connect("return_to_title", self, "_on_title_request" )
|
||||||
_errno += OptionsController.connect("change_theme", self, "_on_change_theme" )
|
_errno += OptionsController.connect("change_theme", self, "_on_change_theme" )
|
||||||
|
# Set the theme based on the config file
|
||||||
|
_on_change_theme(OptionsController.get_theme())
|
||||||
# go fullscreen
|
# go fullscreen
|
||||||
OS.low_processor_usage_mode = power_saving
|
OS.low_processor_usage_mode = power_saving
|
||||||
OS.low_processor_usage_mode_sleep_usec = 6800
|
OS.low_processor_usage_mode_sleep_usec = 6800
|
||||||
|
Loading…
Reference in New Issue
Block a user