[gd_scene load_steps=3 format=3 uid="uid://dk6pok1gk6ick"] [ext_resource type="Script" path="res://src/main/main.gd" id="1_fqmow"] [ext_resource type="PackedScene" uid="uid://oyvhcwq60v2" path="res://src/ingame/ingame.tscn" id="2_5ajgq"] [node name="Main" type="Node" node_paths=PackedStringArray("_start_menu", "_username_input", "_ip_input", "_player_list", "_chat_menu", "_chat_input", "_chat_history_scroll", "_chat_history", "_start_button")] script = ExtResource("1_fqmow") _start_menu = NodePath("StartMenu") _username_input = NodePath("StartMenu/UsernameInput") _ip_input = NodePath("StartMenu/IPInput") _player_list = NodePath("ChatMenu/PlayersPanel/ScrollContainer/PlayerList") _chat_menu = NodePath("ChatMenu") _chat_input = NodePath("ChatMenu/ChatPanel/ChatInput") _chat_history_scroll = NodePath("ChatMenu/ChatPanel/ChatHistoryScroll") _chat_history = NodePath("ChatMenu/ChatPanel/ChatHistoryScroll/ChatHistory") _start_button = NodePath("ChatMenu/StartButton") _ingame_scene = ExtResource("2_5ajgq") [node name="IngameSpawner" type="MultiplayerSpawner" parent="."] _spawnable_scenes = PackedStringArray("res://src/ingame/ingame.tscn") spawn_path = NodePath("../IngameContainer") spawn_limit = 1 [node name="IngameContainer" type="Node" parent="."] [node name="StartMenu" type="Control" parent="."] layout_mode = 3 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="UsernameInput" type="LineEdit" parent="StartMenu"] layout_mode = 0 offset_left = -44.0 offset_top = -128.0 offset_right = 84.0 offset_bottom = -97.0 placeholder_text = "username" alignment = 1 max_length = 12 context_menu_enabled = false middle_mouse_paste_enabled = false [node name="IPInput" type="LineEdit" parent="StartMenu"] layout_mode = 0 offset_left = -180.0 offset_top = 112.0 offset_right = 220.0 offset_bottom = 143.0 placeholder_text = "127.0.0.1" alignment = 1 max_length = 39 context_menu_enabled = false middle_mouse_paste_enabled = false [node name="HostButton" type="Button" parent="StartMenu"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -64.0 offset_top = -100.0 offset_right = 64.0 offset_bottom = -36.0 grow_horizontal = 2 grow_vertical = 2 text = "host" [node name="JoinButton" type="Button" parent="StartMenu"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -64.0 offset_top = 12.0 offset_right = 64.0 offset_bottom = 76.0 grow_horizontal = 2 grow_vertical = 2 text = "join" [node name="ChatMenu" type="Control" parent="."] visible = false layout_mode = 3 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -20.0 offset_top = -20.0 offset_right = 20.0 offset_bottom = 20.0 grow_horizontal = 2 grow_vertical = 2 [node name="PlayersPanel" type="Panel" parent="ChatMenu"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -312.0 offset_top = -172.0 offset_right = -192.0 offset_bottom = 4.0 grow_horizontal = 2 grow_vertical = 2 [node name="ScrollContainer" type="ScrollContainer" parent="ChatMenu/PlayersPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 8.0 offset_top = 8.0 offset_right = -8.0 offset_bottom = -8.0 grow_horizontal = 2 grow_vertical = 2 [node name="PlayerList" type="VBoxContainer" parent="ChatMenu/PlayersPanel/ScrollContainer"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="ChatPanel" type="Panel" parent="ChatMenu"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -312.0 offset_top = 12.0 offset_right = 312.0 offset_bottom = 172.0 grow_horizontal = 2 grow_vertical = 2 [node name="ChatHistoryScroll" type="ScrollContainer" parent="ChatMenu/ChatPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 8.0 offset_top = 8.0 offset_right = -8.0 offset_bottom = -48.0 grow_horizontal = 2 grow_vertical = 2 [node name="ChatHistory" type="VBoxContainer" parent="ChatMenu/ChatPanel/ChatHistoryScroll"] layout_mode = 2 size_flags_horizontal = 3 size_flags_vertical = 3 [node name="ChatInput" type="LineEdit" parent="ChatMenu/ChatPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 8.0 offset_top = 120.0 offset_right = -72.0 offset_bottom = -9.0 grow_horizontal = 2 grow_vertical = 2 placeholder_text = "say something" max_length = 300 context_menu_enabled = false clear_button_enabled = true middle_mouse_paste_enabled = false [node name="ChatSendButton" type="Button" parent="ChatMenu/ChatPanel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 offset_left = 560.0 offset_top = 120.0 offset_right = -8.0 offset_bottom = -9.0 grow_horizontal = 2 grow_vertical = 2 text = "send" [node name="StartButton" type="Button" parent="ChatMenu"] layout_mode = 0 offset_left = -164.0 offset_top = -32.0 offset_right = -100.0 offset_bottom = 23.0 text = "Start!" [connection signal="pressed" from="StartMenu/HostButton" to="." method="_on_host_button_pressed"] [connection signal="pressed" from="StartMenu/JoinButton" to="." method="_on_join_button_pressed"] [connection signal="text_submitted" from="ChatMenu/ChatPanel/ChatInput" to="." method="_on_chat_message_submitted"] [connection signal="pressed" from="ChatMenu/ChatPanel/ChatSendButton" to="." method="_on_chat_message_submitted"] [connection signal="pressed" from="ChatMenu/StartButton" to="." method="_on_start_button_pressed"]