[gd_scene load_steps=5 format=3 uid="uid://bdj734elapmqo"]

[ext_resource type="Script" path="res://src/lib/item_box.gd" id="1_i5r36"]
[ext_resource type="Texture2D" uid="uid://kl1g25keou1k" path="res://icon.svg" id="1_knk66"]
[ext_resource type="FontFile" uid="uid://y1lgw5ooyt4r" path="res://assets/fonts/kenney-pixel.ttf" id="3_nm7hh"]

[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_nhqyb"]

[node name="ItemBox" type="MarginContainer" node_paths=PackedStringArray("highlight_panel", "icon", "name_label", "amount_label")]
anchors_preset = -1
anchor_right = 0.0625
anchor_bottom = 0.155556
focus_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
script = ExtResource("1_i5r36")
highlight_panel = NodePath("HighlightPanel")
icon = NodePath("HighlightPanel/VBoxContainer/Icon")
name_label = NodePath("HighlightPanel/VBoxContainer/Name")
amount_label = NodePath("HighlightPanel/VBoxContainer/Icon/Amount")
metadata/_edit_use_anchors_ = true

[node name="HighlightPanel" type="PanelContainer" parent="."]
layout_mode = 2
mouse_filter = 1
theme_override_styles/panel = SubResource("StyleBoxEmpty_nhqyb")

[node name="VBoxContainer" type="VBoxContainer" parent="HighlightPanel"]
layout_mode = 2

[node name="Icon" type="TextureRect" parent="HighlightPanel/VBoxContainer"]
custom_minimum_size = Vector2(32, 32)
layout_mode = 2
texture = ExtResource("1_knk66")
expand_mode = 1
stretch_mode = 5

[node name="Amount" type="Label" parent="HighlightPanel/VBoxContainer/Icon"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -64.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
text = "x0"
horizontal_alignment = 2
vertical_alignment = 2

[node name="Name" type="RichTextLabel" parent="HighlightPanel/VBoxContainer"]
clip_contents = false
layout_mode = 2
mouse_filter = 2
theme_override_fonts/normal_font = ExtResource("3_nm7hh")
theme_override_font_sizes/normal_font_size = 16
bbcode_enabled = true
text = "[center]Static[/center]"
fit_content = true
autowrap_mode = 2

[connection signal="focus_entered" from="." to="." method="_on_focus_entered"]
[connection signal="focus_exited" from="." to="." method="_on_focus_exited"]
[connection signal="gui_input" from="." to="." method="_on_gui_input"]
