aboutsummaryrefslogtreecommitdiff
path: root/game/src/OptionsMenu.gd
blob: adcd3b5e0ae2fbc9b5f9ff17813efa57ef3575ba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
extends Control


# Called when the node enters the scene tree for the first time.
func _ready():
   print("TODO: Load user settings!")
   pass # Replace with function body.

## Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#  pass

func _on_resolution_selector_item_selected(index):
   print("Selected index: %d" % index)

func _on_screen_mode_selector_item_selected(index):
   print("Selected index: %d" % index)

func _on_monitor_display_selector_item_selected(index):
   print("Selected index: %d" % index)

func _on_music_volume_value_changed(value):
   print("Music: %f" % value)


func _on_sfx_volume_value_changed(value):
   print("SFX: %f" % value)


func _on_ear_exploder_toggled(button_pressed):
   print("KABOOM!!!" if button_pressed else "DEFUSED!!!")


func _on_save_settings_button_pressed():
   print("TODO: save current settings!")


func _on_back_button_pressed():
   get_tree().change_scene_to_file("res://src/MainMenu.tscn")


func _on_spin_box_value_changed(value):
   print("Spinbox: %d" % value)