Remove default icon from cell prefab, fix items example

This commit is contained in:
don-tnowe 2023-05-01 10:18:25 +03:00
parent 95233c7303
commit d188711697
4 changed files with 7 additions and 10 deletions

View File

@ -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

View File

@ -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": {

View File

@ -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)
}

View File

@ -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)
}