diff options
author | George L. Albany <Megacake1234@gmail.com> | 2023-12-24 19:23:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-24 19:23:18 +0100 |
commit | d26c990d9a5596a3ef3b32ba1cb0f99950cd6d34 (patch) | |
tree | 1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/Autoload/WindowOverride.gd | |
parent | 50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff) | |
parent | b6413251a866c76538869b84ed1c9b9852f7c507 (diff) |
Merge pull request #178 from Spartan322/add-menu-type-hints
Diffstat (limited to 'game/src/Game/Autoload/WindowOverride.gd')
-rw-r--r-- | game/src/Game/Autoload/WindowOverride.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/game/src/Game/Autoload/WindowOverride.gd b/game/src/Game/Autoload/WindowOverride.gd index 837570e..578aee0 100644 --- a/game/src/Game/Autoload/WindowOverride.gd +++ b/game/src/Game/Autoload/WindowOverride.gd @@ -2,11 +2,11 @@ extends Node const VideoOptions = preload("res://src/Game/Menu/OptionMenu/VideoTab.tscn") -func _init(): +func _init() -> void: var window_id := DisplayServer.get_window_list()[0] DisplayServer.window_set_size(Vector2(1280.0, 720.0), window_id) -func _ready(): +func _ready() -> void: if ArgumentParser.get_argument(&"help"): return _on_SceneTree_idle() # Hack to ensure Video Options load @@ -15,7 +15,7 @@ func _ready(): add_child(video) video.queue_free() -func _on_SceneTree_idle(): +func _on_SceneTree_idle() -> void: var window := get_window() window.set_mode(Window.MODE_FULLSCREEN) await get_tree().process_frame |