290 lines
9 KiB
Text
290 lines
9 KiB
Text
[gd_scene load_steps=9 format=3]
|
|
|
|
[ext_resource type="Script" path="res://ui/fishing_shop.gd" id="1_script"]
|
|
[ext_resource type="Theme" path="res://ui/game_theme.tres" id="2_theme"]
|
|
[ext_resource type="Texture2D" path="res://items/icons/shop/64_speed_plus.png" id="3_reel"]
|
|
[ext_resource type="Texture2D" path="res://items/icons/shop/64_power_plus.png" id="4_barrier"]
|
|
[ext_resource type="Texture2D" path="res://items/icons/shop/32_currency.png" id="5_coin"]
|
|
[ext_resource type="Texture2D" path="res://items/icons/equipment/64_cooler_plus.png" id="6_cooler"]
|
|
[ext_resource type="Texture2D" path="res://ui/icons/pictograms/x_light.png" id="7_close"]
|
|
[ext_resource type="PackedScene" path="res://ui/components/currency_amount.tscn" id="8_currency"]
|
|
|
|
[node name="FishingShop" type="Control"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
z_index = 80
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 2
|
|
theme = ExtResource("2_theme")
|
|
theme_override_font_sizes/font_size = 20
|
|
script = ExtResource("1_script")
|
|
|
|
[node name="InputBlocker" type="Control" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 0
|
|
|
|
[node name="ShopCoolerPage" type="Control" parent="."]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
z_index = 102
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="ShopCoolerMount" type="Control" parent="ShopCoolerPage"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="ShopPanel" type="PanelContainer" parent="."]
|
|
z_index = 101
|
|
unique_name_in_owner = true
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -490.0
|
|
offset_top = -300.0
|
|
offset_right = 490.0
|
|
offset_bottom = 300.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Margin" type="MarginContainer" parent="ShopPanel"]
|
|
layout_mode = 2
|
|
theme_override_constants/margin_left = 16
|
|
theme_override_constants/margin_top = 12
|
|
theme_override_constants/margin_right = 16
|
|
theme_override_constants/margin_bottom = 12
|
|
|
|
[node name="Layout" type="VBoxContainer" parent="ShopPanel/Margin"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 10
|
|
|
|
[node name="Header" type="HBoxContainer" parent="ShopPanel/Margin/Layout"]
|
|
layout_mode = 2
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="Title" type="Label" parent="ShopPanel/Margin/Layout/Header"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = "fishing shop"
|
|
theme_override_font_sizes/font_size = 32
|
|
theme_override_colors/font_color = Color(0.208, 0.725, 0.78, 1)
|
|
|
|
[node name="BalanceDisplay" type="HBoxContainer" parent="ShopPanel/Margin/Layout/Header"]
|
|
custom_minimum_size = Vector2(0, 48)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
theme_override_constants/separation = 6
|
|
alignment = 1
|
|
|
|
[node name="CoinIcon" type="TextureRect" parent="ShopPanel/Margin/Layout/Header/BalanceDisplay"]
|
|
custom_minimum_size = Vector2(26, 26)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
texture = ExtResource("5_coin")
|
|
expand_mode = 1
|
|
stretch_mode = 5
|
|
texture_filter = 1
|
|
|
|
[node name="WalletLabel" type="Label" parent="ShopPanel/Margin/Layout/Header/BalanceDisplay"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 32)
|
|
layout_mode = 2
|
|
size_flags_vertical = 4
|
|
text = "0"
|
|
vertical_alignment = 1
|
|
|
|
[node name="CloseButton" type="Button" parent="ShopPanel/Margin/Layout/Header"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(48, 48)
|
|
layout_mode = 2
|
|
tooltip_text = "Close shop"
|
|
flat = true
|
|
icon = ExtResource("7_close")
|
|
expand_icon = true
|
|
icon_max_width = 40
|
|
|
|
[node name="Feedback" type="RichTextLabel" parent="ShopPanel/Margin/Layout"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(0, 28)
|
|
layout_mode = 2
|
|
text = ""
|
|
bbcode_enabled = true
|
|
fit_content = true
|
|
scroll_active = false
|
|
theme_override_colors/default_color = Color(1, 0.82, 0.4, 1)
|
|
theme_override_font_sizes/normal_font_size = 20
|
|
|
|
[node name="ShopTabBar" type="HBoxContainer" parent="."]
|
|
unique_name_in_owner = true
|
|
z_index = 100
|
|
offset_left = 180.0
|
|
offset_top = 26.0
|
|
offset_right = 1100.0
|
|
offset_bottom = 70.0
|
|
alignment = 1
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="Body" type="HBoxContainer" parent="ShopPanel/Margin/Layout"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
theme_override_constants/separation = 0
|
|
|
|
[node name="Upgrades" type="VBoxContainer" parent="ShopPanel/Margin/Layout/Body"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(270, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 8
|
|
|
|
[node name="UpgradeTitle" type="Label" parent="ShopPanel/Margin/Layout/Body/Upgrades"]
|
|
layout_mode = 2
|
|
text = "fishing upgrades"
|
|
theme_override_font_sizes/font_size = 23
|
|
|
|
[node name="Supplies" type="VBoxContainer" parent="ShopPanel/Margin/Layout/Body"]
|
|
unique_name_in_owner = true
|
|
custom_minimum_size = Vector2(210, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 6
|
|
|
|
[node name="StockTitle" type="Label" parent="ShopPanel/Margin/Layout/Body/Supplies"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "shop stock"
|
|
theme_override_font_sizes/font_size = 23
|
|
|
|
[node name="Scroll" type="ScrollContainer" parent="ShopPanel/Margin/Layout/Body/Supplies"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="SuppliesList" type="VBoxContainer" parent="ShopPanel/Margin/Layout/Body/Supplies/Scroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/separation = 5
|
|
|
|
[node name="UpgradeScroll" type="ScrollContainer" parent="ShopPanel/Margin/Layout/Body/Upgrades"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 3
|
|
horizontal_scroll_mode = 0
|
|
|
|
[node name="UpgradeGrid" type="GridContainer" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_constants/h_separation = 20
|
|
theme_override_constants/v_separation = 20
|
|
columns = 3
|
|
|
|
[node name="ReelTile" type="Control" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid"]
|
|
custom_minimum_size = Vector2(144, 168)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="ReelPurchase" type="Button" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/ReelTile"]
|
|
unique_name_in_owner = true
|
|
offset_right = 144.0
|
|
offset_bottom = 144.0
|
|
tooltip_text = "reel speed"
|
|
icon = ExtResource("3_reel")
|
|
expand_icon = true
|
|
icon_max_width = 128
|
|
|
|
[node name="ReelPriceBubble" type="PanelContainer" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/ReelTile"]
|
|
unique_name_in_owner = true
|
|
z_index = 2
|
|
offset_left = 22.0
|
|
offset_top = 128.0
|
|
offset_right = 122.0
|
|
offset_bottom = 160.0
|
|
mouse_filter = 2
|
|
|
|
[node name="ReelCost" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/ReelTile/ReelPriceBubble" instance=ExtResource("8_currency")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
amount = 50
|
|
icon_size = 24.0
|
|
|
|
[node name="BarrierTile" type="Control" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid"]
|
|
custom_minimum_size = Vector2(144, 168)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="BarrierPurchase" type="Button" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/BarrierTile"]
|
|
unique_name_in_owner = true
|
|
offset_right = 144.0
|
|
offset_bottom = 144.0
|
|
tooltip_text = "rod power"
|
|
icon = ExtResource("4_barrier")
|
|
expand_icon = true
|
|
icon_max_width = 128
|
|
|
|
[node name="BarrierPriceBubble" type="PanelContainer" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/BarrierTile"]
|
|
unique_name_in_owner = true
|
|
z_index = 2
|
|
offset_left = 22.0
|
|
offset_top = 128.0
|
|
offset_right = 122.0
|
|
offset_bottom = 160.0
|
|
mouse_filter = 2
|
|
|
|
[node name="BarrierCost" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/BarrierTile/BarrierPriceBubble" instance=ExtResource("8_currency")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
amount = 100
|
|
icon_size = 24.0
|
|
|
|
[node name="CoolerTile" type="Control" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid"]
|
|
custom_minimum_size = Vector2(144, 168)
|
|
layout_mode = 2
|
|
mouse_filter = 2
|
|
|
|
[node name="CoolerPurchase" type="Button" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/CoolerTile"]
|
|
unique_name_in_owner = true
|
|
offset_right = 144.0
|
|
offset_bottom = 144.0
|
|
tooltip_text = "cooler capacity"
|
|
icon = ExtResource("6_cooler")
|
|
expand_icon = true
|
|
icon_max_width = 128
|
|
|
|
[node name="CoolerPriceBubble" type="PanelContainer" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/CoolerTile"]
|
|
unique_name_in_owner = true
|
|
z_index = 2
|
|
offset_left = 22.0
|
|
offset_top = 128.0
|
|
offset_right = 122.0
|
|
offset_bottom = 160.0
|
|
mouse_filter = 2
|
|
|
|
[node name="CoolerCost" parent="ShopPanel/Margin/Layout/Body/Upgrades/UpgradeScroll/UpgradeGrid/CoolerTile/CoolerPriceBubble" instance=ExtResource("8_currency")]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
amount = 75
|
|
icon_size = 24.0
|