[gd_scene load_steps=10 format=3 uid="uid://bdwk0dqcx0xhp"] [ext_resource type="Script" path="res://scripts/menu/BaseMenu.gd" id="1_0wv8j"] [ext_resource type="Texture2D" uid="uid://db4euprxhape0" path="res://sprites/9s.png" id="1_vb0tn"] [ext_resource type="Script" path="res://scripts/menu/CloseMenuButton.gd" id="2_ld3o5"] [ext_resource type="Script" path="res://scripts/menu/OpenMenuButton.gd" id="3_63o1s"] [ext_resource type="Texture2D" uid="uid://daojdy0tpvsoh" path="res://sprites/items_icons/energy.png" id="5_a74tb"] [ext_resource type="Texture2D" uid="uid://w3aft10s2hxd" path="res://sprites/items_icons/food.png" id="6_36d3e"] [ext_resource type="Texture2D" uid="uid://dlh6eyywjrsk4" path="res://sprites/items_icons/raw_materials.png" id="7_41v33"] [ext_resource type="Texture2D" uid="uid://cova10yh1rlk1" path="res://sprites/items_icons/water.png" id="8_815di"] [sub_resource type="GDScript" id="GDScript_ovke4"] script/source = "extends Button func _on_button_up(): get_parent().visible = false " [node name="BaseMenu" type="Control"] process_mode = 1 layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 script = ExtResource("1_0wv8j") [node name="MainMenu" type="NinePatchRect" parent="."] layout_mode = 0 offset_left = 320.0 offset_top = 40.0 offset_right = 960.0 offset_bottom = 680.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="MainMenu"] layout_mode = 0 offset_right = 640.0 offset_bottom = 64.0 text = "{BaseType} Station" horizontal_alignment = 1 vertical_alignment = 1 [node name="TradingMenuGoto" type="Button" parent="MainMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 160.0 offset_right = 639.0 offset_bottom = 224.0 text = "Trading" script = ExtResource("3_63o1s") [node name="QuestMenuGoto" type="Button" parent="MainMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 288.0 offset_right = 639.0 offset_bottom = 352.0 text = "Quests" script = ExtResource("3_63o1s") [node name="EquipmentMenuGoto" type="Button" parent="MainMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 416.0 offset_right = 639.0 offset_bottom = 480.0 text = "Equipment" script = ExtResource("3_63o1s") [node name="MainCloseButton" type="Button" parent="MainMenu"] layout_mode = 0 offset_left = 600.0 offset_top = 1.0 offset_right = 639.0 offset_bottom = 40.0 text = "X" script = SubResource("GDScript_ovke4") [node name="TradingMenu" type="NinePatchRect" parent="."] layout_mode = 0 offset_left = 320.0 offset_top = 40.0 offset_right = 960.0 offset_bottom = 680.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="TradingMenu"] layout_mode = 0 offset_right = 640.0 offset_bottom = 64.0 text = "Trading Menu" horizontal_alignment = 1 vertical_alignment = 1 [node name="CloseButton" type="Button" parent="TradingMenu"] layout_mode = 0 offset_left = 600.0 offset_top = 1.0 offset_right = 639.0 offset_bottom = 40.0 text = "X" script = ExtResource("2_ld3o5") [node name="SellList" type="ItemList" parent="TradingMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 96.0 offset_right = 320.0 offset_bottom = 512.0 [node name="BuyList" type="ItemList" parent="TradingMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 96.0 offset_right = 639.0 offset_bottom = 512.0 [node name="SellInput" type="LineEdit" parent="TradingMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 512.0 offset_right = 160.0 offset_bottom = 576.0 placeholder_text = "Amount to buy" alignment = 1 [node name="BuyInput" type="LineEdit" parent="TradingMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 512.0 offset_right = 480.0 offset_bottom = 576.0 placeholder_text = "Amount to sell" alignment = 1 [node name="BuyButton" type="Button" parent="TradingMenu"] layout_mode = 0 offset_left = 160.0 offset_top = 512.0 offset_right = 320.0 offset_bottom = 576.0 text = "Buy" [node name="SellButton" type="Button" parent="TradingMenu"] layout_mode = 0 offset_left = 480.0 offset_top = 512.0 offset_right = 639.0 offset_bottom = 576.0 text = "Sell" [node name="LabelBuy" type="Label" parent="TradingMenu"] layout_mode = 0 offset_top = 64.0 offset_right = 320.0 offset_bottom = 96.0 text = "Buy" horizontal_alignment = 1 vertical_alignment = 1 [node name="LabelSell" type="Label" parent="TradingMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 64.0 offset_right = 640.0 offset_bottom = 96.0 text = "Sell" horizontal_alignment = 1 vertical_alignment = 1 [node name="Energy" type="Sprite2D" parent="TradingMenu"] position = Vector2(17, 608) texture = ExtResource("5_a74tb") [node name="Food" type="Sprite2D" parent="TradingMenu"] position = Vector2(177, 608) texture = ExtResource("6_36d3e") [node name="RawMaterials" type="Sprite2D" parent="TradingMenu"] position = Vector2(337, 608) texture = ExtResource("7_41v33") [node name="Water" type="Sprite2D" parent="TradingMenu"] position = Vector2(497, 608) texture = ExtResource("8_815di") [node name="EnergyCount" type="Label" parent="TradingMenu"] layout_mode = 0 offset_left = 41.0 offset_top = 592.0 offset_right = 161.0 offset_bottom = 624.0 text = "0" vertical_alignment = 1 [node name="FoodCount" type="Label" parent="TradingMenu"] layout_mode = 0 offset_left = 201.0 offset_top = 592.0 offset_right = 321.0 offset_bottom = 624.0 text = "0" vertical_alignment = 1 [node name="MineralsCount" type="Label" parent="TradingMenu"] layout_mode = 0 offset_left = 361.0 offset_top = 592.0 offset_right = 481.0 offset_bottom = 624.0 text = "0" vertical_alignment = 1 [node name="WaterCount" type="Label" parent="TradingMenu"] layout_mode = 0 offset_left = 521.0 offset_top = 592.0 offset_right = 640.0 offset_bottom = 624.0 text = "0" vertical_alignment = 1 [node name="QuestMenu" type="NinePatchRect" parent="."] visible = false layout_mode = 0 offset_left = 320.0 offset_top = 40.0 offset_right = 960.0 offset_bottom = 680.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="QuestMenu"] layout_mode = 0 offset_right = 640.0 offset_bottom = 64.0 text = "Quest Menu" horizontal_alignment = 1 vertical_alignment = 1 [node name="CloseButton" type="Button" parent="QuestMenu"] layout_mode = 0 offset_left = 600.0 offset_top = 1.0 offset_right = 639.0 offset_bottom = 40.0 text = "X" script = ExtResource("2_ld3o5") [node name="CurrentQuest" type="NinePatchRect" parent="QuestMenu"] visible = false layout_mode = 0 offset_left = 64.0 offset_top = 64.0 offset_right = 576.0 offset_bottom = 576.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="QuestMenu/CurrentQuest"] layout_mode = 0 offset_right = 512.0 offset_bottom = 64.0 text = "Current Quest Status" horizontal_alignment = 1 vertical_alignment = 1 [node name="QuestStatus" type="Label" parent="QuestMenu/CurrentQuest"] layout_mode = 0 offset_left = 16.0 offset_top = 64.0 offset_right = 496.0 offset_bottom = 448.0 text = "Type: Elimination Objective: Destroy 1 hostile ship [ 0 / 1 ] Reward: 100 money units Restrictions: - No deaths - Timer: 60 seconds" vertical_alignment = 1 [node name="AbandonQuest" type="Button" parent="QuestMenu/CurrentQuest"] layout_mode = 0 offset_left = 1.0 offset_top = 448.0 offset_right = 256.0 offset_bottom = 511.0 text = "Abandon quest" [node name="CompleteQuest" type="Button" parent="QuestMenu/CurrentQuest"] layout_mode = 0 offset_left = 256.0 offset_top = 448.0 offset_right = 511.0 offset_bottom = 511.0 disabled = true text = "Complete quest" [node name="NewQuest" type="NinePatchRect" parent="QuestMenu"] visible = false layout_mode = 0 offset_left = 64.0 offset_top = 64.0 offset_right = 576.0 offset_bottom = 576.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="QuestMenu/NewQuest"] layout_mode = 0 offset_right = 512.0 offset_bottom = 64.0 text = "New Quest" horizontal_alignment = 1 vertical_alignment = 1 [node name="QuestStatus" type="Label" parent="QuestMenu/NewQuest"] layout_mode = 0 offset_left = 16.0 offset_top = 64.0 offset_right = 496.0 offset_bottom = 448.0 text = "Type: Elimination Objective: Destroy 1 hostile ship Reward: 100 money units Restrictions: - No deaths - Timer: 60 seconds" vertical_alignment = 1 [node name="AcceptQuest" type="Button" parent="QuestMenu/NewQuest"] layout_mode = 0 offset_left = 1.0 offset_top = 448.0 offset_right = 511.0 offset_bottom = 511.0 text = "Accept quest" [node name="EquipmentMenu" type="NinePatchRect" parent="."] visible = false layout_mode = 0 offset_left = 320.0 offset_top = 40.0 offset_right = 960.0 offset_bottom = 680.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_right = 640.0 offset_bottom = 64.0 text = "Equipment Menu" horizontal_alignment = 1 vertical_alignment = 1 [node name="CloseButton" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 600.0 offset_top = 1.0 offset_right = 639.0 offset_bottom = 40.0 text = "X" script = ExtResource("2_ld3o5") [node name="AvailableItems" type="ItemList" parent="EquipmentMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 128.0 offset_right = 320.0 offset_bottom = 368.0 [node name="BuyableItems" type="ItemList" parent="EquipmentMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 400.0 offset_right = 320.0 offset_bottom = 639.0 [node name="LabelAvailable" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_top = 96.0 offset_right = 320.0 offset_bottom = 128.0 text = "Available modules" horizontal_alignment = 1 vertical_alignment = 1 [node name="LabelBuyable" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_top = 368.0 offset_right = 320.0 offset_bottom = 400.0 text = "Buyable modules" horizontal_alignment = 1 vertical_alignment = 1 [node name="LabelSelectedItemInfo" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 96.0 offset_right = 640.0 offset_bottom = 128.0 text = "Selected module info:" horizontal_alignment = 1 vertical_alignment = 1 [node name="HullSelect" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 1.0 offset_top = 64.0 offset_right = 160.0 offset_bottom = 96.0 disabled = true text = "Hull" [node name="EngineSelect" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 160.0 offset_top = 64.0 offset_right = 320.0 offset_bottom = 96.0 text = "Engine" [node name="ShieldSelect" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 64.0 offset_right = 480.0 offset_bottom = 96.0 text = "Shield" [node name="WeaponSelect" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 480.0 offset_top = 64.0 offset_right = 639.0 offset_bottom = 96.0 text = "Weapon" [node name="LabelInfoBlock" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 128.0 offset_right = 640.0 offset_bottom = 368.0 text = "Select a module to receive info about it." horizontal_alignment = 1 vertical_alignment = 1 autowrap_mode = 1 [node name="LabelSelectedItemInfo2" type="Label" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 368.0 offset_right = 640.0 offset_bottom = 400.0 text = "Selected module actions:" horizontal_alignment = 1 vertical_alignment = 1 [node name="BuySellButton" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 400.0 offset_right = 639.0 offset_bottom = 464.0 disabled = true text = "Buy / Sell selected" [node name="EquipButton" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 464.0 offset_right = 639.0 offset_bottom = 528.0 disabled = true text = "Equip selected" [node name="EquipPrimaryButton" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 528.0 offset_right = 639.0 offset_bottom = 584.0 disabled = true text = "Equip selected as primary weapon" [node name="EquipSecondaryButton" type="Button" parent="EquipmentMenu"] layout_mode = 0 offset_left = 320.0 offset_top = 584.0 offset_right = 639.0 offset_bottom = 639.0 disabled = true text = "Equip selected as secondary weapon" [node name="InfoMenu" type="NinePatchRect" parent="."] visible = false layout_mode = 0 offset_left = 320.0 offset_top = 40.0 offset_right = 960.0 offset_bottom = 680.0 texture = ExtResource("1_vb0tn") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 [node name="Header" type="Label" parent="InfoMenu"] layout_mode = 0 offset_right = 640.0 offset_bottom = 64.0 text = "Information Menu" horizontal_alignment = 1 vertical_alignment = 1 [node name="CloseButton" type="Button" parent="InfoMenu"] layout_mode = 0 offset_left = 600.0 offset_top = 1.0 offset_right = 639.0 offset_bottom = 40.0 text = "X" script = ExtResource("2_ld3o5") [node name="Label" type="Label" parent="InfoMenu"] layout_mode = 0 offset_top = 64.0 offset_right = 640.0 offset_bottom = 640.0 text = "Actually, this section is WIP. Part of the factions system." horizontal_alignment = 1 vertical_alignment = 1 [connection signal="button_up" from="MainMenu/MainCloseButton" to="MainMenu/MainCloseButton" method="_on_button_up"]