✨ Block placing
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bvll23f5ibd4v"]
|
||||
|
||||
[ext_resource type="Script" path="res://Scripts/UI/MultiplayerUi.cs" id="1_fm6j5"]
|
||||
[ext_resource type="Script" path="res://Scripts/UI/StartScreen.cs" id="1_f8by8"]
|
||||
|
||||
[node name="MultiplayerUi" type="Control" node_paths=PackedStringArray("ServerPortInput", "ServerAddrInput", "StartAsServerButton", "StartAsClientButton")]
|
||||
[node name="StartScreen" type="Control" node_paths=PackedStringArray("ServerPortInput", "ServerAddrInput", "StartAsSingleButton", "StartAsServerButton", "StartAsClientButton")]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
@ -10,11 +10,12 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_fm6j5")
|
||||
script = ExtResource("1_f8by8")
|
||||
ServerPortInput = NodePath("CenterContainer/VBoxContainer/PortEdit")
|
||||
ServerAddrInput = NodePath("CenterContainer/VBoxContainer/AddrEdit")
|
||||
StartAsServerButton = NodePath("CenterContainer/VBoxContainer/HBoxContainer/HostButton")
|
||||
StartAsClientButton = NodePath("CenterContainer/VBoxContainer/HBoxContainer/ConnectButton")
|
||||
StartAsSingleButton = NodePath("CenterContainer/VBoxContainer/PlayAloneButton")
|
||||
StartAsServerButton = NodePath("CenterContainer/VBoxContainer/MultiplayerActions/HostButton")
|
||||
StartAsClientButton = NodePath("CenterContainer/VBoxContainer/MultiplayerActions/ConnectButton")
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" parent="."]
|
||||
layout_mode = 0
|
||||
@ -24,7 +25,16 @@ offset_bottom = 648.0
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
[node name="SinglePlayerTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Singleplayer"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="PlayAloneButton" type="Button" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Play Alone"
|
||||
|
||||
[node name="MultiplayerTitle" type="Label" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Mutiplayer"
|
||||
horizontal_alignment = 1
|
||||
@ -37,13 +47,13 @@ placeholder_text = "Server port"
|
||||
layout_mode = 2
|
||||
placeholder_text = "Server address"
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
||||
[node name="MultiplayerActions" type="HBoxContainer" parent="CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HostButton" type="Button" parent="CenterContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="HostButton" type="Button" parent="CenterContainer/VBoxContainer/MultiplayerActions"]
|
||||
layout_mode = 2
|
||||
text = "Host a Game"
|
||||
|
||||
[node name="ConnectButton" type="Button" parent="CenterContainer/VBoxContainer/HBoxContainer"]
|
||||
[node name="ConnectButton" type="Button" parent="CenterContainer/VBoxContainer/MultiplayerActions"]
|
||||
layout_mode = 2
|
||||
text = "Connect a Game"
|
Reference in New Issue
Block a user