|
|
@ -8,7 +8,7 @@ signal game_options_waila_changed(waila_enabled: bool) |
|
|
|
|
|
|
|
#region Graphics Settings Signals |
|
|
|
signal apply_graphics_settings |
|
|
|
signal graphics_resolution_changed(resolution: Vector2i) |
|
|
|
signal graphics_resolution_changed(resolution: Vector2i, id: int) |
|
|
|
signal graphics_fullscreen_changed(fullscreen_enabled: bool) |
|
|
|
signal graphics_vsync_changed(vsync_enabled: bool) |
|
|
|
signal graphics_fov_changed(fov: int) |
|
|
@ -76,13 +76,15 @@ func _on_graphics_fov_changed(fov: int) -> void: |
|
|
|
func _on_graphics_fullscreen_changed(fullscreen_enabled: bool) -> void: |
|
|
|
settings.graphics.fullscreen = fullscreen_enabled |
|
|
|
|
|
|
|
func _on_graphics_resolution_changed(resolution: Vector2i) -> void: |
|
|
|
func _on_graphics_resolution_changed(resolution: Vector2i, id: int) -> void: |
|
|
|
settings.graphics.resolution = resolution |
|
|
|
settings.graphics.resolution_id = id |
|
|
|
|
|
|
|
func _on_graphics_vsync_changed(vsync_enabled: bool) -> void: |
|
|
|
settings.graphics.vsync = vsync_enabled |
|
|
|
#endregion |
|
|
|
|
|
|
|
|
|
|
|
#region Saving and Loading Settings |
|
|
|
func _on_load_settings(apply_after_load: bool = true) -> void: |
|
|
|
if !FileAccess.file_exists(settings_file_path): |
|
|
|