2023-05-11 11:09:33 -06:00
|
|
|
[gd_scene load_steps=8 format=3 uid="uid://cv5bctupikqe7"]
|
2023-02-09 13:10:25 -07:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/host.gd" id="1_r5rkm"]
|
2023-02-24 23:49:49 -07:00
|
|
|
[ext_resource type="Texture2D" uid="uid://b8hvwlbkrib4k" path="res://2DArt/Main Menu/PlayScreenHOST.png" id="2_s15iu"]
|
2023-03-05 20:39:01 -07:00
|
|
|
[ext_resource type="Texture2D" uid="uid://bmyat8a6alp2y" path="res://2DArt/host/mapIcons/toyland.png" id="3_rgmyq"]
|
2023-03-23 10:15:36 -06:00
|
|
|
[ext_resource type="Texture2D" uid="uid://br7n6qfnfpm4v" path="res://2DArt/host/mapIcons/islands.png" id="4_gvop1"]
|
2023-05-11 11:09:33 -06:00
|
|
|
[ext_resource type="Texture2D" uid="uid://6g3ltm1o5q38" path="res://2DArt/host/mapIcons/forest.png" id="5_4jx7h"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://888gbreh0kwg" path="res://2DArt/host/mapIcons/toyfactory.png" id="6_y4i2t"]
|
2023-01-31 13:34:11 -07:00
|
|
|
|
2023-02-09 13:10:25 -07:00
|
|
|
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_xhmtq"]
|
|
|
|
|
2023-01-31 13:34:11 -07:00
|
|
|
[node name="hostmenu" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2023-02-09 13:10:25 -07:00
|
|
|
script = ExtResource("1_r5rkm")
|
2023-01-31 13:34:11 -07:00
|
|
|
|
2023-02-24 23:49:49 -07:00
|
|
|
[node name="PlayScreenHost" type="Sprite2D" parent="."]
|
|
|
|
position = Vector2(576.556, 324.75)
|
|
|
|
scale = Vector2(0.300231, 0.300231)
|
|
|
|
texture = ExtResource("2_s15iu")
|
2023-02-09 13:10:25 -07:00
|
|
|
|
|
|
|
[node name="close" type="Button" parent="."]
|
2023-02-14 11:40:02 -07:00
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 859.0
|
|
|
|
offset_top = 82.0
|
|
|
|
offset_right = 890.0
|
|
|
|
offset_bottom = 113.0
|
2023-02-09 13:10:25 -07:00
|
|
|
text = "X"
|
2023-02-24 23:49:49 -07:00
|
|
|
flat = true
|
2023-02-09 13:10:25 -07:00
|
|
|
|
|
|
|
[node name="Panel2" type="Panel" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 308.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 187.0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_right = 508.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 387.0
|
2023-02-09 13:10:25 -07:00
|
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_xhmtq")
|
|
|
|
|
|
|
|
[node name="Label" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 348.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 267.0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_right = 464.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 293.0
|
2023-02-09 13:10:25 -07:00
|
|
|
text = "IMAGE OF MAP"
|
|
|
|
|
|
|
|
[node name="mapLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 658.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 176.0
|
2023-02-09 13:10:25 -07:00
|
|
|
offset_right = 782.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 202.0
|
2023-02-09 13:10:25 -07:00
|
|
|
text = "MAP SELECTION"
|
|
|
|
|
|
|
|
[node name="playground" type="Button" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 646.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 206.0
|
2023-02-09 13:10:25 -07:00
|
|
|
offset_right = 797.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 241.0
|
2023-02-22 21:31:22 -07:00
|
|
|
text = "Toyland"
|
2023-02-09 13:10:25 -07:00
|
|
|
|
2023-03-23 10:15:36 -06:00
|
|
|
[node name="islandsButton" type="Button" parent="."]
|
2023-03-18 12:47:09 -06:00
|
|
|
layout_mode = 0
|
2023-03-18 01:11:03 -06:00
|
|
|
offset_left = 646.0
|
|
|
|
offset_top = 249.0
|
|
|
|
offset_right = 797.0
|
|
|
|
offset_bottom = 284.0
|
|
|
|
text = "Islands"
|
|
|
|
|
2023-04-11 13:31:11 -06:00
|
|
|
[node name="forrestButton" type="Button" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 646.0
|
|
|
|
offset_top = 291.0
|
|
|
|
offset_right = 797.0
|
|
|
|
offset_bottom = 326.0
|
2023-04-11 22:37:15 -06:00
|
|
|
text = "Forest"
|
2023-04-11 13:31:11 -06:00
|
|
|
|
2023-02-09 13:10:25 -07:00
|
|
|
[node name="portBox" type="LineEdit" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 726.0
|
|
|
|
offset_top = 533.0
|
|
|
|
offset_right = 793.062
|
|
|
|
offset_bottom = 564.0
|
2023-03-19 15:06:11 -06:00
|
|
|
text = "28000"
|
2023-02-09 13:10:25 -07:00
|
|
|
placeholder_text = "Port"
|
|
|
|
|
|
|
|
[node name="startButton" type="Button" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 802.0
|
|
|
|
offset_top = 532.0
|
|
|
|
offset_right = 884.0
|
|
|
|
offset_bottom = 564.0
|
2023-02-09 13:10:25 -07:00
|
|
|
text = "START"
|
|
|
|
|
|
|
|
[node name="lowerMapLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_left = 265.0
|
|
|
|
offset_top = 395.0
|
|
|
|
offset_right = 308.0
|
|
|
|
offset_bottom = 421.0
|
2023-02-09 13:10:25 -07:00
|
|
|
text = "Map: "
|
|
|
|
|
|
|
|
[node name="mapSelected" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 309.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 396.0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_right = 349.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 419.0
|
2023-02-09 13:10:25 -07:00
|
|
|
|
2023-02-14 11:40:02 -07:00
|
|
|
[node name="playerBox" type="LineEdit" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 725.0
|
|
|
|
offset_top = 498.0
|
|
|
|
offset_right = 792.062
|
|
|
|
offset_bottom = 529.0
|
2023-03-19 15:06:11 -06:00
|
|
|
text = "10"
|
2023-02-14 11:40:02 -07:00
|
|
|
placeholder_text = "Players"
|
|
|
|
|
|
|
|
[node name="maxPlayersLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 615.0
|
|
|
|
offset_top = 502.0
|
|
|
|
offset_right = 713.0
|
|
|
|
offset_bottom = 528.0
|
2023-02-14 11:40:02 -07:00
|
|
|
text = "Max Players:"
|
|
|
|
|
|
|
|
[node name="portLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_left = 674.0
|
|
|
|
offset_top = 537.0
|
|
|
|
offset_right = 714.0
|
|
|
|
offset_bottom = 563.0
|
2023-02-14 11:40:02 -07:00
|
|
|
text = "Port:"
|
|
|
|
|
2023-02-24 23:49:49 -07:00
|
|
|
[node name="joinButton" type="Button" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 410.0
|
|
|
|
offset_top = 71.0
|
|
|
|
offset_right = 522.0
|
|
|
|
offset_bottom = 124.0
|
|
|
|
flat = true
|
|
|
|
|
|
|
|
[node name="hostLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 534.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_top = 148.0
|
2023-02-24 23:49:49 -07:00
|
|
|
offset_right = 620.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_bottom = 174.0
|
2023-02-24 23:49:49 -07:00
|
|
|
text = "Host Game"
|
|
|
|
|
2023-02-25 15:21:18 -07:00
|
|
|
[node name="playerNameBox" type="LineEdit" parent="."]
|
2023-02-28 09:46:35 -07:00
|
|
|
layout_mode = 0
|
2023-02-25 15:21:18 -07:00
|
|
|
offset_left = 392.0
|
|
|
|
offset_top = 527.0
|
|
|
|
offset_right = 559.0
|
|
|
|
offset_bottom = 570.0
|
|
|
|
|
|
|
|
[node name="playerLabel" type="Label" parent="."]
|
2023-02-28 09:46:35 -07:00
|
|
|
layout_mode = 0
|
2023-02-25 15:21:18 -07:00
|
|
|
offset_left = 269.0
|
|
|
|
offset_top = 536.0
|
|
|
|
offset_right = 377.0
|
|
|
|
offset_bottom = 562.0
|
|
|
|
text = "Player Name: "
|
|
|
|
|
2023-03-05 20:39:01 -07:00
|
|
|
[node name="shortRespawn" type="CheckBox" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 594.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_top = 407.0
|
2023-03-05 20:39:01 -07:00
|
|
|
offset_right = 664.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_bottom = 438.0
|
2023-04-13 13:24:38 -06:00
|
|
|
button_pressed = true
|
2023-03-05 20:39:01 -07:00
|
|
|
text = "Short"
|
|
|
|
|
|
|
|
[node name="normalRespawn" type="CheckBox" parent="."]
|
2023-03-09 13:26:09 -07:00
|
|
|
layout_mode = 0
|
2023-03-05 20:39:01 -07:00
|
|
|
offset_left = 673.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_top = 406.0
|
2023-03-05 20:39:01 -07:00
|
|
|
offset_right = 760.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_bottom = 437.0
|
2023-03-05 20:39:01 -07:00
|
|
|
text = "Normal"
|
|
|
|
|
|
|
|
[node name="longRespawn" type="CheckBox" parent="."]
|
2023-03-09 13:26:09 -07:00
|
|
|
layout_mode = 0
|
2023-03-05 20:39:01 -07:00
|
|
|
offset_left = 763.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_top = 406.0
|
2023-03-05 20:39:01 -07:00
|
|
|
offset_right = 830.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_bottom = 437.0
|
2023-03-05 20:39:01 -07:00
|
|
|
text = "Long"
|
|
|
|
|
|
|
|
[node name="respawnLabel" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_left = 664.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_top = 372.0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_right = 776.0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_bottom = 398.0
|
2023-03-16 13:37:17 -06:00
|
|
|
text = "Respawn Time"
|
2023-03-05 20:39:01 -07:00
|
|
|
horizontal_alignment = 1
|
|
|
|
|
|
|
|
[node name="Toyland" type="Sprite2D" parent="."]
|
2023-03-16 21:46:29 -06:00
|
|
|
visible = false
|
2023-05-28 00:03:31 -06:00
|
|
|
position = Vector2(408, 287)
|
|
|
|
scale = Vector2(0.199899, 0.199899)
|
2023-03-05 20:39:01 -07:00
|
|
|
texture = ExtResource("3_rgmyq")
|
|
|
|
|
2023-03-23 10:15:36 -06:00
|
|
|
[node name="Islands" type="Sprite2D" parent="."]
|
|
|
|
visible = false
|
2023-05-28 00:03:31 -06:00
|
|
|
position = Vector2(408.5, 287.562)
|
|
|
|
scale = Vector2(0.201, 0.201)
|
2023-03-23 10:15:36 -06:00
|
|
|
texture = ExtResource("4_gvop1")
|
|
|
|
|
2023-05-11 11:09:33 -06:00
|
|
|
[node name="Forest" type="Sprite2D" parent="."]
|
|
|
|
visible = false
|
|
|
|
position = Vector2(407.875, 287.125)
|
|
|
|
scale = Vector2(0.125156, 0.125156)
|
|
|
|
texture = ExtResource("5_4jx7h")
|
|
|
|
|
|
|
|
[node name="Toyfactory" type="Sprite2D" parent="."]
|
|
|
|
visible = false
|
|
|
|
position = Vector2(408, 287)
|
|
|
|
scale = Vector2(0.10025, 0.10025)
|
|
|
|
texture = ExtResource("6_y4i2t")
|
|
|
|
|
2023-03-16 13:37:17 -06:00
|
|
|
[node name="Label2" type="Label" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 351.0
|
|
|
|
offset_top = 435.0
|
|
|
|
offset_right = 450.0
|
|
|
|
offset_bottom = 461.0
|
|
|
|
text = "Gamemode"
|
|
|
|
|
|
|
|
[node name="GamemodeDeathmatch" type="CheckBox" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 279.0
|
|
|
|
offset_top = 461.0
|
|
|
|
offset_right = 403.0
|
|
|
|
offset_bottom = 492.0
|
2023-03-28 23:04:55 -06:00
|
|
|
tooltip_text = "Player with most kills wins after the timer runs out."
|
2023-03-16 13:37:17 -06:00
|
|
|
button_pressed = true
|
|
|
|
text = "Deathmatch"
|
|
|
|
|
|
|
|
[node name="GamemodeRunner" type="CheckBox" parent="."]
|
2023-03-16 21:42:32 -06:00
|
|
|
layout_mode = 0
|
2023-03-16 13:37:17 -06:00
|
|
|
offset_left = 407.0
|
|
|
|
offset_top = 461.0
|
|
|
|
offset_right = 492.0
|
|
|
|
offset_bottom = 492.0
|
2023-03-28 23:04:55 -06:00
|
|
|
tooltip_text = "One player is selected at random as \"the runner.\" Everyone else it supposed to kill the runner."
|
2023-03-16 13:37:17 -06:00
|
|
|
text = "Runner"
|
|
|
|
|
2023-03-28 22:32:49 -06:00
|
|
|
[node name="GamemodeTTT" type="CheckBox" parent="."]
|
2023-03-29 11:58:44 -06:00
|
|
|
layout_mode = 0
|
2023-03-28 22:32:49 -06:00
|
|
|
offset_left = 279.0
|
|
|
|
offset_top = 491.0
|
|
|
|
offset_right = 403.0
|
|
|
|
offset_bottom = 522.0
|
2023-03-28 23:04:55 -06:00
|
|
|
tooltip_text = "One player is selected as traitor, the rest are innocent."
|
2023-03-28 22:32:49 -06:00
|
|
|
text = "TTT"
|
|
|
|
|
2023-03-19 15:06:11 -06:00
|
|
|
[node name="roundTimer" type="LineEdit" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 724.0
|
|
|
|
offset_top = 463.0
|
|
|
|
offset_right = 792.0
|
|
|
|
offset_bottom = 494.0
|
2023-05-05 13:26:24 -06:00
|
|
|
text = "5"
|
2023-03-19 15:06:11 -06:00
|
|
|
placeholder_text = "Duration"
|
|
|
|
|
|
|
|
[node name="timeLabel" type="Label" parent="."]
|
2023-03-19 16:37:06 -06:00
|
|
|
layout_mode = 0
|
2023-03-19 15:06:11 -06:00
|
|
|
offset_left = 627.0
|
|
|
|
offset_top = 467.0
|
|
|
|
offset_right = 725.0
|
|
|
|
offset_bottom = 493.0
|
2023-05-05 13:26:24 -06:00
|
|
|
text = "Time (mins):"
|
2023-03-19 15:06:11 -06:00
|
|
|
|
2023-05-04 11:29:32 -06:00
|
|
|
[node name="toyfactoryButton" type="Button" parent="."]
|
|
|
|
layout_mode = 0
|
|
|
|
offset_left = 646.0
|
|
|
|
offset_top = 332.0
|
|
|
|
offset_right = 797.0
|
|
|
|
offset_bottom = 367.0
|
|
|
|
text = "Toy Factory"
|
|
|
|
|
2023-02-09 13:10:25 -07:00
|
|
|
[connection signal="pressed" from="close" to="." method="_on_close_pressed"]
|
|
|
|
[connection signal="pressed" from="playground" to="." method="_on_playground_pressed"]
|
2023-03-23 10:15:36 -06:00
|
|
|
[connection signal="pressed" from="islandsButton" to="." method="_on_islands_pressed"]
|
2023-04-11 13:31:11 -06:00
|
|
|
[connection signal="pressed" from="forrestButton" to="." method="_on_forrest_button_pressed"]
|
2023-02-09 13:10:25 -07:00
|
|
|
[connection signal="pressed" from="startButton" to="." method="_on_start_button_pressed"]
|
2023-02-24 23:49:49 -07:00
|
|
|
[connection signal="pressed" from="joinButton" to="." method="_on_join_button_pressed"]
|
2023-02-25 15:21:18 -07:00
|
|
|
[connection signal="text_changed" from="playerNameBox" to="." method="_on_player_name_box_text_changed"]
|
2023-03-05 20:39:01 -07:00
|
|
|
[connection signal="button_down" from="shortRespawn" to="." method="_on_short_respawn_button_down"]
|
|
|
|
[connection signal="button_down" from="normalRespawn" to="." method="_on_normal_respawn_button_down"]
|
|
|
|
[connection signal="button_down" from="longRespawn" to="." method="_on_long_respawn_button_down"]
|
2023-03-16 13:37:17 -06:00
|
|
|
[connection signal="button_down" from="GamemodeDeathmatch" to="." method="_on_gamemode_deathmatch_button_down"]
|
|
|
|
[connection signal="button_down" from="GamemodeRunner" to="." method="_on_gamemode_runner_button_down"]
|
2023-03-28 22:32:49 -06:00
|
|
|
[connection signal="button_down" from="GamemodeTTT" to="." method="_on_gamemode_ttt_button_down"]
|
2023-03-19 15:06:11 -06:00
|
|
|
[connection signal="text_changed" from="roundTimer" to="." method="_on_round_timer_text_changed"]
|
2023-05-04 11:29:32 -06:00
|
|
|
[connection signal="pressed" from="toyfactoryButton" to="." method="_on_toyfactory_button_pressed"]
|