1
Fork 0
mirror of https://github.com/Steffo99/swear-jar.git synced 2024-11-24 08:34:19 +00:00
swear-jar/interface/purchasable_item.tscn

136 lines
3.8 KiB
Text
Raw Normal View History

2023-10-01 14:43:21 +00:00
[gd_scene load_steps=4 format=3 uid="uid://dul1fpyh733t7"]
2023-10-01 12:39:16 +00:00
[ext_resource type="Texture2D" uid="uid://cxsl5yvdhswc7" path="res://icon.png" id="1_drwcj"]
[ext_resource type="Script" path="res://interface/purchasable_item.gd" id="1_h8jix"]
2023-10-01 14:43:21 +00:00
[ext_resource type="Theme" uid="uid://ba5utvfhnxa5i" path="res://interface/interface_theme.tres" id="1_r2qbu"]
2023-10-01 12:39:16 +00:00
[node name="PurchasableItem" type="Panel"]
2023-10-02 17:19:13 +00:00
custom_minimum_size = Vector2(0, 150)
2023-10-01 12:39:16 +00:00
anchors_preset = 10
anchor_right = 1.0
grow_horizontal = 2
size_flags_horizontal = 3
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 14:43:21 +00:00
theme = ExtResource("1_r2qbu")
2023-10-01 12:39:16 +00:00
script = ExtResource("1_h8jix")
[node name="Contents" 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="HeaderPaddingTop" type="Control" parent="Contents"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="Header" type="HBoxContainer" parent="Contents"]
layout_mode = 2
size_flags_vertical = 8
[node name="IconPaddingLeft" type="Control" parent="Contents/Header"]
2023-10-02 01:33:41 +00:00
custom_minimum_size = Vector2(4, 0)
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="IconRect" type="TextureRect" parent="Contents/Header"]
2023-10-02 01:33:41 +00:00
custom_minimum_size = Vector2(50, 50)
2023-10-01 12:39:16 +00:00
layout_mode = 2
texture = ExtResource("1_drwcj")
expand_mode = 2
[node name="IconNameSeparator" type="Control" parent="Contents/Header"]
2023-10-02 01:33:41 +00:00
custom_minimum_size = Vector2(4, 0)
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="NameLabel" type="Label" parent="Contents/Header"]
layout_mode = 2
size_flags_horizontal = 3
2023-10-01 14:43:21 +00:00
theme_override_font_sizes/font_size = 16
text = "ITEMNAME"
2023-10-02 17:19:13 +00:00
vertical_alignment = 1
2023-10-14 17:52:44 +00:00
autowrap_mode = 3
2023-10-01 12:39:16 +00:00
uppercase = true
[node name="NamePaddingRight" type="Control" parent="Contents/Header"]
2023-10-02 01:33:41 +00:00
custom_minimum_size = Vector2(4, 0)
2023-10-01 12:39:16 +00:00
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="HeaderDescriptionPadding" type="Control" parent="Contents"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 2
size_flags_vertical = 3
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="Description" type="HBoxContainer" parent="Contents"]
layout_mode = 2
size_flags_vertical = 4
[node name="DescriptionPaddingLeft" type="Control" parent="Contents/Description"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="DescriptionLabel" type="Label" parent="Contents/Description"]
layout_mode = 2
size_flags_horizontal = 3
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-02 17:19:13 +00:00
theme_override_font_sizes/font_size = 8
text = "What does this item do? Nobody knows."
2023-10-14 17:52:44 +00:00
autowrap_mode = 3
2023-10-01 12:39:16 +00:00
[node name="DescriptionPaddingRight" type="Control" parent="Contents/Description"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="DescriptionActionPadding" type="Control" parent="Contents"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 2
size_flags_vertical = 3
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="Action" type="HBoxContainer" parent="Contents"]
layout_mode = 2
size_flags_vertical = 0
[node name="BuyButtonPaddingLeft" type="Control" parent="Contents/Action"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="BuyButton" type="Button" parent="Contents/Action"]
layout_mode = 2
text = "Buy"
[node name="BuyCostPadding" type="Control" parent="Contents/Action"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="CostLabel" type="Label" parent="Contents/Action"]
layout_mode = 2
2023-10-01 14:43:21 +00:00
size_flags_horizontal = 10
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-02 17:19:13 +00:00
theme_override_font_sizes/font_size = 8
text = "3 fiorygi"
2023-10-01 14:43:21 +00:00
horizontal_alignment = 2
2023-10-01 12:39:16 +00:00
vertical_alignment = 1
[node name="CostLabelPaddingRight" type="Control" parent="Contents/Action"]
custom_minimum_size = Vector2(8, 0)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[node name="ActionPaddingBottom" type="Control" parent="Contents"]
custom_minimum_size = Vector2(0, 4)
layout_mode = 2
2023-10-02 01:33:41 +00:00
mouse_filter = 1
2023-10-01 12:39:16 +00:00
[connection signal="pressed" from="Contents/Action/BuyButton" to="." method="_on_buy_button_pressed"]