[gd_scene load_steps=15 format=2] [ext_resource path="res://scripts/MainMenu.gd" type="Script" id=1] [ext_resource path="res://resources/fonts/Cochineal-Bold.otf" type="DynamicFontData" id=2] [ext_resource path="res://resources/fonts/Cochineal-Roman.otf" type="DynamicFontData" id=3] [ext_resource path="res://resources/MenuOptions.theme" type="Theme" id=4] [sub_resource type="DynamicFont" id=29] size = 72 font_data = ExtResource( 2 ) [sub_resource type="DynamicFont" id=1] size = 72 font_data = ExtResource( 2 ) [sub_resource type="Theme" id=2] default_font = SubResource( 1 ) Button/fonts/font = SubResource( 29 ) [sub_resource type="DynamicFont" id=30] size = 45 font_data = ExtResource( 2 ) [sub_resource type="Theme" id=31] default_font = SubResource( 1 ) Button/fonts/font = SubResource( 30 ) [sub_resource type="Gradient" id=23] offsets = PoolRealArray( 0 ) colors = PoolColorArray( 0, 0, 0, 1 ) [sub_resource type="GradientTexture2D" id=21] gradient = SubResource( 23 ) width = 32 height = 32 [sub_resource type="GDScript" id=24] resource_name = "set_colors_builtin" script/source = "extends OptionButton func _ready(): for i in range(get_item_count()): set_item_icon(i, get_item_icon(i).duplicate()) var icon = get_item_icon(i) icon.gradient = icon.gradient.duplicate() icon.gradient.set_color(0, Globals.colors[i]) icon.gradient.colors.remove(0) " [sub_resource type="DynamicFont" id=27] size = 95 font_data = ExtResource( 3 ) [sub_resource type="Theme" id=28] default_font = SubResource( 27 ) [node name="MainMenu" type="Control"] anchor_right = 1.0 anchor_bottom = 1.0 rect_pivot_offset = Vector2( 560, -158 ) script = ExtResource( 1 ) [node name="HostMenuButton" type="Button" parent="."] anchor_left = 0.1 anchor_top = 0.25 anchor_right = 0.25 anchor_bottom = 0.35 theme = SubResource( 2 ) text = "HOST" [node name="JoinMenuButton" type="Button" parent="."] anchor_left = 0.1 anchor_top = 0.4 anchor_right = 0.25 anchor_bottom = 0.5 theme = SubResource( 2 ) text = "JOIN" [node name="SettingsButton" type="Button" parent="."] anchor_left = 0.1 anchor_top = 0.55 anchor_right = 0.35 anchor_bottom = 0.65 theme = SubResource( 2 ) text = "SETTINGS" [node name="BackButton" type="Button" parent="."] visible = false anchor_left = 0.1 anchor_top = 0.88 anchor_right = 0.212 anchor_bottom = 0.963 theme = SubResource( 31 ) text = "BACK" [node name="PlayerInfo" type="GridContainer" parent="."] visible = false anchor_left = 0.1 anchor_top = 0.257 anchor_right = 0.358 anchor_bottom = 0.9 columns = 2 [node name="UsernameLabel" type="Label" parent="PlayerInfo"] margin_top = 5.0 margin_right = 138.0 margin_bottom = 38.0 theme = ExtResource( 4 ) text = "Username:" align = 2 [node name="Username" type="LineEdit" parent="PlayerInfo"] margin_left = 142.0 margin_right = 342.0 margin_bottom = 43.0 rect_min_size = Vector2( 200, 0 ) theme = ExtResource( 4 ) text = "Player" max_length = 32 [node name="ColorLabel" type="Label" parent="PlayerInfo"] margin_top = 50.0 margin_right = 138.0 margin_bottom = 83.0 theme = ExtResource( 4 ) text = "Color:" align = 2 [node name="PlayerColor" type="OptionButton" parent="PlayerInfo"] margin_left = 142.0 margin_top = 47.0 margin_right = 202.0 margin_bottom = 87.0 rect_min_size = Vector2( 60, 40 ) size_flags_horizontal = 0 icon = SubResource( 21 ) expand_icon = true items = [ "", SubResource( 21 ), false, 0, null, "", SubResource( 21 ), false, 1, null, "", SubResource( 21 ), false, 2, null, "", SubResource( 21 ), false, 3, null, "", SubResource( 21 ), false, 4, null, "", SubResource( 21 ), false, 5, null, "", SubResource( 21 ), false, 6, null, "", SubResource( 21 ), false, 7, null, "", SubResource( 21 ), false, 8, null, "", SubResource( 21 ), false, 9, null ] selected = 0 script = SubResource( 24 ) [node name="AltColorLabel" type="Label" parent="PlayerInfo"] margin_top = 94.0 margin_right = 138.0 margin_bottom = 127.0 theme = ExtResource( 4 ) text = "Alt color:" align = 2 [node name="AltPlayerColor" type="OptionButton" parent="PlayerInfo"] margin_left = 142.0 margin_top = 91.0 margin_right = 202.0 margin_bottom = 131.0 rect_min_size = Vector2( 60, 40 ) size_flags_horizontal = 0 icon = SubResource( 21 ) expand_icon = true items = [ "", SubResource( 21 ), false, 0, null, "", SubResource( 21 ), false, 1, null, "", SubResource( 21 ), false, 2, null, "", SubResource( 21 ), false, 3, null, "", SubResource( 21 ), false, 4, null, "", SubResource( 21 ), false, 5, null, "", SubResource( 21 ), false, 6, null, "", SubResource( 21 ), false, 7, null, "", SubResource( 21 ), false, 8, null, "", SubResource( 21 ), false, 9, null ] selected = 1 script = SubResource( 24 ) [node name="Title" type="Label" parent="."] anchor_left = 0.075 anchor_top = 0.067 anchor_right = 0.75 anchor_bottom = 0.069 margin_right = 40.0 margin_bottom = 14.0 theme = SubResource( 28 ) text = "ATC: AIR TRAFFIC CHAOS" [node name="HostMenu" type="Control" parent="."] visible = false anchor_left = 0.1 anchor_top = 0.45 anchor_right = 1.0 anchor_bottom = 0.8 margin_right = 40.0 margin_bottom = 40.0 [node name="GameName" type="LineEdit" parent="HostMenu"] anchor_right = 0.229 theme = ExtResource( 4 ) text = "Player's Game" max_length = 39 [node name="HostButton" type="Button" parent="HostMenu"] anchor_top = 0.597 anchor_right = 0.229 anchor_bottom = 0.698 theme = SubResource( 2 ) text = "Host" [node name="PlayerCountLabel" type="Label" parent="HostMenu"] anchor_top = 0.17 anchor_bottom = 0.17 theme = ExtResource( 4 ) text = "Players:" [node name="PlayerCount" type="OptionButton" parent="HostMenu"] anchor_left = 0.083 anchor_top = 0.165 anchor_right = 0.229 anchor_bottom = 0.196 theme = ExtResource( 4 ) text = "2" items = [ "2", null, false, 2, null, "3", null, false, 3, null, "4", null, false, 4, null, "5", null, false, 5, null, "6", null, false, 6, null ] selected = 0 [node name="PrivateToggle" type="CheckButton" parent="HostMenu"] anchor_top = 0.3 anchor_bottom = 0.3 size_flags_horizontal = 0 size_flags_vertical = 0 theme = ExtResource( 4 ) text = "Password Protected" [node name="Password" type="LineEdit" parent="HostMenu"] visible = false anchor_top = 0.428 anchor_right = 0.23 anchor_bottom = 0.465 theme = ExtResource( 4 ) max_length = 16 placeholder_text = "Password" placeholder_alpha = 0.587 [node name="JoinMenu" type="Control" parent="."] visible = false anchor_left = 0.1 anchor_top = 0.45 anchor_right = 1.0 anchor_bottom = 0.8 margin_right = 40.0 margin_bottom = 40.0 [node name="LobbyID" type="LineEdit" parent="JoinMenu"] anchor_right = 0.229 theme = ExtResource( 4 ) max_length = 39 placeholder_text = "Lobby ID" placeholder_alpha = 0.389 [node name="Password" type="LineEdit" parent="JoinMenu"] anchor_top = 0.165 anchor_right = 0.229 anchor_bottom = 0.165 theme = ExtResource( 4 ) max_length = 39 placeholder_text = "Password (if private)" placeholder_alpha = 0.389 [node name="JoinButton" type="Button" parent="JoinMenu"] anchor_top = 0.321 anchor_right = 0.229 anchor_bottom = 0.465 theme = SubResource( 2 ) text = "JOIN " [node name="SettingsMenu" type="GridContainer" parent="."] visible = false anchor_left = 0.1 anchor_top = 0.267 anchor_right = 1.0 anchor_bottom = 0.8 margin_right = 40.0 margin_bottom = 40.0 columns = 2 [node name="GCURLLabel" type="Label" parent="SettingsMenu"] margin_top = 5.0 margin_right = 322.0 margin_bottom = 38.0 theme = ExtResource( 4 ) text = "Game Coordinator URL: " align = 2 [node name="GameCoordinatorURL" type="LineEdit" parent="SettingsMenu"] margin_left = 326.0 margin_right = 676.0 margin_bottom = 43.0 rect_min_size = Vector2( 350, 0 ) theme = ExtResource( 4 ) max_length = 39 placeholder_text = "Game Coordinator URL" placeholder_alpha = 0.389 [node name="NotifPopup" type="PopupPanel" parent="."] anchor_left = 0.4 anchor_top = 0.35 anchor_right = 0.6 anchor_bottom = 0.65 margin_right = 8.0 margin_bottom = 8.0 popup_exclusive = true [node name="PopupControl" type="Control" parent="NotifPopup"] anchor_right = 1.0 anchor_bottom = 1.0 margin_left = 4.0 margin_top = 4.0 margin_right = -4.0 margin_bottom = -4.0 [node name="TitleLabel" type="Label" parent="NotifPopup/PopupControl"] anchor_left = 0.1 anchor_right = 0.9 anchor_bottom = 0.15 theme = ExtResource( 4 ) [node name="MessageLabel" type="Label" parent="NotifPopup/PopupControl"] anchor_left = 0.05 anchor_top = 0.25 anchor_right = 0.95 anchor_bottom = 0.75 [node name="ClosePopupButton" type="Button" parent="NotifPopup/PopupControl"] anchor_left = 0.3 anchor_top = 0.8 anchor_right = 0.3 anchor_bottom = 0.8 rect_min_size = Vector2( 120, 50 ) theme = ExtResource( 4 ) text = "Close" [connection signal="pressed" from="NotifPopup/PopupControl/ClosePopupButton" to="NotifPopup" method="set_visible" binds= [ false ]]