2023-01-26 12:17:54 -07:00
|
|
|
extends Control
|
|
|
|
|
|
|
|
|
|
|
|
func _ready():
|
2023-03-11 14:18:11 -07:00
|
|
|
if get_window().get_mode() == Window.Mode.MODE_FULLSCREEN:
|
|
|
|
$fullscreenBox.button_pressed = true
|
2023-01-26 12:17:54 -07:00
|
|
|
|
|
|
|
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
|
2023-02-16 13:27:34 -07:00
|
|
|
SettingsFile.save_data(Global.mouseSensitivity, Global.playerName)
|
2023-01-26 13:23:13 -07:00
|
|
|
|
|
|
|
|
|
|
|
func _on_button_pressed():
|
|
|
|
self.queue_free()
|
2023-03-11 14:18:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
func _on_fullscreen_box_button_down():
|
|
|
|
get_window().set_mode(Window.Mode.MODE_FULLSCREEN)
|
|
|
|
|
|
|
|
|
|
|
|
func _on_fullscreen_box_button_up():
|
|
|
|
get_window().set_mode(Window.Mode.MODE_WINDOWED)
|