diff options
-rw-r--r-- | client/map/item_factory.gd | 2 | ||||
-rw-r--r-- | client/map/items/unknown_order.gd | 21 | ||||
-rw-r--r-- | client/map/items/unknown_order.tscn | 43 |
3 files changed, 66 insertions, 0 deletions
diff --git a/client/map/item_factory.gd b/client/map/item_factory.gd index 5f5fd49a..035cade2 100644 --- a/client/map/item_factory.gd +++ b/client/map/item_factory.gd @@ -57,4 +57,6 @@ static func produce(full_name: String, owned_by: Node3D) -> Item: "glass": return Glass.new(owned_by, item.contents) "plate": return Plate.new(owned_by, item.contents) + "unknown-order": return UnknownOrder.new(owned_by) + _: return GenericItem.new(owned_by, full_name) diff --git a/client/map/items/unknown_order.gd b/client/map/items/unknown_order.gd new file mode 100644 index 00000000..9cb472aa --- /dev/null +++ b/client/map/items/unknown_order.gd @@ -0,0 +1,21 @@ +# Hurry Curry! - a game about cooking +# Copyright 2024 tpart +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, version 3 of the License only. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +class_name UnknownOrder +extends Item + +func _init(owned_by_: Node3D): + super(owned_by_) + base.add_child(load("res://map/items/unknown_order.tscn").instantiate()) diff --git a/client/map/items/unknown_order.tscn b/client/map/items/unknown_order.tscn new file mode 100644 index 00000000..ab8b8d66 --- /dev/null +++ b/client/map/items/unknown_order.tscn @@ -0,0 +1,43 @@ +[gd_scene load_steps=8 format=3 uid="uid://dgg7srscxmtmy"] + +[ext_resource type="FontFile" uid="uid://bo4vh5xkpvrh1" path="res://menu/theme/font-sansita-swashed.woff2" id="1_3pq52"] + +[sub_resource type="FontVariation" id="FontVariation_4sjdr"] +base_font = ExtResource("1_3pq52") +variation_opentype = { +2003265652: 700 +} + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0g852"] + +[sub_resource type="TextMesh" id="TextMesh_fnxii"] +material = SubResource("StandardMaterial3D_0g852") +text = "!" +font = SubResource("FontVariation_4sjdr") +depth = 0.025 + +[sub_resource type="FontVariation" id="FontVariation_ia2kw"] +base_font = ExtResource("1_3pq52") +variation_opentype = { +2003265652: 800 +} +variation_embolden = 0.75 + +[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6u718"] +albedo_color = Color(0.890196, 0.509804, 0.258824, 1) + +[sub_resource type="TextMesh" id="TextMesh_2l3fe"] +material = SubResource("StandardMaterial3D_6u718") +text = "!" +font = SubResource("FontVariation_ia2kw") +depth = 0.02 + +[node name="UnknownOrder" type="Node3D"] + +[node name="Mesh" type="MeshInstance3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1.02, 0, 0, 0, 1, 0, 0.0754608, 0) +mesh = SubResource("TextMesh_fnxii") + +[node name="Mesh2" type="MeshInstance3D" parent="."] +transform = Transform3D(1, 0, 0, 0, 1.02, 0, 0, 0, 1, -0.00540888, 0.0716295, 0) +mesh = SubResource("TextMesh_2l3fe") |