3d-rpg/src/scenes/ui/item_icon.tscn
2025-05-25 14:37:48 -06:00

76 lines
2.7 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://b35w0afp1fdpg"]
[ext_resource type="Texture2D" uid="uid://dd48efbhydh3d" path="res://assets/ui/icons/spell_slot_empty_icon.png" id="1_4uo1w"]
[ext_resource type="Texture2D" uid="uid://db4ch7g0so6x0" path="res://assets/ui/icons/item_press_icon.png" id="2_7vh2f"]
[ext_resource type="Texture2D" uid="uid://nq8epkbfjs4a" path="res://assets/ui/icons/item_hover_icon.png" id="3_cdq5c"]
[ext_resource type="Script" uid="uid://caylfrnj8yf8d" path="res://src/scripts/ui/item_icon.gd" id="4_7vh2f"]
[ext_resource type="Texture2D" uid="uid://b6hpoyr0q8y7q" path="res://assets/ui/icons/armor_icon.png" id="4_vxuy4"]
[ext_resource type="FontFile" uid="uid://sua821wsaeli" path="res://assets/fonts/Candara_Bold.ttf" id="5_ls738"]
[ext_resource type="FontFile" uid="uid://d3s081dnj7ea4" path="res://assets/fonts/Candara_Italic.ttf" id="6_bsdv0"]
[sub_resource type="LabelSettings" id="LabelSettings_3d7gt"]
font = ExtResource("5_ls738")
font_size = 24
font_color = Color(0.835294, 0.627451, 0.356863, 1)
shadow_color = Color(0, 0, 0, 1)
[sub_resource type="LabelSettings" id="LabelSettings_4d063"]
font = ExtResource("6_bsdv0")
font_color = Color(0.835294, 0.627451, 0.356863, 1)
shadow_color = Color(0, 0, 0, 1)
[node name="ItemIcon" type="TextureButton"]
custom_minimum_size = Vector2(128, 128)
offset_right = 40.0
offset_bottom = 40.0
texture_normal = ExtResource("1_4uo1w")
texture_pressed = ExtResource("2_7vh2f")
texture_hover = ExtResource("3_cdq5c")
ignore_texture_size = true
stretch_mode = 0
script = ExtResource("4_7vh2f")
[node name="TypeIcon" type="TextureRect" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -44.0
offset_top = -45.0
offset_right = 44.0
offset_bottom = 45.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("4_vxuy4")
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 18
theme_override_constants/margin_top = 13
theme_override_constants/margin_right = 17
theme_override_constants/margin_bottom = 15
[node name="StatLabel" type="Label" parent="MarginContainer"]
layout_mode = 2
size_flags_vertical = 1
text = "+99"
label_settings = SubResource("LabelSettings_3d7gt")
horizontal_alignment = 2
[node name="ItemNameLabel" type="Label" parent="MarginContainer"]
layout_mode = 2
size_flags_vertical = 1
text = "Item name"
label_settings = SubResource("LabelSettings_4d063")
horizontal_alignment = 1
vertical_alignment = 2
[connection signal="gui_input" from="." to="." method="_on_gui_input"]