-
Notifications
You must be signed in to change notification settings - Fork 0
/
Interface.tscn
169 lines (142 loc) · 5.79 KB
/
Interface.tscn
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
[gd_scene load_steps=10 format=3 uid="uid://besp7yxnra0x"]
[ext_resource type="Script" path="res://Scripts/Interface.gd" id="1_6coka"]
[ext_resource type="PackedScene" uid="uid://ccoiyd4uwofwr" path="res://AboutPage.tscn" id="2_4lrkw"]
[ext_resource type="Script" path="res://Scripts/LeaderBoard.gd" id="2_jdjmn"]
[ext_resource type="PackedScene" uid="uid://c6fowcuc1jor7" path="res://HelpPage.tscn" id="3_b3e02"]
[ext_resource type="Script" path="res://Scripts/Pages.gd" id="4_3dv8b"]
[ext_resource type="PackedScene" uid="uid://b050quk2dct6" path="res://OptionsPage.tscn" id="4_wgpkx"]
[ext_resource type="PackedScene" uid="uid://dxoshints4kwp" path="res://CreateAccountPage.tscn" id="7_x4bn8"]
[sub_resource type="GDScript" id="GDScript_0887f"]
script/source = "extends Node
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
"
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dxg8l"]
bg_color = Color(0, 0.713726, 0.419608, 1)
corner_radius_top_left = 30
corner_radius_top_right = 30
corner_radius_bottom_right = 30
corner_radius_bottom_left = 30
[node name="Interface" type="CanvasLayer"]
script = ExtResource("1_6coka")
[node name="MainContainer" type="BoxContainer" parent="."]
anchors_preset = 4
anchor_top = 0.5
anchor_bottom = 0.5
offset_left = 100.0
offset_top = -404.0
offset_right = 898.0
offset_bottom = 481.0
grow_vertical = 2
theme_override_constants/separation = 50
vertical = true
[node name="ButtonContainer" type="VBoxContainer" parent="MainContainer"]
layout_mode = 2
theme_override_constants/separation = 17
[node name="StartButton" type="Button" parent="MainContainer/ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 80
text = "Start"
[node name="HelpButton" type="Button" parent="MainContainer/ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 80
text = "Help"
[node name="OptionsButton" type="Button" parent="MainContainer/ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 80
text = "Options"
[node name="AboutButton" type="Button" parent="MainContainer/ButtonContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 80
text = "About"
script = SubResource("GDScript_0887f")
[node name="UsernameContainer" type="VBoxContainer" parent="MainContainer"]
layout_mode = 2
theme_override_constants/separation = 17
[node name="UsernameEdit" type="LineEdit" parent="MainContainer/UsernameContainer"]
layout_mode = 2
tooltip_text = "Do not write your real name :D"
theme_override_font_sizes/font_size = 80
placeholder_text = "Username"
max_length = 15
clear_button_enabled = true
caret_blink = true
[node name="PasswordEdit" type="LineEdit" parent="MainContainer/UsernameContainer"]
layout_mode = 2
tooltip_text = "Do not write your real name :D"
theme_override_font_sizes/font_size = 80
placeholder_text = "Password"
max_length = 15
clear_button_enabled = true
caret_blink = true
secret = true
[node name="PasswordIncorrectLabel" type="RichTextLabel" parent="MainContainer/UsernameContainer"]
visible = false
layout_mode = 2
theme_override_font_sizes/normal_font_size = 30
theme_override_font_sizes/bold_font_size = 30
theme_override_font_sizes/italics_font_size = 30
theme_override_font_sizes/bold_italics_font_size = 30
theme_override_font_sizes/mono_font_size = 30
bbcode_enabled = true
text = "[center][color=red][i]Password is incorrect[/i][/color][/center]"
fit_content = true
[node name="LeaderBoardContainer" type="ScrollContainer" parent="."]
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -979.0
offset_top = -413.0
offset_right = -100.0
offset_bottom = 403.285
grow_horizontal = 0
grow_vertical = 2
horizontal_scroll_mode = 0
[node name="LeaderBoard" type="VBoxContainer" parent="LeaderBoardContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/separation = 17
script = ExtResource("2_jdjmn")
[node name="LeaderboardLabel" type="RichTextLabel" parent="LeaderBoardContainer/LeaderBoard"]
layout_mode = 2
theme_override_font_sizes/normal_font_size = 100
theme_override_font_sizes/bold_font_size = 100
theme_override_font_sizes/italics_font_size = 100
theme_override_font_sizes/bold_italics_font_size = 100
theme_override_font_sizes/mono_font_size = 100
theme_override_styles/normal = SubResource("StyleBoxFlat_dxg8l")
bbcode_enabled = true
text = "[img width=100]Externals/crown-emoji.png[/img] Leaderboard [img width=100]Externals/crown-emoji.png[/img]"
fit_content = true
[node name="ScoreLabel" type="Label" parent="."]
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -20.0
offset_right = 20.0
offset_bottom = 26.0
grow_horizontal = 2
theme_override_font_sizes/font_size = 100
text = "0"
horizontal_alignment = 1
[node name="AboutPage" parent="." instance=ExtResource("2_4lrkw")]
visible = false
[node name="HelpPage" parent="." instance=ExtResource("3_b3e02")]
visible = false
[node name="OptionsPage" parent="." instance=ExtResource("4_wgpkx")]
visible = false
script = ExtResource("4_3dv8b")
[node name="CreateAccountPage" parent="." instance=ExtResource("7_x4bn8")]
visible = false
[connection signal="pressed" from="MainContainer/ButtonContainer/StartButton" to="." method="_on_start_button_pressed"]
[connection signal="pressed" from="MainContainer/ButtonContainer/HelpButton" to="." method="_on_help_button_pressed"]
[connection signal="pressed" from="MainContainer/ButtonContainer/OptionsButton" to="." method="_on_options_button_pressed"]
[connection signal="pressed" from="MainContainer/ButtonContainer/AboutButton" to="." method="_on_about_button_pressed"]
[connection signal="text_changed" from="MainContainer/UsernameContainer/UsernameEdit" to="." method="_on_username_changed"]