[gd_scene load_steps=2 format=3 uid="uid://c41wi0dxo2eip"] [ext_resource type="Script" path="res://MainMenu.gd" id="1_snhhs"] [node name="Main" type="Node3D"] [node name="Map" type="Node3D" parent="."] [node name="UI" type="CanvasLayer" parent="." node_paths=PackedStringArray("player_name", "map_root", "host_button", "join_button", "address_input", "playerList", "start_button")] script = ExtResource("1_snhhs") player_name = NodePath("MainMenu/TabContainer/Settings/name/NameLineEdit") map_root = NodePath("../Map") host_button = NodePath("MainMenu/TabContainer/Host/HostButton") join_button = NodePath("MainMenu/TabContainer/Join/Button") address_input = NodePath("MainMenu/TabContainer/Join/Server/LineEdit") playerList = NodePath("Lobby/MarginContainer/VBoxContainer/PlayerItemList") start_button = NodePath("Lobby/MarginContainer/VBoxContainer/StartButton") [node name="MainMenu" type="PanelContainer" parent="UI"] anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -139.5 offset_top = -60.5 offset_right = 139.5 offset_bottom = 60.5 grow_horizontal = 2 grow_vertical = 2 [node name="TabContainer" type="TabContainer" parent="UI/MainMenu"] layout_mode = 2 [node name="Host" type="CenterContainer" parent="UI/MainMenu/TabContainer"] layout_mode = 2 [node name="HostButton" type="Button" parent="UI/MainMenu/TabContainer/Host"] layout_mode = 2 text = "Start Game" [node name="Join" type="VBoxContainer" parent="UI/MainMenu/TabContainer"] visible = false layout_mode = 2 [node name="Server" type="HBoxContainer" parent="UI/MainMenu/TabContainer/Join"] layout_mode = 2 [node name="ServerLabel" type="Label" parent="UI/MainMenu/TabContainer/Join/Server"] layout_mode = 2 text = "Server:" [node name="LineEdit" type="LineEdit" parent="UI/MainMenu/TabContainer/Join/Server"] layout_mode = 2 size_flags_horizontal = 3 text = "127.0.0.1" [node name="Button" type="Button" parent="UI/MainMenu/TabContainer/Join"] layout_mode = 2 text = "Connect" [node name="Settings" type="VBoxContainer" parent="UI/MainMenu/TabContainer"] visible = false layout_mode = 2 [node name="name" type="HBoxContainer" parent="UI/MainMenu/TabContainer/Settings"] layout_mode = 2 [node name="NameLabel" type="Label" parent="UI/MainMenu/TabContainer/Settings/name"] layout_mode = 2 text = "Player Name:" [node name="NameLineEdit" type="LineEdit" parent="UI/MainMenu/TabContainer/Settings/name"] layout_mode = 2 size_flags_horizontal = 3 text = "Player" [node name="Lobby" type="PanelContainer" parent="UI"] visible = false anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -137.5 offset_top = -230.5 offset_right = 137.5 offset_bottom = 230.5 grow_horizontal = 2 grow_vertical = 2 [node name="MarginContainer" type="MarginContainer" parent="UI/Lobby"] layout_mode = 2 theme_override_constants/margin_left = 10 theme_override_constants/margin_top = 10 theme_override_constants/margin_right = 10 theme_override_constants/margin_bottom = 10 [node name="VBoxContainer" type="VBoxContainer" parent="UI/Lobby/MarginContainer"] layout_mode = 2 [node name="PlayersLabel" type="Label" parent="UI/Lobby/MarginContainer/VBoxContainer"] layout_mode = 2 text = "Players: " [node name="PlayerItemList" type="ItemList" parent="UI/Lobby/MarginContainer/VBoxContainer"] layout_mode = 2 size_flags_vertical = 3 [node name="StartButton" type="Button" parent="UI/Lobby/MarginContainer/VBoxContainer"] layout_mode = 2 text = "Start!"