1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-22 15:44:21 +00:00
swear-jar/interface/shop_ui.tscn

310 lines
14 KiB
Text
Raw Normal View History

2023-10-02 03:31:31 +00:00
[gd_scene load_steps=14 format=3 uid="uid://cklkdygv61bny"]
2023-10-01 12:39:16 +00:00
[ext_resource type="Theme" uid="uid://ba5utvfhnxa5i" path="res://interface/interface_theme.tres" id="1_qdf0y"]
[ext_resource type="PackedScene" uid="uid://dul1fpyh733t7" path="res://interface/purchasable_item.tscn" id="2_2dtc0"]
2023-10-01 13:06:23 +00:00
[ext_resource type="Script" path="res://interface/shop_ui.gd" id="2_iyr7m"]
2023-10-01 12:39:16 +00:00
[ext_resource type="PackedScene" uid="uid://wodgj6rp2ewm" path="res://interface/purchasable_item_padding.tscn" id="3_4feaj"]
2023-10-02 03:31:31 +00:00
[ext_resource type="PackedScene" uid="uid://c3kitncwpi42j" path="res://entity/coin_copper/coin_copper.tscn" id="3_6o10r"]
2023-10-02 01:33:41 +00:00
[ext_resource type="PackedScene" uid="uid://bey5lilvteg32" path="res://interface/score_button.tscn" id="3_7vro3"]
2023-10-02 03:31:31 +00:00
[ext_resource type="PackedScene" uid="uid://dme22vvfgme5f" path="res://entity/coin_silver/coin_silver.tscn" id="4_phiuj"]
2023-10-02 01:33:41 +00:00
[ext_resource type="Texture2D" uid="uid://pj3ip6vlatms" path="res://converters/copper_to_silver/copper_converter.png" id="5_lu2tr"]
2023-10-02 03:31:31 +00:00
[ext_resource type="PackedScene" uid="uid://du3005kwybbrh" path="res://entity/coin_gold/coin_gold.tscn" id="5_yvhlq"]
2023-10-02 01:33:41 +00:00
[ext_resource type="Texture2D" uid="uid://bnctqi24r6ycr" path="res://converters/silver_to_gold/silver_converter.png" id="6_70u64"]
2023-10-02 01:36:32 +00:00
[ext_resource type="Texture2D" uid="uid://c8pvjgtr2ufjl" path="res://interface/upgrade_copper.png" id="8_270dw"]
[ext_resource type="Texture2D" uid="uid://7b12rwclhrq0" path="res://interface/upgrade_silver.png" id="8_caq4i"]
[ext_resource type="Texture2D" uid="uid://taojrwr7xrp4" path="res://interface/upgrade_gold.png" id="9_amnej"]
2023-10-01 12:39:16 +00:00
2023-10-02 03:31:31 +00:00
[node name="ShopUI" type="Panel"]
2023-10-01 12:39:16 +00:00
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_qdf0y")
2023-10-01 13:06:23 +00:00
script = ExtResource("2_iyr7m")
2023-10-02 03:31:31 +00:00
copper_coin_scene = ExtResource("3_6o10r")
silver_coin_scene = ExtResource("4_phiuj")
gold_coin_scene = ExtResource("5_yvhlq")
2023-10-01 12:39:16 +00:00
[node name="Rows" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="UpperButtons" type="HBoxContainer" parent="Rows"]
custom_minimum_size = Vector2(0, 54)
layout_mode = 2
2023-10-02 01:33:41 +00:00
[node name="ScoreButton" parent="Rows/UpperButtons" instance=ExtResource("3_7vro3")]
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-01 14:43:21 +00:00
[node name="UpperButtonsSpacerLeft" type="Control" parent="Rows/UpperButtons"]
2023-10-01 13:06:23 +00:00
layout_mode = 2
size_flags_horizontal = 3
[node name="DeleteButton" type="Button" parent="Rows/UpperButtons"]
custom_minimum_size = Vector2(72, 0)
layout_mode = 2
size_flags_horizontal = 4
text = "Del"
2023-10-01 14:43:21 +00:00
[node name="UpperButtonsSpacerRight" type="Control" parent="Rows/UpperButtons"]
2023-10-01 12:39:16 +00:00
layout_mode = 2
size_flags_horizontal = 3
[node name="BackButton" type="Button" parent="Rows/UpperButtons"]
2023-10-01 13:06:23 +00:00
custom_minimum_size = Vector2(72, 0)
2023-10-01 12:39:16 +00:00
layout_mode = 2
size_flags_horizontal = 8
text = "Back"
alignment = 2
2023-10-01 16:56:15 +00:00
[node name="PaddedScrollable" type="HBoxContainer" parent="Rows"]
2023-10-02 01:33:41 +00:00
clip_contents = true
2023-10-01 16:56:15 +00:00
layout_mode = 2
size_flags_vertical = 3
[node name="PaddedScrollableLeft" type="Control" parent="Rows/PaddedScrollable"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
size_flags_horizontal = 0
[node name="Scrollable" type="ScrollContainer" parent="Rows/PaddedScrollable"]
2023-10-01 16:18:00 +00:00
clip_contents = false
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
size_flags_horizontal = 3
2023-10-01 12:39:16 +00:00
size_flags_vertical = 3
horizontal_scroll_mode = 0
vertical_scroll_mode = 2
2023-10-01 16:56:15 +00:00
[node name="ScrollableItems" type="VBoxContainer" parent="Rows/PaddedScrollable/Scrollable"]
2023-10-01 12:39:16 +00:00
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
2023-10-01 16:56:15 +00:00
[node name="ConvertCategory" type="VBoxContainer" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems"]
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding5" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="ImproveYourItemsLabel" type="Label" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory"]
2023-10-01 14:43:21 +00:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-10-01 16:18:00 +00:00
text = "Improve your items!"
2023-10-01 14:43:21 +00:00
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
uppercase = true
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding3" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuySilverifier" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:18:00 +00:00
item_icon = ExtResource("5_lu2tr")
item_name = "Silverifier"
item_description = "Exchanges ten copper coins for a shiny silver coin!"
item_cost_text = "35 copper"
item_cost_type = &"Copper"
item_cost_goal = 35
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyGoldenser" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-02 01:33:41 +00:00
item_icon = ExtResource("6_70u64")
2023-10-01 16:18:00 +00:00
item_name = "Goldenser"
item_description = "Trades in ten silver coins for a sparkly gold coin!"
item_cost_text = "??"
has_unlocked = false
2023-10-01 13:06:23 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding2" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 13:06:23 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyGemificator" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 13:06:23 +00:00
layout_mode = 2
2023-10-01 16:18:00 +00:00
item_name = "Gemificator"
item_description = "Converts ten gold coins into a randomly colored gem!"
item_cost_text = "??"
2023-10-01 13:06:23 +00:00
has_unlocked = false
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding4" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyCompressor" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
item_name = "Compressor"
item_description = "Consumes ten gold coins to create either a precious white diamond or an useless lump of coal!"
item_cost_text = "??"
has_unlocked = false
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding6" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyArtifactomatic" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
item_name = "Artifactic"
item_description = "Assembles an artifact from twenty-five gold coins and a gem or a diamond!"
item_cost_text = "??"
has_unlocked = false
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding7" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ConvertCategory" instance=ExtResource("3_4feaj")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="ManualCategory" type="VBoxContainer" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems"]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding5" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="EarnCoinsLabel" type="Label" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory"]
2023-10-01 14:43:21 +00:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-10-01 16:18:00 +00:00
text = "Get rich quick!"
2023-10-01 14:43:21 +00:00
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
uppercase = true
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding3" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyAutoCopper" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("8_270dw")
2023-10-01 16:18:00 +00:00
item_name = "Auto-copper"
item_description = "Receive two copper coins per second!"
2023-10-02 03:31:31 +00:00
item_cost_text = "50 copper"
item_cost_type = &"Copper"
item_cost_goal = 50
one_shot = true
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyHeliCopper" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("8_270dw")
2023-10-01 16:18:00 +00:00
item_name = "Heli-copper"
item_description = "Receive eight copper coins per second!"
2023-10-02 03:31:31 +00:00
item_cost_text = "8 silver"
item_cost_type = &"Silver"
item_cost_goal = 8
2023-10-01 16:18:00 +00:00
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding2" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyAutoSilver" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("8_caq4i")
2023-10-01 16:18:00 +00:00
item_name = "Auto-silver"
item_description = "Receive two silver coins per second!"
item_cost_text = "??"
2023-10-01 14:43:21 +00:00
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding4" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuySuperSilver" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("8_caq4i")
2023-10-01 16:18:00 +00:00
item_name = "Super silver"
item_description = "Receive eight silver coins per second!"
item_cost_text = "??"
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 16:18:00 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding6" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyAutoGold" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("9_amnej")
2023-10-01 16:18:00 +00:00
item_name = "Auto-gold"
item_description = "Receive two gold coins per second!"
item_cost_text = "??"
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 16:18:00 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding7" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyMidasTouch" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("9_amnej")
2023-10-01 16:18:00 +00:00
item_name = "Midas Touch"
item_description = "Receive eight gold coins per second!"
item_cost_text = "??"
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 16:18:00 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding8" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory" instance=ExtResource("3_4feaj")]
2023-10-01 16:18:00 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="AutomaticCategory" type="VBoxContainer" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems"]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding5" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="EarnCoinsLabel" type="Label" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory"]
2023-10-01 14:43:21 +00:00
layout_mode = 2
theme_override_font_sizes/font_size = 24
2023-10-02 01:33:41 +00:00
text = "Be more efficient!"
2023-10-01 14:43:21 +00:00
horizontal_alignment = 1
vertical_alignment = 1
autowrap_mode = 2
uppercase = true
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding3" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuySilverStar" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("8_caq4i")
2023-10-01 16:18:00 +00:00
item_name = "Silver star"
item_description = "Create a silver coin when tapping!"
item_cost_text = "??"
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="BuyGoldStar" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("2_2dtc0")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-02 01:36:32 +00:00
item_icon = ExtResource("9_amnej")
2023-10-01 16:18:00 +00:00
item_name = "Gold star"
item_description = "Create a gold coin when tapping!"
item_cost_text = "??"
2023-10-01 14:43:21 +00:00
has_unlocked = false
2023-10-02 03:31:31 +00:00
one_shot = true
2023-10-01 14:43:21 +00:00
2023-10-01 16:56:15 +00:00
[node name="PurchasableItemPadding2" parent="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory" instance=ExtResource("3_4feaj")]
2023-10-01 14:43:21 +00:00
layout_mode = 2
2023-10-01 16:56:15 +00:00
[node name="PaddedScrollableRight" type="Control" parent="Rows/PaddedScrollable"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
size_flags_horizontal = 8
2023-10-01 13:06:23 +00:00
[connection signal="pressed" from="Rows/UpperButtons/ScoreButton" to="." method="_on_score_button_pressed"]
[connection signal="pressed" from="Rows/UpperButtons/DeleteButton" to="." method="_on_delete_button_pressed"]
[connection signal="pressed" from="Rows/UpperButtons/BackButton" to="." method="_on_back_button_pressed"]
2023-10-02 03:31:31 +00:00
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuyAutoCopper" to="." method="_on_buy_auto_copper_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuyHeliCopper" to="." method="_on_buy_heli_copper_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuyAutoSilver" to="." method="_on_buy_auto_silver_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuySuperSilver" to="." method="_on_buy_super_silver_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuyAutoGold" to="." method="_on_buy_auto_gold_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/ManualCategory/BuyMidasTouch" to="." method="_on_buy_midas_touch_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory/BuySilverStar" to="." method="_on_buy_silver_star_purchase_success"]
[connection signal="purchase_success" from="Rows/PaddedScrollable/Scrollable/ScrollableItems/AutomaticCategory/BuyGoldStar" to="." method="_on_buy_gold_star_purchase_success"]