fix labels that do not match program style
This commit is contained in:
parent
5f157f386f
commit
3778dfb3f9
16 changed files with 56 additions and 43 deletions
|
@ -5,9 +5,9 @@ extends Panel
|
|||
func _ready() -> void:
|
||||
$AAOption.select(get_viewport().msaa_3d)
|
||||
$SSAAOption.select(get_viewport().screen_space_aa)
|
||||
$ShadowsOption.select(Globalvariables.shadows)
|
||||
$FOVSlider.value = Globalvariables.FOV
|
||||
$FOVSlider/CurrentLabel.text = str(int(Globalvariables.FOV))
|
||||
$ShadowsOption.select(GlobalVariables.shadows)
|
||||
$FOVSlider.value = GlobalVariables.FOV
|
||||
$FOVSlider/CurrentLabel.text = str(int(GlobalVariables.FOV))
|
||||
|
||||
func _on_tab_bar_tab_changed(tab: int) -> void:
|
||||
if (thisTab == tab):
|
||||
|
@ -16,13 +16,13 @@ func _on_tab_bar_tab_changed(tab: int) -> void:
|
|||
visible = false
|
||||
|
||||
func _on_fov_slider_value_changed(value: float) -> void:
|
||||
Globalvariables.FOV = value
|
||||
GlobalVariables.FOV = value
|
||||
$FOVSlider/CurrentLabel.text = str(int(value))
|
||||
Globalvariables.updateConfig()
|
||||
GlobalVariables.updateConfig()
|
||||
|
||||
func _on_option_aa_ss_item_selected(index: int) -> void:
|
||||
get_viewport().screen_space_aa = int(index == 1) as Viewport.ScreenSpaceAA
|
||||
Globalvariables.updateConfig()
|
||||
GlobalVariables.updateConfig()
|
||||
|
||||
func _on_option_aa_msaa_item_selected(index: int) -> void:
|
||||
if index == 0: # Disabled
|
||||
|
@ -33,8 +33,8 @@ func _on_option_aa_msaa_item_selected(index: int) -> void:
|
|||
get_viewport().msaa_3d = Viewport.MSAA_4X
|
||||
elif index == 3: # 8×
|
||||
get_viewport().msaa_3d = Viewport.MSAA_8X
|
||||
Globalvariables.updateConfig()
|
||||
GlobalVariables.updateConfig()
|
||||
|
||||
func _on_shadows_option_item_selected(index: int) -> void:
|
||||
Globalvariables.shadows = index
|
||||
Globalvariables.updateConfig()
|
||||
GlobalVariables.shadows = index
|
||||
GlobalVariables.updateConfig()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue