visual adjustments to options window
This commit is contained in:
parent
b1ab298f1b
commit
61806723ba
4 changed files with 93 additions and 57 deletions
|
@ -10,9 +10,9 @@ func _ready():
|
|||
Globalvariables.loadConfig()
|
||||
print(Globalvariables.FOV)
|
||||
print(Globalvariables.msaa)
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/HBoxContainer/settings/fov_slider.value = Globalvariables.FOV
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/HBoxContainer/settings/option_aa_msaa.selected = Globalvariables.msaa
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/HBoxContainer/settings/option_aa_ss.selected = Globalvariables.ssaa
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/FOVSlider.value = Globalvariables.FOV
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/AAOption.selected = Globalvariables.msaa
|
||||
$SettingsScreen/DialogPanel/GraphicsPanel/SSAAOption.selected = Globalvariables.ssaa
|
||||
|
||||
var moddir = DirAccess.open("user://Mods")
|
||||
if moddir == null:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue