You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CupcakeRevolution/Scenes/UI/upgrades.tscn

283 lines
8.7 KiB
Plaintext

[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")
[node name="Anim" type="AnimationPlayer" parent="."]
[node name="MainPanel" type="Panel" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -813.5
offset_top = -402.5
offset_right = 813.5
offset_bottom = 402.5
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
[node name="Close" type="Button" parent="."]
anchors_preset = -1
anchor_left = 0.927
anchor_top = 0.126
anchor_right = 0.927
anchor_bottom = 0.126
offset_left = -24.8401
offset_top = -20.08
offset_right = 19.1599
offset_bottom = 26.92
text = "X"
[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -787.0
offset_top = -380.0
offset_right = 794.0
offset_bottom = 379.0
grow_horizontal = 2
grow_vertical = 2
[node name="VanScroll" type="ScrollContainer" parent="Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
vertical_scroll_mode = 2
[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="VanLabel" type="Label" parent="Control/VanScroll/VanGrid"]
layout_mode = 2
text = "Vanilla Cupcake Upgrades"
[node name="VanUp1" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
layout_mode = 2
[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/VanScroll/VanGrid/VanUp1"]
layout_mode = 2
text = "+1 cupcake per drop"
[node name="Price" type="Label" parent="Control/VanScroll/VanGrid/VanUp1"]
layout_mode = 2
text = "10"
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp1"]
layout_mode = 2
text = "Buy"
[node name="VanUp2" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp2"]
layout_mode = 2
texture = ExtResource("2_ydoya")
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp2"]
layout_mode = 2
text = "Faster Cupcakes"
[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/VanScroll/VanGrid/VanUp2"]
layout_mode = 2
text = "15"
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp2"]
layout_mode = 2
text = "Buy"
[node name="VanUp3" type="HBoxContainer" parent="Control/VanScroll/VanGrid"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Control/VanScroll/VanGrid/VanUp3"]
layout_mode = 2
texture = ExtResource("2_ydoya")
[node name="Name" type="Label" parent="Control/VanScroll/VanGrid/VanUp3"]
layout_mode = 2
text = "Condensed Cupcakes"
[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/VanScroll/VanGrid/VanUp3"]
layout_mode = 2
text = "15"
[node name="Buy" type="Button" parent="Control/VanScroll/VanGrid/VanUp3"]
layout_mode = 2
text = "Buy"
[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
[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/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"]