Replace CurrencyType with Currency resource

This commit is contained in:
2026-03-14 12:39:21 +01:00
parent 020d287b03
commit 6da962a53d
13 changed files with 379 additions and 158 deletions

View File

@@ -7,6 +7,7 @@
[ext_resource type="PackedScene" uid="uid://ckos7f22pnmyh" path="res://generator_container.tscn" id="3_pw2a0"]
[ext_resource type="PackedScene" uid="uid://btkxru2gdjsgc" path="res://currency_tile.tscn" id="3_x5lt1"]
[ext_resource type="PackedScene" path="res://generator-unlock-goals/goals_debug_ui.tscn" id="4_63gjq"]
[ext_resource type="Resource" path="res://currency/gems.tres" id="6_gemsc"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_y5m1q"]
size = Vector2(128, 128)
@@ -29,7 +30,7 @@ shape = SubResource("RectangleShape2D_y5m1q")
[node name="GemsGenerator" type="Node2D" parent="." unique_id=931294956]
script = ExtResource("1_pl17p")
currency = 1
currency = ExtResource("6_gemsc")
data = ExtResource("3_dc82g")
[node name="UI" type="Control" parent="." unique_id=452530906]
@@ -42,17 +43,16 @@ offset_bottom = 40.0
layout_mode = 0
offset_right = 160.0
offset_bottom = 31.0
data = ExtResource("2_x5lt1")
[node name="GemsCurrencyTile" parent="UI" unique_id=1977342362 instance=ExtResource("3_x5lt1")]
layout_mode = 0
offset_top = 28.0
offset_right = 160.0
offset_bottom = 59.0
currency = 1
data = ExtResource("3_dc82g")
currency = ExtResource("6_gemsc")
[node name="GoldGeneratorContainer" parent="UI" unique_id=1129190041 node_paths=PackedStringArray("_generator") instance=ExtResource("3_pw2a0")]
visible = false
layout_mode = 1
offset_left = -19.0
offset_top = 53.0
@@ -61,6 +61,7 @@ offset_bottom = 218.0
_generator = NodePath("../../GoldGenerator")
[node name="GemsGeneratorContainer" parent="UI" unique_id=1999544736 node_paths=PackedStringArray("_generator") instance=ExtResource("3_pw2a0")]
visible = false
layout_mode = 1
offset_left = -17.0
offset_top = 215.0
@@ -69,6 +70,7 @@ offset_bottom = 380.0
_generator = NodePath("../../GemsGenerator")
[node name="GoalsDebugUI" parent="UI" unique_id=4710697 instance=ExtResource("4_63gjq")]
visible = false
layout_mode = 1
offset_left = 577.0
offset_top = 3.0