diff options
| author | tpart <tpart120@proton.me> | 2025-10-08 20:58:55 +0200 |
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-10-08 20:58:55 +0200 |
| commit | 0a356149c77029389e56db9a0fe4238f96998850 (patch) | |
| tree | 37536b5337af81de06526f7f0505e304e69db299 /client | |
| parent | 0a72825f4f839a40e1da4e063cdbd0250f7e716f (diff) | |
| download | hurrycurry-0a356149c77029389e56db9a0fe4238f96998850.tar hurrycurry-0a356149c77029389e56db9a0fe4238f96998850.tar.bz2 hurrycurry-0a356149c77029389e56db9a0fe4238f96998850.tar.zst | |
Add water to noodles in pot; Add pot fill transparent class
Diffstat (limited to 'client')
| -rw-r--r-- | client/map/items/pot.gd | 3 | ||||
| -rw-r--r-- | client/map/items/pot_fill_transparent.gd | 22 | ||||
| -rw-r--r-- | client/map/items/pot_fill_transparent.gd.uid | 1 |
3 files changed, 26 insertions, 0 deletions
diff --git a/client/map/items/pot.gd b/client/map/items/pot.gd index 77c8ebd1..40f18618 100644 --- a/client/map/items/pot.gd +++ b/client/map/items/pot.gd @@ -43,6 +43,9 @@ func add_contents(contents: Array[String]): leek.rotation_degrees = Vector3(-75.5, 0, -25) leek.position = Vector3(.03, .1, .25) base.add_child(leek) + "noodles": + add_child(PotFillTransparent.new(self, Color(0.46, 0.68, 0.73, 0.392))) # water + base.add_child(ItemFactory.produce(i, self)) "cooked-rice": add_child(PotFill.new(self, Color(1.,1.,1.))) "curry": diff --git a/client/map/items/pot_fill_transparent.gd b/client/map/items/pot_fill_transparent.gd new file mode 100644 index 00000000..77848cb6 --- /dev/null +++ b/client/map/items/pot_fill_transparent.gd @@ -0,0 +1,22 @@ +# Hurry Curry! - a game about cooking +# Copyright (C) 2025 Hurry Curry! contributors +# +# 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 PotFillTransparent +extends PotFill + +func _init(owned_by_: Node3D, c: Color): + super(owned_by_, c) + var mat: BaseMaterial3D = fill.get_active_material(0) + mat.transparency = BaseMaterial3D.TRANSPARENCY_ALPHA diff --git a/client/map/items/pot_fill_transparent.gd.uid b/client/map/items/pot_fill_transparent.gd.uid new file mode 100644 index 00000000..863ef626 --- /dev/null +++ b/client/map/items/pot_fill_transparent.gd.uid @@ -0,0 +1 @@ +uid://b7mtr0omy3nx4 |