TinyAdventure/ui/item_slot.tscn

102 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=5 format=3 uid="uid://dp3fi0g53qrt2"]
2024-07-09 22:33:38 +02:00
[ext_resource type="Script" path="res://ui/item_slot.gd" id="1_7v5l8"]
[ext_resource type="Texture2D" uid="uid://dc0tcpogj8sbt" path="res://icon.svg" id="2_l5duv"]
2024-07-09 22:33:38 +02:00
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vadli"]
bg_color = Color(0.6, 0.6, 0.6, 0)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.60933, 0.60933, 0.60933, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
expand_margin_left = 3.0
expand_margin_top = 3.0
expand_margin_right = 3.0
expand_margin_bottom = 3.0
anti_aliasing = false
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_8jts7"]
bg_color = Color(0.6, 0.6, 0.6, 0)
border_width_left = 4
border_width_top = 4
border_width_right = 4
border_width_bottom = 4
border_color = Color(0.787759, 0.787759, 0.787758, 1)
corner_radius_top_left = 8
corner_radius_top_right = 8
corner_radius_bottom_right = 8
corner_radius_bottom_left = 8
expand_margin_left = 3.0
expand_margin_top = 3.0
expand_margin_right = 3.0
expand_margin_bottom = 3.0
anti_aliasing = false
[node name="ItemSlot" type="Panel"]
2024-07-12 11:59:33 +02:00
custom_minimum_size = Vector2(64, 64)
2024-07-09 22:33:38 +02:00
script = ExtResource("1_7v5l8")
[node name="HighlightPanel" type="Panel" parent="."]
unique_name_in_owner = true
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_vadli")
[node name="SelectPanel" type="Panel" parent="."]
unique_name_in_owner = true
visible = false
z_index = 1
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_8jts7")
2024-07-09 22:33:38 +02:00
[node name="TextureRect" type="TextureRect" parent="."]
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 = -32.0
offset_top = -32.0
offset_right = 32.0
offset_bottom = 32.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("2_l5duv")
2024-07-12 11:59:33 +02:00
expand_mode = 3
[node name="CountLabel" type="Label" parent="TextureRect"]
unique_name_in_owner = true
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -10.0
offset_top = -23.0
grow_horizontal = 0
grow_vertical = 0
size_flags_horizontal = 8
size_flags_vertical = 8
text = "?"
[connection signal="gui_input" from="." to="." method="_on_gui_input"]
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]