summaryrefslogtreecommitdiff
path: root/ui/servermenu/ServerUI.tscn
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-09-02 23:12:33 -0700
commit4d51178d32e07c070c61aa7567856bec7eda3639 (patch)
tree7ef4884dd2221340f9c1ed96bd0f52c761ae9fb0 /ui/servermenu/ServerUI.tscn
parent0939d84e611f1c63fd5805339a2f777251fb1653 (diff)
hit/killsounds, swimming, main menu, fixed explosion physics
Diffstat (limited to 'ui/servermenu/ServerUI.tscn')
-rw-r--r--ui/servermenu/ServerUI.tscn108
1 files changed, 108 insertions, 0 deletions
diff --git a/ui/servermenu/ServerUI.tscn b/ui/servermenu/ServerUI.tscn
new file mode 100644
index 0000000..f7ed009
--- /dev/null
+++ b/ui/servermenu/ServerUI.tscn
@@ -0,0 +1,108 @@
+[gd_scene load_steps=5 format=2]
+
+[ext_resource path="res://ui/servermenu/CmdPrompt.gd" type="Script" id=1]
+[ext_resource path="res://ui/servermenu/Console.gd" type="Script" id=2]
+[ext_resource path="res://ui/servermenu/ServerUI.gd" type="Script" id=4]
+
+[sub_resource type="StyleBoxFlat" id=1]
+bg_color = Color( 0.0705882, 0.0705882, 0.0705882, 1 )
+
+[node name="ServerUI" type="Node2D"]
+script = ExtResource( 4 )
+
+[node name="StartButton" type="Button" parent="." groups=["init_fields"]]
+margin_left = 24.0
+margin_top = 56.0
+margin_right = 109.0
+margin_bottom = 76.0
+text = "Start Server"
+
+[node name="BackButton" type="Button" parent="." groups=["init_fields"]]
+margin_left = 24.0
+margin_top = 24.0
+margin_right = 112.0
+margin_bottom = 44.0
+text = "Back"
+
+[node name="StopButton" type="Button" parent="."]
+visible = false
+margin_left = 24.0
+margin_top = 88.0
+margin_right = 108.0
+margin_bottom = 108.0
+text = "Stop Server"
+
+[node name="MapPath" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 120.0
+margin_top = 24.0
+margin_right = 337.0
+margin_bottom = 48.0
+text = "res://maps/Main.tscn"
+
+[node name="Console" type="ScrollContainer" parent="."]
+margin_left = 588.0
+margin_top = 19.0
+margin_right = 1004.0
+margin_bottom = 383.0
+custom_styles/bg = SubResource( 1 )
+scroll_horizontal_enabled = false
+script = ExtResource( 2 )
+
+[node name="ConsoleLines" type="VBoxContainer" parent="Console"]
+margin_right = 406.0
+margin_bottom = 14.0
+
+[node name="Label" type="Label" parent="Console/ConsoleLines"]
+margin_right = 406.0
+margin_bottom = 14.0
+text = "----------------------------------CONSOLE-----------------------------------"
+
+[node name="CmdPrompt" type="LineEdit" parent="."]
+margin_left = 588.0
+margin_top = 402.0
+margin_right = 1004.0
+margin_bottom = 426.0
+script = ExtResource( 1 )
+console_path = NodePath("../Console")
+
+[node name="PlayerCount" type="SpinBox" parent="." groups=["init_fields"]]
+margin_left = 344.0
+margin_top = 24.0
+margin_right = 418.0
+margin_bottom = 48.0
+min_value = 1.0
+value = 4.0
+
+[node name="Port" type="SpinBox" parent="." groups=["init_fields"]]
+margin_left = 264.0
+margin_top = 56.0
+margin_right = 338.0
+margin_bottom = 80.0
+max_value = 65536.0
+value = 25565.0
+
+[node name="IP" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 120.0
+margin_top = 56.0
+margin_right = 250.0
+margin_bottom = 80.0
+text = "127.0.0.1"
+
+[node name="MOTD" type="TextEdit" parent="." groups=["init_fields"]]
+margin_left = 120.0
+margin_top = 120.0
+margin_right = 337.0
+margin_bottom = 160.0
+text = "MOTD"
+
+[node name="ServerName" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 120.0
+margin_top = 88.0
+margin_right = 337.0
+margin_bottom = 112.0
+text = "Server Name"
+
+[connection signal="pressed" from="StartButton" to="." method="start_server"]
+[connection signal="pressed" from="BackButton" to="." method="back_to_main"]
+[connection signal="pressed" from="StopButton" to="." method="stop_server"]
+[connection signal="text_entered" from="CmdPrompt" to="CmdPrompt" method="enter_cmd"]