Skip to content

Commit

Permalink
Updating the scene files with Godot 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-kish committed Mar 5, 2023
1 parent c7ba613 commit 1a3323b
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 22 deletions.
1 change: 1 addition & 0 deletions addons/gloot/editor/choice_filter.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ text = "Filter:"
[node name="LineEdit" type="LineEdit" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
clear_button_enabled = true

[node name="ItemList" type="ItemList" parent="."]
layout_mode = 2
Expand Down
4 changes: 2 additions & 2 deletions addons/gloot/editor/choice_filter_test.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ layout_mode = 0
anchors_preset = 0
anchor_right = 0.0
anchor_bottom = 0.0
grow_horizontal = 2
grow_vertical = 2
offset_right = 217.0
offset_bottom = 267.0
pick_text = "Pick"
values = Array[String](["foo", "bar", "baz"])
12 changes: 6 additions & 6 deletions examples/inventory_grid_ex_transfer.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=19 format=3 uid="uid://dkfn8qojbtud4"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Resource" uid="uid://ddrmqwl3guset" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory_grid.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_grid_ex.gd" id="3"]
[ext_resource type="Script" path="res://examples/inventory_grid_transfer.gd" id="4"]
Expand Down Expand Up @@ -152,18 +152,18 @@ script = ExtResource("2")
size = Vector2(5, 5)
item_protoset = ExtResource("1")

[node name="L_item_2x2" type="Node" parent="InventoryGridLeft"]
[node name="L_item_2x2_2" type="Node" parent="InventoryGridLeft"]
script = ExtResource("8")
protoset = ExtResource("1")
prototype_id = "item_2x2"
properties = {
"grid_position": Vector2(0, 2)
}

[node name="L_item_2x2_2" type="Node" parent="InventoryGridLeft"]
[node name="item_2x2" type="Node" parent="InventoryGridLeft"]
script = ExtResource("8")
protoset = ExtResource("1")
prototype_id = "item_2x2"
properties = {
"grid_position": Vector2(0, 2)
}

[node name="InventoryGridRight" type="Node" parent="."]
script = ExtResource("2")
Expand Down
2 changes: 1 addition & 1 deletion examples/inventory_grid_transfer.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=9 format=3 uid="uid://jopigw4xplp4"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Resource" uid="uid://ddrmqwl3guset" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory_grid.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_grid.gd" id="3"]
[ext_resource type="Script" path="res://examples/inventory_grid_transfer.gd" id="4"]
Expand Down
10 changes: 5 additions & 5 deletions examples/inventory_stacked_transfer.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_stacked.gd" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory_stacked.gd" id="2"]
[ext_resource type="Resource" path="res://tests/data/item_definitions_stack.tres" id="3"]
[ext_resource type="Resource" uid="uid://c1fip2r65xx12" path="res://tests/data/item_definitions_stack.tres" id="3"]
[ext_resource type="Script" path="res://examples/inventory_stacked_transfer.gd" id="4"]
[ext_resource type="Texture2D" uid="uid://bju6hohmp15ua" path="res://images/item_key.png" id="5"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_item_slot.gd" id="6"]
Expand Down Expand Up @@ -107,8 +107,8 @@ protoset = ExtResource("3")
prototype_id = "stackable_item"

[node name="limited_stackable_item" type="Node" parent="InventoryStackedLeft"]
script = ExtResource( 8 )
protoset = ExtResource( 3 )
script = ExtResource("8")
protoset = ExtResource("3")
prototype_id = "limited_stackable_item"
properties = {
"stack_size": 3.0
Expand All @@ -135,8 +135,8 @@ protoset = ExtResource("3")
prototype_id = "stackable_item"

[node name="limited_stackable_item" type="Node" parent="InventoryStackedRight"]
script = ExtResource( 8 )
protoset = ExtResource( 3 )
script = ExtResource("8")
protoset = ExtResource("3")
prototype_id = "limited_stackable_item"
properties = {
"stack_size": 4.0
Expand Down
2 changes: 1 addition & 1 deletion examples/inventory_transfer.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory.gd" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory.gd" id="2"]
[ext_resource type="Resource" path="res://tests/data/item_definitions_basic.tres" id="3"]
[ext_resource type="Resource" uid="uid://nnxjxxu47mtj" path="res://tests/data/item_definitions_basic.tres" id="3"]
[ext_resource type="Script" path="res://examples/inventory_transfer.gd" id="4"]
[ext_resource type="Texture2D" uid="uid://bju6hohmp15ua" path="res://images/item_key.png" id="5"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_item_slot.gd" id="6"]
Expand Down
2 changes: 1 addition & 1 deletion tests/ctrl_tests/test_ctrl_inventory.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=6 format=3 uid="uid://dnmcyf6p4gtgp"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_basic.tres" id="1"]
[ext_resource type="Resource" uid="uid://nnxjxxu47mtj" path="res://tests/data/item_definitions_basic.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory.gd" id="3"]
[ext_resource type="Texture2D" uid="uid://bju6hohmp15ua" path="res://images/item_key.png" id="4"]
Expand Down
3 changes: 2 additions & 1 deletion tests/ctrl_tests/test_ctrl_inventory_grid.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=6 format=3 uid="uid://i33jyh87gocu"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Resource" uid="uid://ddrmqwl3guset" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_grid.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/inventory_grid.gd" id="3"]
[ext_resource type="Texture2D" uid="uid://b2hkcwwq10cut" path="res://icon.png" id="4"]
Expand All @@ -15,6 +15,7 @@ grow_horizontal = 2
grow_vertical = 2

[node name="CtrlInventoryGrid" type="Container" parent="."]
custom_minimum_size = Vector2(160, 160)
layout_mode = 0
offset_right = 160.0
offset_bottom = 160.0
Expand Down
3 changes: 1 addition & 2 deletions tests/ctrl_tests/test_ctrl_inventory_grid_ex.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=13 format=3 uid="uid://c6qdqm1i436gg"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Resource" uid="uid://ddrmqwl3guset" path="res://tests/data/item_definitions_grid.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_grid_ex.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/inventory_grid.gd" id="3"]
[ext_resource type="Texture2D" uid="uid://b2hkcwwq10cut" path="res://icon.png" id="4"]
Expand Down Expand Up @@ -62,7 +62,6 @@ item_protoset = ExtResource("1")
script = ExtResource("5")
protoset = ExtResource("1")
prototype_id = "item_2x2"
properties = {}

[node name="item_1x1" type="Node" parent="InventoryGrid"]
script = ExtResource("5")
Expand Down
2 changes: 1 addition & 1 deletion tests/ctrl_tests/test_ctrl_inventory_stacked.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[ext_resource type="Script" path="res://addons/gloot/inventory_stacked.gd" id="1"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_inventory_stacked.gd" id="2"]
[ext_resource type="Resource" path="res://tests/data/item_definitions_stack.tres" id="3"]
[ext_resource type="Resource" uid="uid://c1fip2r65xx12" path="res://tests/data/item_definitions_stack.tres" id="3"]
[ext_resource type="Texture2D" uid="uid://bju6hohmp15ua" path="res://images/item_key.png" id="4"]
[ext_resource type="Script" path="res://addons/gloot/inventory_item.gd" id="5"]

Expand Down
5 changes: 4 additions & 1 deletion tests/ctrl_tests/test_ctrl_item_slot.tscn
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[gd_scene load_steps=7 format=3 uid="uid://cfad61445qg3a"]

[ext_resource type="Resource" path="res://tests/data/item_definitions_basic.tres" id="1"]
[ext_resource type="Resource" uid="uid://nnxjxxu47mtj" path="res://tests/data/item_definitions_basic.tres" id="1"]
[ext_resource type="Script" path="res://addons/gloot/inventory.gd" id="2"]
[ext_resource type="Script" path="res://addons/gloot/ctrl_item_slot.gd" id="3"]
[ext_resource type="Script" path="res://addons/gloot/item_slot.gd" id="4"]
Expand All @@ -12,8 +12,11 @@ layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2

[node name="CtrlItemSlot" type="HBoxContainer" parent="."]
layout_mode = 0
offset_right = 4.0
offset_bottom = 14.0
script = ExtResource("3")
Expand Down
2 changes: 1 addition & 1 deletion tests/gloot_test.tscn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=2]
[gd_scene load_steps=8 format=3 uid="uid://6ij3qlnr0qr3"]

[ext_resource type="Script" path="res://tests/item_definitions_test.gd" id="2"]
[ext_resource type="Script" path="res://tests/inventory_stacked_tests.gd" id="3"]
Expand Down

0 comments on commit 1a3323b

Please sign in to comment.