Added ability to adjust mouse settings in game
This commit is contained in:
11
Assets/scripts/Component Scripts/Settings_Option.gd
Normal file
11
Assets/scripts/Component Scripts/Settings_Option.gd
Normal file
@ -0,0 +1,11 @@
|
||||
extends HBoxContainer
|
||||
|
||||
@export var Setting:GlobalSettings.Setting = GlobalSettings.Setting.Test_Value
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
$Label.text = GlobalSettings.GetSettingName(Setting)
|
||||
$HSlider.value = GlobalSettings.GetSetting(Setting)
|
||||
|
||||
func _on_setting_slider_value_changed(value:float):
|
||||
GlobalSettings.SetSetting(Setting, value)
|
||||
Reference in New Issue
Block a user