-
Notifications
You must be signed in to change notification settings - Fork 1
/
Menu.tscn
200 lines (174 loc) · 5.52 KB
/
Menu.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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
[gd_scene load_steps=8 format=3 uid="uid://bu5ucrk0ggc8y"]
[ext_resource type="Script" path="res://ip.cs" id="1_gk3ve"]
[ext_resource type="Theme" uid="uid://bog7fmp8wgt7w" path="res://Theme.tres" id="1_ord5l"]
[ext_resource type="Script" path="res://Menu.cs" id="2_fual7"]
[ext_resource type="Script" path="res://LineEdit1.cs" id="4_pcdne"]
[ext_resource type="FontFile" uid="uid://dkfrthtudolt0" path="res://Fonts/unifont.otf" id="5_k4xlc"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1x2ok"]
[sub_resource type="Theme" id="Theme_wrw2w"]
default_font = ExtResource("5_k4xlc")
default_font_size = 48
[node name="Menu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_ord5l")
script = ExtResource("2_fual7")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -396.0
offset_top = -200.0
offset_right = 396.0
offset_bottom = 200.0
grow_horizontal = 2
grow_vertical = 2
[node name="ScrollContainer" type="ScrollContainer" parent="VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
horizontal_scroll_mode = 0
[node name="PanelContainer" type="PanelContainer" parent="VBoxContainer/ScrollContainer"]
self_modulate = Color(1, 1, 1, 0)
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 6
[node name="ip" type="Label" parent="VBoxContainer/ScrollContainer/PanelContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "【你的IP】
114.514.1919.810
114.114.114.114
8.8.8.8
0.0.0.0"
horizontal_alignment = 1
script = ExtResource("1_gk3ve")
[node name="LineEdit1" type="LineEdit" parent="VBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 32
placeholder_text = "locInputUsername"
max_length = 16
script = ExtResource("4_pcdne")
[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"]
layout_mode = 2
[node name="Create" type="Button" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "locCreateChatroom"
[node name="Space" type="Control" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Join" type="Button" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 48
text = "locJoinChatroom"
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 56.0
grow_horizontal = 2
[node name="Control" type="Control" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Control2" type="Control" parent="HBoxContainer"]
layout_mode = 2
[node name="CheckButton" type="CheckButton" parent="HBoxContainer/Control2"]
layout_mode = 2
offset_left = -80.0
offset_top = -24.0
offset_right = -36.0
offset_bottom = 32.0
grow_horizontal = 0
scale = Vector2(2, 2)
theme = ExtResource("1_ord5l")
theme_override_styles/focus = SubResource("StyleBoxEmpty_1x2ok")
[node name="Label" type="Label" parent="HBoxContainer"]
layout_mode = 2
theme = ExtResource("1_ord5l")
theme_override_font_sizes/font_size = 48
text = "locDesktopNotification"
horizontal_alignment = 2
[node name="OptionButton" type="OptionButton" parent="."]
layout_mode = 0
offset_right = 45.0
offset_bottom = 20.0
theme = SubResource("Theme_wrw2w")
selected = 0
item_count = 4
popup/item_0/text = "English"
popup/item_1/text = "简体中文"
popup/item_1/id = 1
popup/item_2/text = "繁體中文"
popup/item_2/id = 2
popup/item_3/text = "日本語"
popup/item_3/id = 3
[node name="Popup" type="Panel" parent="."]
visible = false
self_modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="PanelContainer" type="PanelContainer" parent="Popup"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -320.0
offset_top = -180.0
offset_right = 320.0
offset_bottom = 60.0
grow_horizontal = 2
grow_vertical = 2
[node name="Label" type="Label" parent="Popup/PanelContainer"]
layout_mode = 2
theme_override_font_sizes/font_size = 32
text = "locYouWasRemoved"
horizontal_alignment = 1
[node name="PanelContainer2" type="PanelContainer" parent="Popup"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -320.0
offset_top = 60.0
offset_right = 320.0
offset_bottom = 180.0
grow_horizontal = 2
grow_vertical = 2
[node name="Button" type="Button" parent="Popup/PanelContainer2"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
theme_override_font_sizes/font_size = 48
text = " OK "
[node name="Version" type="Label" parent="."]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_top = -32.0
offset_right = 144.0
grow_vertical = 0
theme = ExtResource("1_ord5l")
theme_override_font_sizes/font_size = 32
text = "v2024.1.1"
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Create" to="." method="_on_create_pressed"]
[connection signal="pressed" from="VBoxContainer/HBoxContainer/Join" to="." method="_on_join_pressed"]
[connection signal="toggled" from="HBoxContainer/Control2/CheckButton" to="." method="_on_check_button_toggled"]
[connection signal="item_selected" from="OptionButton" to="." method="_on_option_button_item_selected"]
[connection signal="pressed" from="Popup/PanelContainer2/Button" to="." method="_on_ok_pressed"]