|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
[gd_scene load_steps=3 format=3 uid="uid://cpv7y67qtmino"]
|
|
|
|
|
[gd_scene load_steps=5 format=3 uid="uid://cpv7y67qtmino"]
|
|
|
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Scripts/upgrades.gd" id="1_ofi8s"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://7fqro4fugv8k" path="res://Art/Cupcakes/Cupcake.png" id="2_c66ch"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://brpc5ocwgd8ls" path="res://Art/Cupcakes/VanCupcake.png" id="2_ydoya"]
|
|
|
|
|
[ext_resource type="Texture2D" uid="uid://bnr06vojcqkqy" path="res://Art/Cupcakes/ChocCupcake.png" id="3_c5nuv"]
|
|
|
|
|
|
|
|
|
|
[node name="Upgrades" type="CanvasLayer"]
|
|
|
|
|
script = ExtResource("1_ofi8s")
|
|
|
|
@ -46,8 +48,10 @@ offset_left = -787.0
|
|
|
|
|
offset_top = -380.0
|
|
|
|
|
offset_right = 794.0
|
|
|
|
|
offset_bottom = 379.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
|
|
[node name="ScrollContainer" type="ScrollContainer" parent="Control"]
|
|
|
|
|
[node name="VanScroll" type="ScrollContainer" parent="Control"]
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 15
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
@ -56,93 +60,223 @@ grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
vertical_scroll_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="VanGrid" type="GridContainer" parent="Control/ScrollContainer"]
|
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
|
[node name="VanGrid" type="GridContainer" parent="Control/VanScroll"]
|
|
|
|
|
custom_minimum_size = Vector2(256, 256)
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
size_flags_vertical = 3
|
|
|
|
|
|
|
|
|
|
[node name="VanUp1" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
|
|
|
|
|
[node name="VanLabel" type="Label" parent="Control/VanScroll/VanGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Vanilla Cupcake Upgrades"
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp1"]
|
|
|
|
|
[node name="VanUp1" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("2_c66ch")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("2_ydoya")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "More Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/VanScroll/VanGrid/VanUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1 cupcake per drop"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
|
|
|
|
|
[node name="Price" type="Label" parent="Control/VanScroll/VanGrid/VanUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "10"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp1"]
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="VanUp2" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
|
|
|
|
|
[node name="VanUp2" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp2"]
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("2_c66ch")
|
|
|
|
|
texture = ExtResource("2_ydoya")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
|
|
|
|
|
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Faster Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/VanScroll/VanGrid/VanUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1% faster cupcake droprate"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
|
|
|
|
|
[node name="Price" type="Label" parent="Control/VanScroll/VanGrid/VanUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "15"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp2"]
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="VanUp3" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
|
|
|
|
|
[node name="VanUp3" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp3"]
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("2_c66ch")
|
|
|
|
|
texture = ExtResource("2_ydoya")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
|
|
|
|
|
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Condensed Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/VanScroll/VanGrid/VanUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1 cupcake for every cupcake collected"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
|
|
|
|
|
[node name="Price" type="Label" parent="Control/VanScroll/VanGrid/VanUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "15"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp3"]
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="VScrollBar" type="VScrollBar" parent="Control"]
|
|
|
|
|
[node name="VanUp4" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("3_c5nuv")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Chocolate Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/VanScroll/VanGrid/VanUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Unlock Chocolate Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/VanScroll/VanGrid/VanUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "25000"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="ChocScroll" type="ScrollContainer" parent="Control"]
|
|
|
|
|
visible = false
|
|
|
|
|
layout_mode = 1
|
|
|
|
|
anchors_preset = 15
|
|
|
|
|
anchor_right = 1.0
|
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
|
grow_horizontal = 2
|
|
|
|
|
grow_vertical = 2
|
|
|
|
|
|
|
|
|
|
[node name="ChocGrid" type="GridContainer" parent="Control/ChocScroll"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
|
|
[node name="ChocLabel" type="Label" parent="Control/ChocScroll/ChocGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Chocolate Cupcake Upgrades"
|
|
|
|
|
|
|
|
|
|
[node name="ChocUp1" type="HBoxContainer" parent="Control/ChocScroll/ChocGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ChocScroll/ChocGrid/ChocUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("3_c5nuv")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "More Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1 cupcake per drop"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "10"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ChocScroll/ChocGrid/ChocUp1"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="ChocUp2" type="HBoxContainer" parent="Control/ChocScroll/ChocGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ChocScroll/ChocGrid/ChocUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("3_c5nuv")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Faster Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1% faster cupcake droprate"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "15"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ChocScroll/ChocGrid/ChocUp2"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="ChocUp3" type="HBoxContainer" parent="Control/ChocScroll/ChocGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ChocScroll/ChocGrid/ChocUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("3_c5nuv")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Condensed Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "+1 cupcake for every cupcake collected"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "15"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ChocScroll/ChocGrid/ChocUp3"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[node name="ChocUp4" type="HBoxContainer" parent="Control/ChocScroll/ChocGrid"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
anchor_left = 1.0
|
|
|
|
|
anchor_top = 0.033
|
|
|
|
|
anchor_right = 1.021
|
|
|
|
|
anchor_bottom = 0.989
|
|
|
|
|
offset_left = 8.0
|
|
|
|
|
offset_top = -0.046999
|
|
|
|
|
offset_right = -0.20105
|
|
|
|
|
offset_bottom = 0.348999
|
|
|
|
|
|
|
|
|
|
[node name="TextureRect" type="TextureRect" parent="Control/ChocScroll/ChocGrid/ChocUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
texture = ExtResource("2_c66ch")
|
|
|
|
|
|
|
|
|
|
[node name="Name" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Strawberry Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Desc" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Unlock Strawberry Cupcakes"
|
|
|
|
|
|
|
|
|
|
[node name="Price" type="Label" parent="Control/ChocScroll/ChocGrid/ChocUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "50000"
|
|
|
|
|
|
|
|
|
|
[node name="Buy" type="Button" parent="Control/ChocScroll/ChocGrid/ChocUp4"]
|
|
|
|
|
layout_mode = 2
|
|
|
|
|
text = "Buy"
|
|
|
|
|
|
|
|
|
|
[connection signal="pressed" from="Close" to="." method="_on_close_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ScrollContainer/VanGrid/VanUp1/Buy" to="." method="_on_buy_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ScrollContainer/VanGrid/VanUp2/Buy" to="." method="_on_buy_van2_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ScrollContainer/VanGrid/VanUp3/Buy" to="." method="_on_buy_van3_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/VanScroll/VanGrid/VanUp1/Buy" to="." method="_on_buy_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/VanScroll/VanGrid/VanUp2/Buy" to="." method="_on_buy_van2_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/VanScroll/VanGrid/VanUp3/Buy" to="." method="_on_buy_van3_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/VanScroll/VanGrid/VanUp4/Buy" to="." method="_on_buy_van4_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ChocScroll/ChocGrid/ChocUp1/Buy" to="." method="_on_buy_choc1_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ChocScroll/ChocGrid/ChocUp2/Buy" to="." method="_on_buy_choc2_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ChocScroll/ChocGrid/ChocUp3/Buy" to="." method="_on_buy_choc3_pressed"]
|
|
|
|
|
[connection signal="pressed" from="Control/ChocScroll/ChocGrid/ChocUp4/Buy" to="." method="_on_buy_choc4_pressed"]
|
|
|
|
|