Done refactoring
This commit is contained in:
parent
3a136ff215
commit
2176e9d798
88 changed files with 821 additions and 880 deletions
|
|
@ -1,12 +1,8 @@
|
|||
[gd_scene load_steps=9 format=3 uid="uid://dj8iw5305ujrc"]
|
||||
[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://scenes/menus/BuyMenuTurbo.gd" id="2_0mgmw"]
|
||||
[ext_resource type="Script" path="res://scenes/menus/BuyMenuHealth.gd" id="3_ciur0"]
|
||||
[ext_resource type="Script" path="res://scenes/menus/BuyMenuRockets.gd" id="4_aae7g"]
|
||||
[ext_resource type="Script" path="res://scenes/menus/BuyMenuLaser.gd" id="5_45gom"]
|
||||
[ext_resource type="Script" path="res://scenes/menus/OptionsColors.gd" id="7_m7aa1"]
|
||||
[ext_resource type="Script" path="res://scenes/menus/ResetMS.gd" id="8_uifkj"]
|
||||
[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
|
||||
|
|
@ -35,7 +31,7 @@ patch_margin_top = 2
|
|||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
|
||||
[node name="Option1" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option1" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -54,9 +50,13 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("2_0mgmw")
|
||||
Price = 50.0
|
||||
Clickable = NodePath("TextureButton")
|
||||
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
|
||||
|
|
@ -74,7 +74,7 @@ label_settings = SubResource("LabelSettings_7bj0u")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Option2" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option2" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -93,9 +93,12 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("3_ciur0")
|
||||
Price = 2.0
|
||||
Clickable = NodePath("TextureButton")
|
||||
script = ExtResource("2_rfxij")
|
||||
data = {
|
||||
"id": "hp"
|
||||
}
|
||||
price = 2.0
|
||||
clickable = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="BuyMenu/Option2"]
|
||||
layout_mode = 1
|
||||
|
|
@ -113,7 +116,7 @@ label_settings = SubResource("LabelSettings_7bj0u")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Option3" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option3" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -132,9 +135,13 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("4_aae7g")
|
||||
Price = 20.0
|
||||
Clickable = NodePath("TextureButton")
|
||||
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
|
||||
|
|
@ -152,7 +159,7 @@ label_settings = SubResource("LabelSettings_7bj0u")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Option4" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option4" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -171,12 +178,15 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("5_45gom")
|
||||
AddedWeapon = "SingleRocketMk1"
|
||||
Slot = "secondary"
|
||||
Position = Vector2(16, 0)
|
||||
Price = 200.0
|
||||
Clickable = NodePath("TextureButton")
|
||||
script = ExtResource("2_rfxij")
|
||||
data = {
|
||||
"id": "weapon",
|
||||
"position": Vector2(8, 0),
|
||||
"slot": "secondary",
|
||||
"weapon": "SingleRocketMk1"
|
||||
}
|
||||
price = 200.0
|
||||
clickable = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="BuyMenu/Option4"]
|
||||
layout_mode = 1
|
||||
|
|
@ -194,7 +204,7 @@ label_settings = SubResource("LabelSettings_7bj0u")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Option5" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option5" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -213,11 +223,15 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("5_45gom")
|
||||
AddedWeapon = "DoubleLaserMk1"
|
||||
Position = Vector2(8, 0)
|
||||
Price = 300.0
|
||||
Clickable = NodePath("TextureButton")
|
||||
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
|
||||
|
|
@ -235,7 +249,7 @@ label_settings = SubResource("LabelSettings_7bj0u")
|
|||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="Option6" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Option6" type="NinePatchRect" parent="BuyMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -254,10 +268,14 @@ patch_margin_left = 2
|
|||
patch_margin_top = 2
|
||||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("5_45gom")
|
||||
AddedWeapon = "SingleLaserMk1"
|
||||
Position = Vector2(8, 0)
|
||||
Clickable = NodePath("TextureButton")
|
||||
script = ExtResource("2_rfxij")
|
||||
data = {
|
||||
"id": "weapon",
|
||||
"position": Vector2(16, 0),
|
||||
"slot": "primary",
|
||||
"weapon": "SingleLaserMk1"
|
||||
}
|
||||
clickable = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="BuyMenu/Option6"]
|
||||
layout_mode = 1
|
||||
|
|
@ -289,7 +307,7 @@ patch_margin_top = 2
|
|||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
|
||||
[node name="Colors" type="NinePatchRect" parent="OptionsMenu" node_paths=PackedStringArray("Clickable")]
|
||||
[node name="Colors" type="NinePatchRect" parent="OptionsMenu" node_paths=PackedStringArray("clickable")]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_left = 0.008
|
||||
|
|
@ -309,7 +327,7 @@ patch_margin_top = 2
|
|||
patch_margin_right = 2
|
||||
patch_margin_bottom = 2
|
||||
script = ExtResource("7_m7aa1")
|
||||
Clickable = NodePath("TextureButton")
|
||||
clickable = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="OptionsMenu/Colors"]
|
||||
layout_mode = 1
|
||||
|
|
@ -325,40 +343,3 @@ text = "Randomize colors"
|
|||
label_settings = SubResource("LabelSettings_7bj0u")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="ResetMS" 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 = 72.952
|
||||
offset_right = 0.0479889
|
||||
offset_bottom = 72.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("8_uifkj")
|
||||
Clickable = NodePath("TextureButton")
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="OptionsMenu/ResetMS"]
|
||||
layout_mode = 1
|
||||
anchors_preset = -1
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
|
||||
[node name="Label" type="Label" parent="OptionsMenu/ResetMS"]
|
||||
layout_mode = 0
|
||||
offset_right = 251.0
|
||||
offset_bottom = 52.0
|
||||
text = "Reset Main Ship"
|
||||
label_settings = SubResource("LabelSettings_7bj0u")
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue