From d188711697b76a0ac13b3bba6131aece8ba04a5e Mon Sep 17 00:00:00 2001 From: don-tnowe <67479453+don-tnowe@users.noreply.github.com> Date: Mon, 1 May 2023 10:18:25 +0300 Subject: [PATCH] Remove default icon from cell prefab, fix items example --- addons/resources_spreadsheet_view/typed_cells/resource.tscn | 5 +---- example/Items/items/potion_blue.tres | 4 ++-- example/Items/items/potion_purple.tres | 4 ++-- example/Items/items/potion_red.tres | 4 ++-- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/addons/resources_spreadsheet_view/typed_cells/resource.tscn b/addons/resources_spreadsheet_view/typed_cells/resource.tscn index ee3a7b0..1372d02 100644 --- a/addons/resources_spreadsheet_view/typed_cells/resource.tscn +++ b/addons/resources_spreadsheet_view/typed_cells/resource.tscn @@ -1,6 +1,4 @@ -[gd_scene load_steps=2 format=3 uid="uid://clcndgxaty503"] - -[ext_resource type="Texture2D" uid="uid://c08qavfwqr3k7" path="res://icon.png" id="1"] +[gd_scene format=3 uid="uid://clcndgxaty503"] [node name="Label" type="MarginContainer"] size_flags_vertical = 9 @@ -38,7 +36,6 @@ mouse_filter = 2 [node name="Tex" type="TextureRect" parent="Box"] layout_mode = 2 mouse_filter = 2 -texture = ExtResource("1") expand_mode = 1 stretch_mode = 5 diff --git a/example/Items/items/potion_blue.tres b/example/Items/items/potion_blue.tres index 8628a73..d24afde 100644 --- a/example/Items/items/potion_blue.tres +++ b/example/Items/items/potion_blue.tres @@ -1,4 +1,4 @@ -[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3] +[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://b0l5g2tgwvm3b"] [ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"] [ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"] @@ -15,7 +15,7 @@ max_stack_count = 20 in_inventory_width = 1 in_inventory_height = 2 texture = SubResource("1") -slot_flags = 17 +slot_flags = 4 default_properties = { "back_color": Color(0.67451, 0.270588, 0.972549, 1), "price": { diff --git a/example/Items/items/potion_purple.tres b/example/Items/items/potion_purple.tres index 4562b26..ea78e53 100644 --- a/example/Items/items/potion_purple.tres +++ b/example/Items/items/potion_purple.tres @@ -1,4 +1,4 @@ -[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3] +[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://cbrsfa22sudf5"] [ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"] [ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"] @@ -15,7 +15,7 @@ max_stack_count = 20 in_inventory_width = 1 in_inventory_height = 2 texture = SubResource("1") -slot_flags = 17 +slot_flags = 4 default_properties = { "back_color": Color(0.67451, 0.270588, 0.972549, 1) } diff --git a/example/Items/items/potion_red.tres b/example/Items/items/potion_red.tres index 3046f84..016edef 100644 --- a/example/Items/items/potion_red.tres +++ b/example/Items/items/potion_red.tres @@ -1,4 +1,4 @@ -[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3] +[gd_resource type="Resource" script_class="ItemType" load_steps=4 format=3 uid="uid://crq178t8cp2g7"] [ext_resource type="Texture2D" uid="uid://dwi4ioxeauoc4" path="res://example/Items/item_icons/items.png" id="1"] [ext_resource type="Script" path="res://example/Items/item_type.gd" id="2"] @@ -15,7 +15,7 @@ max_stack_count = 20 in_inventory_width = 1 in_inventory_height = 2 texture = SubResource("1") -slot_flags = 17 +slot_flags = 4 default_properties = { "back_color": Color(0.67451, 0.270588, 0.972549, 1) }