aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Autoload
diff options
context:
space:
mode:
author Hop311 <hop3114@gmail.com>2023-07-21 01:26:31 +0200
committer Hop311 <hop3114@gmail.com>2023-07-21 01:26:31 +0200
commit62d001b0fa209f259440e160503dc5ffe5bcaa8f (patch)
treea0b28dffaba50d351cab1619f54516be23d2aa6f /game/src/Game/Autoload
parentf3f240853b15a9f9b7cb561dc6626e7f342c5c74 (diff)
Tidying: missing req comments, submodules, hotkeys
Diffstat (limited to 'game/src/Game/Autoload')
-rw-r--r--game/src/Game/Autoload/Events/Options.gd7
-rw-r--r--game/src/Game/Autoload/Resolution.gd2
2 files changed, 8 insertions, 1 deletions
diff --git a/game/src/Game/Autoload/Events/Options.gd b/game/src/Game/Autoload/Events/Options.gd
index 08f34db..726960b 100644
--- a/game/src/Game/Autoload/Events/Options.gd
+++ b/game/src/Game/Autoload/Events/Options.gd
@@ -10,6 +10,8 @@ func load_settings_from_file() -> void:
# REQUIREMENTS
# * SS-11
+# * UIFUN-13
+# * FS-563
func save_settings_to_file() -> void:
save_settings.emit(_settings_file)
_settings_file.save(_settings_file_path)
@@ -18,6 +20,8 @@ func try_reset_settings() -> void:
reset_settings.emit()
const settings_file_path_setting : String = "openvic/settings/settings_file_path"
+# REQUIREMENTS
+# * FS-561
const settings_file_path_default : String = "user://settings.cfg"
var _settings_file_path : String = ProjectSettings.get_setting(settings_file_path_setting, settings_file_path_default)
@@ -25,7 +29,8 @@ var _settings_file := ConfigFile.new()
# REQUIREMENTS
# * SS-9
-# * UIFUN-7
+# * UIFUN-7, UIFUN-12
+# * FS-562
func _init():
if FileAccess.file_exists(_settings_file_path):
_settings_file.load(_settings_file_path)
diff --git a/game/src/Game/Autoload/Resolution.gd b/game/src/Game/Autoload/Resolution.gd
index 1c7add7..73169fb 100644
--- a/game/src/Game/Autoload/Resolution.gd
+++ b/game/src/Game/Autoload/Resolution.gd
@@ -7,6 +7,8 @@ const error_resolution : Vector2i = Vector2i(-1,-1)
@export
var minimum_resolution : Vector2i = Vector2i(1,1)
+# REQUIREMENTS:
+# * SS-130, SS-131, SS-132, SS-133
const _starting_resolutions : Array[Vector2i] = [
Vector2i(3840,2160),
Vector2i(2560,1080),