501 lines
15 KiB
Plaintext
501 lines
15 KiB
Plaintext
[gd_scene load_steps=25 format=2]
|
|
|
|
[ext_resource path="res://Asset/HallBackground.png" type="Texture" id=1]
|
|
[ext_resource path="res://Asset/Button/RoomControl/CreateRoom.png" type="Texture" id=2]
|
|
[ext_resource path="res://Asset/Button/RoomControl/EnterRoom.png" type="Texture" id=3]
|
|
[ext_resource path="res://Hall.gd" type="Script" id=4]
|
|
[ext_resource path="res://Asset/Button/General/Confirm.png" type="Texture" id=5]
|
|
[ext_resource path="res://Asset/Button/General/Cancel.png" type="Texture" id=6]
|
|
[ext_resource path="res://Asset/PopupBackground.png" type="Texture" id=7]
|
|
[ext_resource path="res://Asset/Font/SourceHanSansSC-Normal.otf" type="DynamicFontData" id=8]
|
|
[ext_resource path="res://Asset/Input/InputShort.png" type="Texture" id=9]
|
|
[ext_resource path="res://Asset/Button/General/RadioSelect.png" type="Texture" id=10]
|
|
[ext_resource path="res://Asset/Button/General/RadioNormal.png" type="Texture" id=11]
|
|
|
|
[sub_resource type="StyleBoxTexture" id=1]
|
|
texture = ExtResource( 7 )
|
|
region_rect = Rect2( 0, 0, 640, 569 )
|
|
|
|
[sub_resource type="DynamicFont" id=2]
|
|
size = 72
|
|
font_data = ExtResource( 8 )
|
|
|
|
[sub_resource type="DynamicFont" id=3]
|
|
size = 72
|
|
font_data = ExtResource( 8 )
|
|
|
|
[sub_resource type="StyleBoxTexture" id=4]
|
|
texture = ExtResource( 7 )
|
|
region_rect = Rect2( 0, 0, 640, 569 )
|
|
|
|
[sub_resource type="Theme" id=5]
|
|
PopupMenu/colors/font_color = Color( 0, 0, 0, 1 )
|
|
PopupMenu/colors/font_color_accel = Color( 0.7, 0.7, 0.7, 0.8 )
|
|
PopupMenu/colors/font_color_disabled = Color( 0.4, 0.4, 0.4, 0.8 )
|
|
PopupMenu/colors/font_color_hover = Color( 0.88, 0.88, 0.88, 1 )
|
|
PopupMenu/constants/hseparation = 8
|
|
PopupMenu/constants/vseparation = 8
|
|
PopupMenu/fonts/font = SubResource( 3 )
|
|
PopupMenu/icons/checked = null
|
|
PopupMenu/icons/radio_checked = ExtResource( 10 )
|
|
PopupMenu/icons/radio_unchecked = ExtResource( 11 )
|
|
PopupMenu/icons/submenu = null
|
|
PopupMenu/icons/unchecked = null
|
|
PopupMenu/styles/hover = null
|
|
PopupMenu/styles/labeled_separator_left = null
|
|
PopupMenu/styles/labeled_separator_right = null
|
|
PopupMenu/styles/panel = SubResource( 4 )
|
|
PopupMenu/styles/panel_disabled = null
|
|
PopupMenu/styles/separator = null
|
|
|
|
[sub_resource type="StyleBoxTexture" id=6]
|
|
texture = ExtResource( 9 )
|
|
region_rect = Rect2( 0, 0, 257, 59 )
|
|
|
|
[sub_resource type="StyleBoxTexture" id=7]
|
|
texture = ExtResource( 9 )
|
|
region_rect = Rect2( 0, 0, 257, 59 )
|
|
|
|
[sub_resource type="DynamicFont" id=8]
|
|
size = 72
|
|
extra_spacing_char = 5
|
|
font_data = ExtResource( 8 )
|
|
|
|
[sub_resource type="DynamicFont" id=9]
|
|
size = 72
|
|
font_data = ExtResource( 8 )
|
|
|
|
[sub_resource type="DynamicFont" id=10]
|
|
size = 72
|
|
font_data = ExtResource( 8 )
|
|
|
|
[sub_resource type="StreamTexture" id=11]
|
|
flags = 4
|
|
load_path = "res://.import/QuitButton.png-31c18ce8db720f95af92c09426515d86.stex"
|
|
|
|
[sub_resource type="StyleBoxTexture" id=14]
|
|
texture = ExtResource( 7 )
|
|
region_rect = Rect2( 0, 0, 640, 569 )
|
|
|
|
[sub_resource type="DynamicFont" id=12]
|
|
size = 72
|
|
font_data = ExtResource( 8 )
|
|
|
|
[node name="Node2D" type="Node2D"]
|
|
script = ExtResource( 4 )
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="."]
|
|
margin_right = 1920.0
|
|
margin_bottom = 1080.0
|
|
texture = ExtResource( 1 )
|
|
expand = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="ButtonContainer" type="HBoxContainer" parent="."]
|
|
margin_left = 557.0
|
|
margin_top = 856.611
|
|
margin_right = 1363.0
|
|
margin_bottom = 1015.61
|
|
custom_constants/separation = 40
|
|
alignment = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="CreateRoomButton" type="TextureButton" parent="ButtonContainer"]
|
|
margin_right = 383.0
|
|
margin_bottom = 159.0
|
|
texture_normal = ExtResource( 2 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="EnterRoomButton" type="TextureButton" parent="ButtonContainer"]
|
|
margin_left = 423.0
|
|
margin_right = 806.0
|
|
margin_bottom = 159.0
|
|
texture_normal = ExtResource( 3 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="CreateRoomDialog" type="PopupPanel" parent="."]
|
|
margin_right = 930.0
|
|
margin_bottom = 580.0
|
|
custom_styles/panel = SubResource( 1 )
|
|
popup_exclusive = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="CreateRoomDialog"]
|
|
visible = false
|
|
margin_right = 930.0
|
|
margin_bottom = 580.0
|
|
texture = ExtResource( 7 )
|
|
|
|
[node name="VoxContainer" type="VBoxContainer" parent="CreateRoomDialog"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -465.0
|
|
margin_top = -290.0
|
|
margin_right = 465.0
|
|
margin_bottom = 290.0
|
|
custom_constants/separation = 50
|
|
alignment = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="GameRuleContainer" type="HBoxContainer" parent="CreateRoomDialog/VoxContainer"]
|
|
margin_top = 97.0
|
|
margin_right = 930.0
|
|
margin_bottom = 202.0
|
|
alignment = 1
|
|
|
|
[node name="GameRuleLabel" type="Label" parent="CreateRoomDialog/VoxContainer/GameRuleContainer"]
|
|
margin_left = 73.0
|
|
margin_right = 345.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 2 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "玩 法"
|
|
|
|
[node name="GameRuleChoice" type="OptionButton" parent="CreateRoomDialog/VoxContainer/GameRuleContainer"]
|
|
margin_left = 353.0
|
|
margin_right = 857.0
|
|
margin_bottom = 105.0
|
|
rect_min_size = Vector2( 504, 0 )
|
|
theme = SubResource( 5 )
|
|
custom_styles/hover = SubResource( 6 )
|
|
custom_styles/pressed = SubResource( 6 )
|
|
custom_styles/focus = SubResource( 6 )
|
|
custom_styles/normal = SubResource( 7 )
|
|
custom_fonts/font = SubResource( 8 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_hover = Color( 0, 0, 0, 1 )
|
|
custom_colors/font_color_pressed = Color( 0, 0, 0, 1 )
|
|
align = 1
|
|
|
|
[node name="PasswdContainer" type="HBoxContainer" parent="CreateRoomDialog/VoxContainer"]
|
|
margin_top = 252.0
|
|
margin_right = 930.0
|
|
margin_bottom = 357.0
|
|
custom_constants/separation = 20
|
|
alignment = 1
|
|
|
|
[node name="PasswordLabel" type="Label" parent="CreateRoomDialog/VoxContainer/PasswdContainer"]
|
|
margin_left = 59.0
|
|
margin_right = 347.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 9 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "房间密码"
|
|
|
|
[node name="PasswordEdit" type="LineEdit" parent="CreateRoomDialog/VoxContainer/PasswdContainer"]
|
|
margin_left = 367.0
|
|
margin_right = 871.0
|
|
margin_bottom = 105.0
|
|
custom_styles/focus = SubResource( 6 )
|
|
custom_styles/normal = SubResource( 7 )
|
|
custom_fonts/font = SubResource( 8 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
align = 1
|
|
max_length = 6
|
|
expand_to_text_length = true
|
|
clear_button_enabled = true
|
|
|
|
[node name="ButtonContainer" type="HBoxContainer" parent="CreateRoomDialog/VoxContainer"]
|
|
margin_top = 407.0
|
|
margin_right = 930.0
|
|
margin_bottom = 482.0
|
|
custom_constants/separation = 20
|
|
alignment = 1
|
|
|
|
[node name="ConfirmButton" type="TextureButton" parent="CreateRoomDialog/VoxContainer/ButtonContainer"]
|
|
margin_left = 234.0
|
|
margin_right = 455.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
[node name="CancelButton" type="TextureButton" parent="CreateRoomDialog/VoxContainer/ButtonContainer"]
|
|
margin_left = 475.0
|
|
margin_right = 696.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 6 )
|
|
|
|
[node name="JoinRoomDialog" type="PopupPanel" parent="."]
|
|
margin_right = 850.0
|
|
margin_bottom = 569.0
|
|
custom_styles/panel = SubResource( 1 )
|
|
popup_exclusive = true
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="JoinRoomDialog"]
|
|
visible = false
|
|
margin_right = 850.0
|
|
margin_bottom = 569.0
|
|
texture = ExtResource( 7 )
|
|
|
|
[node name="VoxContainer" type="VBoxContainer" parent="JoinRoomDialog"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -425.0
|
|
margin_top = -284.5
|
|
margin_right = 425.0
|
|
margin_bottom = 284.5
|
|
custom_constants/separation = 30
|
|
alignment = 1
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="RoomIDContainer" type="HBoxContainer" parent="JoinRoomDialog/VoxContainer"]
|
|
margin_top = 112.0
|
|
margin_right = 850.0
|
|
margin_bottom = 217.0
|
|
alignment = 1
|
|
|
|
[node name="RoomIDLabel" type="Label" parent="JoinRoomDialog/VoxContainer/RoomIDContainer"]
|
|
margin_left = 61.0
|
|
margin_right = 277.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 10 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "房间号"
|
|
|
|
[node name="RoomIDEdit" type="LineEdit" parent="JoinRoomDialog/VoxContainer/RoomIDContainer"]
|
|
margin_left = 285.0
|
|
margin_right = 789.0
|
|
margin_bottom = 105.0
|
|
custom_styles/focus = SubResource( 6 )
|
|
custom_styles/normal = SubResource( 7 )
|
|
custom_fonts/font = SubResource( 8 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
align = 1
|
|
max_length = 6
|
|
expand_to_text_length = true
|
|
clear_button_enabled = true
|
|
caret_blink = true
|
|
|
|
[node name="PasswdContainer" type="HBoxContainer" parent="JoinRoomDialog/VoxContainer"]
|
|
margin_top = 247.0
|
|
margin_right = 850.0
|
|
margin_bottom = 352.0
|
|
alignment = 1
|
|
|
|
[node name="PasswordLabel" type="Label" parent="JoinRoomDialog/VoxContainer/PasswdContainer"]
|
|
margin_left = 65.0
|
|
margin_right = 273.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 2 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "密 码"
|
|
|
|
[node name="PasswordEdit" type="LineEdit" parent="JoinRoomDialog/VoxContainer/PasswdContainer"]
|
|
margin_left = 281.0
|
|
margin_right = 785.0
|
|
margin_bottom = 105.0
|
|
custom_styles/focus = SubResource( 6 )
|
|
custom_styles/normal = SubResource( 7 )
|
|
custom_fonts/font = SubResource( 8 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
align = 1
|
|
max_length = 6
|
|
expand_to_text_length = true
|
|
context_menu_enabled = false
|
|
clear_button_enabled = true
|
|
caret_blink = true
|
|
|
|
[node name="ButtonContainer" type="HBoxContainer" parent="JoinRoomDialog/VoxContainer"]
|
|
margin_top = 382.0
|
|
margin_right = 850.0
|
|
margin_bottom = 457.0
|
|
custom_constants/separation = 20
|
|
alignment = 1
|
|
|
|
[node name="ConfirmButton" type="TextureButton" parent="JoinRoomDialog/VoxContainer/ButtonContainer"]
|
|
margin_left = 194.0
|
|
margin_right = 415.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
[node name="CancelButton" type="TextureButton" parent="JoinRoomDialog/VoxContainer/ButtonContainer"]
|
|
margin_left = 435.0
|
|
margin_right = 656.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 6 )
|
|
|
|
[node name="CreateRoomRequest" type="HTTPRequest" parent="."]
|
|
|
|
[node name="JoinRoomRequest" type="HTTPRequest" parent="."]
|
|
|
|
[node name="PopupPanel" type="PopupPanel" parent="."]
|
|
margin_right = 16.0
|
|
margin_bottom = 16.0
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="PopupPanel"]
|
|
margin_left = 8.0
|
|
margin_top = 8.0
|
|
margin_right = 229.0
|
|
margin_bottom = 116.0
|
|
|
|
[node name="Label" type="Label" parent="PopupPanel/VBoxContainer"]
|
|
margin_right = 40.0
|
|
margin_bottom = 25.0
|
|
|
|
[node name="ConfirmeButton" type="TextureButton" parent="PopupPanel/VBoxContainer"]
|
|
margin_left = 8.0
|
|
margin_top = 8.0
|
|
margin_right = 229.0
|
|
margin_bottom = 83.0
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
[node name="BackButton" type="TextureButton" parent="."]
|
|
margin_left = 48.0
|
|
margin_top = 33.0
|
|
margin_right = 108.0
|
|
margin_bottom = 95.0
|
|
rect_scale = Vector2( 2, 2 )
|
|
texture_normal = SubResource( 11 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="NoSuchRoom" type="PopupDialog" parent="."]
|
|
margin_right = 500.0
|
|
margin_bottom = 500.0
|
|
custom_styles/panel = SubResource( 14 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="NoSuchRoom"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -216.0
|
|
margin_top = -94.0
|
|
margin_right = 216.0
|
|
margin_bottom = 94.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="NoSuchRoom/VBoxContainer"]
|
|
margin_right = 432.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 12 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "此房间不存在"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="NoSuchRoom/VBoxContainer"]
|
|
margin_top = 113.0
|
|
margin_right = 432.0
|
|
margin_bottom = 188.0
|
|
alignment = 1
|
|
|
|
[node name="ConfirmButton" type="TextureButton" parent="NoSuchRoom/VBoxContainer/HBoxContainer"]
|
|
margin_left = 105.0
|
|
margin_right = 326.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
[node name="WrongPassword" type="PopupDialog" parent="."]
|
|
margin_right = 500.0
|
|
margin_bottom = 500.0
|
|
custom_styles/panel = SubResource( 14 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="WrongPassword"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -216.0
|
|
margin_top = -94.0
|
|
margin_right = 216.0
|
|
margin_bottom = 94.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="WrongPassword/VBoxContainer"]
|
|
margin_right = 432.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 12 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "房间密码错误"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="WrongPassword/VBoxContainer"]
|
|
margin_top = 113.0
|
|
margin_right = 432.0
|
|
margin_bottom = 188.0
|
|
alignment = 1
|
|
|
|
[node name="ConfirmButton" type="TextureButton" parent="WrongPassword/VBoxContainer/HBoxContainer"]
|
|
margin_left = 105.0
|
|
margin_right = 326.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 5 )
|
|
|
|
[node name="NoSeat" type="PopupDialog" parent="."]
|
|
margin_right = 500.0
|
|
margin_bottom = 500.0
|
|
custom_styles/panel = SubResource( 14 )
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="NoSeat"]
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
margin_left = -216.0
|
|
margin_top = -94.0
|
|
margin_right = 216.0
|
|
margin_bottom = 94.0
|
|
__meta__ = {
|
|
"_edit_use_anchors_": false
|
|
}
|
|
|
|
[node name="Label" type="Label" parent="NoSeat/VBoxContainer"]
|
|
margin_right = 432.0
|
|
margin_bottom = 105.0
|
|
custom_fonts/font = SubResource( 12 )
|
|
custom_colors/font_color = Color( 0, 0, 0, 1 )
|
|
text = "房间人数已满"
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="NoSeat/VBoxContainer"]
|
|
margin_top = 113.0
|
|
margin_right = 432.0
|
|
margin_bottom = 188.0
|
|
alignment = 1
|
|
|
|
[node name="ConfirmButton" type="TextureButton" parent="NoSeat/VBoxContainer/HBoxContainer"]
|
|
margin_left = 105.0
|
|
margin_right = 326.0
|
|
margin_bottom = 75.0
|
|
texture_normal = ExtResource( 5 )
|
|
[connection signal="pressed" from="ButtonContainer/CreateRoomButton" to="." method="_on_CreateRoomButton_pressed"]
|
|
[connection signal="pressed" from="ButtonContainer/EnterRoomButton" to="." method="_on_EnterRoomButton_pressed"]
|
|
[connection signal="pressed" from="CreateRoomDialog/VoxContainer/ButtonContainer/ConfirmButton" to="." method="_on_CreateRoom_ConfirmButton_pressed"]
|
|
[connection signal="pressed" from="CreateRoomDialog/VoxContainer/ButtonContainer/CancelButton" to="." method="_on_CreateRoom_CancelButton_pressed"]
|
|
[connection signal="pressed" from="JoinRoomDialog/VoxContainer/ButtonContainer/ConfirmButton" to="." method="_on_JoinRoom_ConfirmButton_pressed"]
|
|
[connection signal="pressed" from="JoinRoomDialog/VoxContainer/ButtonContainer/CancelButton" to="." method="_on_JoinRoom_CancelButton_pressed"]
|
|
[connection signal="pressed" from="NoSuchRoom/VBoxContainer/HBoxContainer/ConfirmButton" to="." method="_on_NoSuchRoom_ConfirmButton_pressed"]
|
|
[connection signal="pressed" from="WrongPassword/VBoxContainer/HBoxContainer/ConfirmButton" to="." method="_on_WrongPassword_ConfirmButton_pressed"]
|
|
[connection signal="pressed" from="NoSeat/VBoxContainer/HBoxContainer/ConfirmButton" to="." method="_on_NoSeat_ConfirmButton_pressed"]
|