Added ability to adjust mouse settings in game

This commit is contained in:
2024-08-09 01:23:47 -05:00
parent 028a04bff7
commit ef1af747ba
6 changed files with 94 additions and 31 deletions

View 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)