use 4.3 NodePath array for slots

godot-4.3
John Montagu, the 4th Earl of Sandvich 2024-01-11 01:25:31 -08:00
parent e651e43005
commit 9efcea7a70
Signed by: sandvich
GPG Key ID: 9A39BE37E602B22D
1 changed files with 2 additions and 1 deletions

View File

@ -89,8 +89,9 @@ layout_mode = 2
theme_override_constants/margin_top = 16
theme_override_constants/margin_right = 16
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" instance=ExtResource("5_mmp18")]
[node name="GridContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main/Top/Right" node_paths=PackedStringArray("_slots") instance=ExtResource("5_mmp18")]
layout_mode = 2
_slots = [NodePath("InventorySlot"), NodePath("InventorySlot2"), NodePath("InventorySlot3")]
[node name="Bottom" type="HBoxContainer" parent="SubViewportContainer/UIViewport/MainUILayer/Main"]
layout_mode = 1