[gd_scene load_steps=5 format=3 uid="uid://dj8iw5305ujrc"] [ext_resource type="Texture2D" uid="uid://db4euprxhape0" path="res://sprites/9s.png" id="1_osomq"] [ext_resource type="Script" path="res://scripts/menu/BuyMenuButton.gd" id="2_rfxij"] [ext_resource type="Script" path="res://scripts/menu/OptionsColors.gd" id="7_m7aa1"] [sub_resource type="LabelSettings" id="LabelSettings_7bj0u"] font_size = 14 [node name="StarterBaseMenu" 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 mouse_filter = 2 [node name="BuyMenu" type="NinePatchRect" parent="."] layout_mode = 1 anchors_preset = -1 offset_left = 295.0 offset_top = 92.0 offset_right = 551.0 offset_bottom = 348.0 texture = ExtResource("1_osomq") 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="Option1" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = -0.0480001 offset_top = -0.0480001 offset_right = 0.0479889 offset_bottom = -0.0160027 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "amount": 1000.0, "id": "fuel" } price = 50.0 clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option1"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option1"] layout_mode = 0 offset_right = 251.0 offset_bottom = 52.0 text = "50 Money Units >> 1k Fuel Units No refund" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="Option2" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = -0.0480001 offset_top = 69.952 offset_right = 0.0480042 offset_bottom = 69.984 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "id": "hp" } price = 2.0 clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option2"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option2"] layout_mode = 0 offset_right = 251.0 offset_bottom = 52.0 text = "2 Money Units >> 1 Hull Strength Up to a maximum" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="Option3" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = -0.0480001 offset_top = 137.952 offset_right = 0.0480042 offset_bottom = 137.984 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "amount": 5, "id": "rockets" } price = 20.0 clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option3"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option3"] layout_mode = 0 offset_right = 251.0 offset_bottom = 52.0 text = "20 Money Units >> 5 Rockets Refund if too many" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="Option4" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = -0.0480001 offset_top = 199.952 offset_right = -155.952 offset_bottom = 199.984 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "id": "weapon", "position": Vector2(16, 0), "slot": "secondary", "weapon": "SingleRocketMk1" } price = 200.0 clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option4"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option4"] layout_mode = 0 offset_right = 96.0 offset_bottom = 52.0 text = "200 MU >> Sin gleRocketMk1" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="Option5" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = 96.952 offset_top = 199.952 offset_right = -59.952 offset_bottom = 199.984 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "id": "weapon", "position": Vector2(8, 0), "slot": "primary", "weapon": "DoubleLaserMk1" } price = 300.0 clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option5"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option5"] layout_mode = 0 offset_right = 95.0 offset_bottom = 52.0 text = "300 MU >> Do ubleLaserMk1" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="Option6" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = 193.952 offset_top = 199.952 offset_right = 0.0480042 offset_bottom = 199.984 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("2_rfxij") data = { "id": "weapon", "position": Vector2(8, 0), "slot": "primary", "weapon": "SingleLaserMk1" } clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="BuyMenu/Option6"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="BuyMenu/Option6"] layout_mode = 0 offset_right = 58.0 offset_bottom = 52.0 text = "SingleLa serMk1" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1 [node name="OptionsMenu" type="NinePatchRect" parent="."] layout_mode = 1 anchors_preset = -1 offset_left = 695.0 offset_top = 91.0 offset_right = 951.0 offset_bottom = 347.0 texture = ExtResource("1_osomq") 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="Colors" type="NinePatchRect" parent="OptionsMenu" node_paths=PackedStringArray("clickable")] layout_mode = 1 anchors_preset = -1 anchor_left = 0.008 anchor_top = 0.008 anchor_right = 0.992 anchor_bottom = 0.211 offset_left = -0.0480001 offset_top = -0.0480001 offset_right = 0.0479889 offset_bottom = -0.0160027 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("1_osomq") region_rect = Rect2(0, 0, 5, 5) patch_margin_left = 2 patch_margin_top = 2 patch_margin_right = 2 patch_margin_bottom = 2 script = ExtResource("7_m7aa1") clickable = NodePath("TextureButton") [node name="TextureButton" type="TextureButton" parent="OptionsMenu/Colors"] layout_mode = 1 anchors_preset = -1 anchor_right = 1.0 anchor_bottom = 1.0 [node name="Label" type="Label" parent="OptionsMenu/Colors"] layout_mode = 0 offset_right = 251.0 offset_bottom = 52.0 text = "Randomize colors" label_settings = SubResource("LabelSettings_7bj0u") horizontal_alignment = 1 vertical_alignment = 1