diff options
Diffstat (limited to 'client/map')
-rw-r--r-- | client/map/items/unknown_item.gd | 2 | ||||
-rw-r--r-- | client/map/items/unknown_item.tscn | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/client/map/items/unknown_item.gd b/client/map/items/unknown_item.gd index 991f6a3e..ec6cab1a 100644 --- a/client/map/items/unknown_item.gd +++ b/client/map/items/unknown_item.gd @@ -18,7 +18,7 @@ extends Item func _init(owned_by_: Node3D, t: String): super(owned_by_) - #add_child(load("res://models/prefabs/map/bag.tscn").instantiate()) + add_child(load("res://map/items/unknown_item.tscn").instantiate()) var label = Label3D.new() label.text = t label.position.y = 0.5 diff --git a/client/map/items/unknown_item.tscn b/client/map/items/unknown_item.tscn new file mode 100644 index 00000000..5e8b317a --- /dev/null +++ b/client/map/items/unknown_item.tscn @@ -0,0 +1,15 @@ +[gd_scene load_steps=3 format=3 uid="uid://cw54drt6oqxpd"] + +[sub_resource type="BoxMesh" id="BoxMesh_e6d7n"] + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_voy47"] +albedo_color = Color(1, 0, 1, 1) +emission_enabled = true +emission = Color(1, 0, 1, 1) + +[node name="UnknownItem" type="Node3D"] + +[node name="MeshInstance3D" type="MeshInstance3D" parent="."] +transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0.2, 0) +mesh = SubResource("BoxMesh_e6d7n") +surface_material_override/0 = SubResource("StandardMaterial3D_voy47") |