summaryrefslogtreecommitdiff
path: root/scenes/ServerUI.tscn
diff options
context:
space:
mode:
authorAnson Bridges <bridges.anson@gmail.com>2022-08-31 00:26:34 -0700
committerAnson Bridges <bridges.anson@gmail.com>2022-08-31 00:26:34 -0700
commitd3998186c9795f2a85148cd5bcfa1bd5b6226cfb (patch)
treeba5cae524562818ee38da48dd09b0b42a733e1d8 /scenes/ServerUI.tscn
Initialize repo
Diffstat (limited to 'scenes/ServerUI.tscn')
-rw-r--r--scenes/ServerUI.tscn100
1 files changed, 100 insertions, 0 deletions
diff --git a/scenes/ServerUI.tscn b/scenes/ServerUI.tscn
new file mode 100644
index 0000000..8081c81
--- /dev/null
+++ b/scenes/ServerUI.tscn
@@ -0,0 +1,100 @@
+[gd_scene load_steps=5 format=2]
+
+[ext_resource path="res://scripts/CmdPrompt.gd" type="Script" id=1]
+[ext_resource path="res://scripts/Console.gd" type="Script" id=2]
+[ext_resource path="res://scripts/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 = 18.0
+margin_top = 19.0
+margin_right = 103.0
+margin_bottom = 39.0
+text = "Start Server"
+
+[node name="StopButton" type="Button" parent="."]
+visible = false
+margin_left = 18.0
+margin_top = 55.0
+margin_right = 102.0
+margin_bottom = 75.0
+text = "Stop Server"
+
+[node name="MapPath" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 117.0
+margin_top = 19.0
+margin_right = 334.0
+margin_bottom = 43.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 = 347.0
+margin_top = 19.0
+margin_right = 421.0
+margin_bottom = 43.0
+min_value = 1.0
+value = 4.0
+
+[node name="Port" type="SpinBox" parent="." groups=["init_fields"]]
+margin_left = 260.0
+margin_top = 55.0
+margin_right = 334.0
+margin_bottom = 79.0
+max_value = 65536.0
+value = 25565.0
+
+[node name="IP" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 117.0
+margin_top = 55.0
+margin_right = 247.0
+margin_bottom = 79.0
+text = "127.0.0.1"
+
+[node name="MOTD" type="TextEdit" parent="." groups=["init_fields"]]
+margin_left = 117.0
+margin_top = 129.0
+margin_right = 334.0
+margin_bottom = 169.0
+text = "MOTD"
+
+[node name="ServerName" type="LineEdit" parent="." groups=["init_fields"]]
+margin_left = 117.0
+margin_top = 92.0
+margin_right = 334.0
+margin_bottom = 116.0
+text = "Server Name"
+
+[connection signal="pressed" from="StartButton" to="." method="start_server"]
+[connection signal="pressed" from="StopButton" to="." method="stop_server"]
+[connection signal="text_entered" from="CmdPrompt" to="CmdPrompt" method="enter_cmd"]