Improved UI

This commit is contained in:
2024-02-12 12:38:31 +01:00
parent 019d382abd
commit d8d0c690bd
4 changed files with 43 additions and 27 deletions

View File

@ -1,15 +1,4 @@
extends OptionButton
func on_item_selected(index: int):
match index:
0:
preset_low()
1:
preset_medium()
2:
preset_high()
get_tree().call_group("video_preset_setting", "_ready")
extends Node
func preset_low():
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_BILINEAR
@ -20,6 +9,7 @@ func preset_low():
Global.environment.volumetric_fog_enabled = false
Global.camera_attributes.dof_blur_far_enabled = false
Global.camera_attributes.dof_blur_near_enabled = false
get_tree().call_group("video_preset_setting", "_ready")
func preset_medium():
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
@ -30,6 +20,7 @@ func preset_medium():
Global.environment.volumetric_fog_enabled = false
Global.camera_attributes.dof_blur_far_enabled = false
Global.camera_attributes.dof_blur_near_enabled = false
get_tree().call_group("video_preset_setting", "_ready")
func preset_high():
get_viewport().scaling_3d_mode = Viewport.SCALING_3D_MODE_FSR2
@ -39,4 +30,5 @@ func preset_high():
Global.environment.ssil_enabled = true
Global.environment.volumetric_fog_enabled = true
Global.camera_attributes.dof_blur_far_enabled = true
Global.camera_attributes.dof_blur_near_enabled = true
Global.camera_attributes.dof_blur_near_enabled = true
get_tree().call_group("video_preset_setting", "_ready")