visual adjustments to options window

This commit is contained in:
Persephone Bubblegum-Holiday 2025-08-12 22:17:51 -07:00
parent b1ab298f1b
commit 61806723ba
4 changed files with 93 additions and 57 deletions

View file

@ -1,12 +1,12 @@
extends Panel
@export var thisTab = 0 # The tab that must be active in the settings screen for the panel to appear.
@export var thisTab = 0
func _ready() -> void:
$HBoxContainer/settings/option_aa_msaa.selected = get_viewport().msaa_3d
$HBoxContainer/settings/option_aa_ss.selected = get_viewport().screen_space_aa
$HBoxContainer/settings/fov_slider.value = Globalvariables.FOV
$HBoxContainer/settings/fov_slider/CurrentLabel.text = str(int(Globalvariables.FOV))
$AAOption.selected = get_viewport().msaa_3d
$SSAAOption.selected = get_viewport().screen_space_aa
$FOVSlider.value = Globalvariables.FOV
$FOVSlider/CurrentLabel.text = str(int(Globalvariables.FOV))
func _on_tab_bar_tab_changed(tab: int) -> void:
if (thisTab == tab):
@ -19,7 +19,7 @@ func updateconfig():
func _on_fov_slider_value_changed(value: float) -> void:
Globalvariables.FOV = value
$HBoxContainer/settings/fov_slider/CurrentLabel.text = str(int(value))
$FOVSlider/CurrentLabel.text = str(int(value))
func _on_option_aa_ss_item_selected(index: int) -> void: