TinyAdventure/ui/test_itemgrid_selection.tscn

39 lines
1.6 KiB
Plaintext
Raw Permalink Normal View History

[gd_scene load_steps=2 format=3 uid="uid://f3li2umbr3ku"]
[ext_resource type="PackedScene" uid="uid://bwui4acukq4x6" path="res://ui/ItemGrid.tscn" id="1_a2u5i"]
[node name="Control" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="CenterContainer" type="CenterContainer" 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 = -304.0
offset_top = -100.0
offset_right = 304.0
offset_bottom = 100.0
grow_horizontal = 2
grow_vertical = 2
[node name="ItemGrid" parent="CenterContainer" instance=ExtResource("1_a2u5i")]
layout_mode = 2
columns = 3
allow_selection = true
rows = 1
[connection signal="gui_input" from="CenterContainer/ItemGrid/ItemSlot" to="CenterContainer/ItemGrid/ItemSlot" method="_on_gui_input"]
[connection signal="mouse_entered" from="CenterContainer/ItemGrid/ItemSlot" to="CenterContainer/ItemGrid/ItemSlot" method="_on_mouse_entered"]
2024-10-01 20:52:40 +02:00
[connection signal="gui_input" from="CenterContainer/ItemGrid/@Panel@18712" to="CenterContainer/ItemGrid/@Panel@18712" method="_on_gui_input"]
[connection signal="mouse_entered" from="CenterContainer/ItemGrid/@Panel@18712" to="CenterContainer/ItemGrid/@Panel@18712" method="_on_mouse_entered"]
[connection signal="gui_input" from="CenterContainer/ItemGrid/@Panel@18713" to="CenterContainer/ItemGrid/@Panel@18713" method="_on_gui_input"]
[connection signal="mouse_entered" from="CenterContainer/ItemGrid/@Panel@18713" to="CenterContainer/ItemGrid/@Panel@18713" method="_on_mouse_entered"]