blob: 7e790c0c9ddf1c4a8fed0b86518518cbd9fa1826 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
extends Control
signal options_button_pressed
signal new_game_button_pressed
signal credits_button_pressed
@export
var _new_game_button : BaseButton
@export
var _checksum_label : Label
# REQUIREMENTS:
# * SS-3
# * UIFUN-97
func _ready():
print("From GDScript")
TestSingleton.hello_singleton()
# UIFUN-97
var checksum := Checksum.get_checksum_text()
_checksum_label.tooltip_text = "Checksum " + checksum
_checksum_label.text = "(" + checksum.substr(0, 4) + ")"
_new_game_button.grab_focus()
# REQUIREMENTS:
# * SS-14
# * UIFUN-32
func _on_new_game_button_pressed():
print("Start a new game!")
new_game_button_pressed.emit()
func _on_continue_button_pressed():
print("Continue last game!")
func _on_multi_player_button_pressed():
print("Have fun with friends!")
func _on_options_button_pressed():
print("Check out some options!")
options_button_pressed.emit()
# REQUIREMENTS
# * UI-32
# * UIFUN-36
func _on_credits_button_pressed():
credits_button_pressed.emit()
# REQUIREMENTS
# * SS-4
# * UIFUN-3
func _on_exit_button_pressed():
print("See you later!")
get_tree().quit()
|