cosmic/scenes/menus/BaseMenu.tscn
gotfishmakesticks bef15301cb Equipment menu
2024-01-13 10:58:44 +03:00

499 lines
12 KiB
Text

[gd_scene load_steps=5 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"]
[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 = 64.0
offset_right = 639.0
offset_bottom = 192.0
text = "Buy / Sell goods"
script = ExtResource("3_63o1s")
[node name="QuestMenuGoto" type="Button" parent="MainMenu"]
layout_mode = 0
offset_left = 1.0
offset_top = 192.0
offset_right = 639.0
offset_bottom = 320.0
text = "Take / Pass the quest"
script = ExtResource("3_63o1s")
[node name="EquipmentMenuGoto" type="Button" parent="MainMenu"]
layout_mode = 0
offset_left = 1.0
offset_top = 320.0
offset_right = 639.0
offset_bottom = 448.0
text = "Change your equipment"
script = ExtResource("3_63o1s")
[node name="InfoMenuGoto" type="Button" parent="MainMenu"]
layout_mode = 0
offset_left = 1.0
offset_top = 448.0
offset_right = 639.0
offset_bottom = 576.0
text = "About this station"
script = ExtResource("3_63o1s")
[node name="Footer" type="Label" parent="MainMenu"]
layout_mode = 0
offset_top = 576.0
offset_right = 640.0
offset_bottom = 640.0
text = "Press [TAB] to show / hide menu
Fly off the base to exit menu"
horizontal_alignment = 1
vertical_alignment = 1
[node name="TradingMenu" 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="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 = 64.0
offset_right = 320.0
offset_bottom = 576.0
[node name="BuyList" type="ItemList" parent="TradingMenu"]
layout_mode = 0
offset_left = 320.0
offset_top = 64.0
offset_right = 639.0
offset_bottom = 576.0
[node name="SellInput" type="LineEdit" parent="TradingMenu"]
layout_mode = 0
offset_left = 1.0
offset_top = 576.0
offset_right = 160.0
offset_bottom = 639.0
placeholder_text = "Amount to buy"
alignment = 1
[node name="BuyInput" type="LineEdit" parent="TradingMenu"]
layout_mode = 0
offset_left = 320.0
offset_top = 576.0
offset_right = 480.0
offset_bottom = 639.0
placeholder_text = "Amount to sell"
alignment = 1
[node name="BuyButton" type="Button" parent="TradingMenu"]
layout_mode = 0
offset_left = 160.0
offset_top = 576.0
offset_right = 320.0
offset_bottom = 639.0
text = "Buy selected item"
[node name="SellButton" type="Button" parent="TradingMenu"]
layout_mode = 0
offset_left = 480.0
offset_top = 576.0
offset_right = 639.0
offset_bottom = 639.0
text = "Sell selected item"
[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="."]
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