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

147 lines
4.3 KiB
Plaintext

[gd_scene load_steps=3 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"]
[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
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
[node name="ScrollContainer" 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/ScrollContainer"]
custom_minimum_size = Vector2(64, 64)
layout_mode = 2
size_flags_horizontal = 3
[node name="VanUp1" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp1"]
layout_mode = 2
texture = ExtResource("2_c66ch")
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
layout_mode = 2
text = "More Cupcakes"
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
layout_mode = 2
text = "+1 cupcake per drop"
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp1"]
layout_mode = 2
text = "10"
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp1"]
layout_mode = 2
text = "Buy"
[node name="VanUp2" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp2"]
layout_mode = 2
texture = ExtResource("2_c66ch")
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
layout_mode = 2
text = "Faster Cupcakes"
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
layout_mode = 2
text = "+1% faster cupcake droprate"
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp2"]
layout_mode = 2
text = "15"
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp2"]
layout_mode = 2
text = "Buy"
[node name="VanUp3" type="HBoxContainer" parent="Control/ScrollContainer/VanGrid"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Control/ScrollContainer/VanGrid/VanUp3"]
layout_mode = 2
texture = ExtResource("2_c66ch")
[node name="Name" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
layout_mode = 2
text = "Condensed Cupcakes"
[node name="Desc" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
layout_mode = 2
text = "+1 cupcake for every cupcake collected"
[node name="Price" type="Label" parent="Control/ScrollContainer/VanGrid/VanUp3"]
layout_mode = 2
text = "15"
[node name="Buy" type="Button" parent="Control/ScrollContainer/VanGrid/VanUp3"]
layout_mode = 2
text = "Buy"
[node name="VScrollBar" type="VScrollBar" parent="Control"]
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
[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"]