21 lines
351 B
GDScript
21 lines
351 B
GDScript
extends Control
|
|
|
|
|
|
func _ready():
|
|
pass
|
|
|
|
func _on_h_slider_ready():
|
|
var slider = $h_slider
|
|
slider.value = Global.mouseSensitivity
|
|
|
|
func _process(delta):
|
|
pass
|
|
|
|
|
|
func _on_h_slider_value_changed(value):
|
|
Global.mouseSensitivity = value
|
|
SettingsFile.save_data(Global.mouseSensitivity, Global.playerName)
|
|
|
|
|
|
func _on_button_pressed():
|
|
self.queue_free()
|