aboutsummaryrefslogtreecommitdiff
path: root/client/map/tiles/screen
diff options
context:
space:
mode:
Diffstat (limited to 'client/map/tiles/screen')
-rw-r--r--client/map/tiles/screen/screen.gd24
-rw-r--r--client/map/tiles/screen/screen.gd.uid1
-rw-r--r--client/map/tiles/screen/screen.res.deprenbin0 -> 7450 bytes
-rw-r--r--client/map/tiles/screen/screen.tscn36
-rw-r--r--client/map/tiles/screen/screen_base.resbin0 -> 14767 bytes
-rw-r--r--client/map/tiles/screen/screen_display.resbin0 -> 5761 bytes
-rw-r--r--client/map/tiles/screen/screen_model.gd25
-rw-r--r--client/map/tiles/screen/screen_model.gd.uid1
8 files changed, 87 insertions, 0 deletions
diff --git a/client/map/tiles/screen/screen.gd b/client/map/tiles/screen/screen.gd
new file mode 100644
index 00000000..41667830
--- /dev/null
+++ b/client/map/tiles/screen/screen.gd
@@ -0,0 +1,24 @@
+# Hurry Curry! - a game about cooking
+# Copyright (C) 2026 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 Screen
+extends Tile
+
+func _init(ctx: TileFactory.TileCC):
+ super(ctx)
+ var screen_model: ScreenModel = load("res://map/tiles/screen/screen.tscn").instantiate()
+ base.add_child(screen_model)
+ screen_model.set_server_context(ctx.server_context)
+ \ No newline at end of file
diff --git a/client/map/tiles/screen/screen.gd.uid b/client/map/tiles/screen/screen.gd.uid
new file mode 100644
index 00000000..c55416cb
--- /dev/null
+++ b/client/map/tiles/screen/screen.gd.uid
@@ -0,0 +1 @@
+uid://dodq5s5bpfr3c
diff --git a/client/map/tiles/screen/screen.res.depren b/client/map/tiles/screen/screen.res.depren
new file mode 100644
index 00000000..365a3c86
--- /dev/null
+++ b/client/map/tiles/screen/screen.res.depren
Binary files differ
diff --git a/client/map/tiles/screen/screen.tscn b/client/map/tiles/screen/screen.tscn
new file mode 100644
index 00000000..a1f88294
--- /dev/null
+++ b/client/map/tiles/screen/screen.tscn
@@ -0,0 +1,36 @@
+[gd_scene format=3 uid="uid://vqe0wrt0ddq"]
+
+[ext_resource type="ArrayMesh" uid="uid://g6nwwhptmmmd" path="res://map/tiles/screen/screen_display.res" id="1_d1utq"]
+[ext_resource type="Script" uid="uid://cye7akcsp46cv" path="res://map/tiles/screen/screen_model.gd" id="1_fabw7"]
+[ext_resource type="ArrayMesh" uid="uid://nsmq1ko2woad" path="res://map/tiles/screen/screen_base.res" id="1_mm46a"]
+[ext_resource type="PackedScene" uid="uid://d22cslgao5jd4" path="res://map/tiles/floor.tscn" id="3_dmy1m"]
+[ext_resource type="PackedScene" uid="uid://dgtdfctc0x78v" path="res://gui/menus/screen_info.tscn" id="4_ebgc8"]
+
+[node name="Screen" type="Node3D" unique_id=1614533170]
+script = ExtResource("1_fabw7")
+
+[node name="Base" type="MeshInstance3D" parent="." unique_id=597805735]
+transform = Transform3D(2, 0, 0, 0, 0, -2, 0, 2, 0, 0, 0, 0)
+mesh = ExtResource("1_mm46a")
+
+[node name="Display" type="MeshInstance3D" parent="." unique_id=1268321578]
+transform = Transform3D(3, 0, 0, 0, 0, -3, 0, 3, 0, -0.004130006, 2.244278, 0.3346749)
+mesh = ExtResource("1_d1utq")
+
+[node name="ScreenViewport" type="SubViewport" parent="Display" unique_id=1731785275]
+disable_3d = true
+size = Vector2i(834, 480)
+
+[node name="ScreenInfo" parent="Display/ScreenViewport" unique_id=907327052 instance=ExtResource("4_ebgc8")]
+script = null
+
+[node name="Floor" parent="." unique_id=527188940 instance=ExtResource("3_dmy1m")]
+transform = Transform3D(12.117, 0, 0, 0, 12.117, 0, 0, 0, 12.117, 0, 0, 0)
+visible = false
+
+[node name="OmniLight3D" type="SpotLight3D" parent="." unique_id=1339528342]
+transform = Transform3D(1, 0, 0, 0, -0.9653816, 0.26084167, 0, -0.26084167, -0.9653816, 0, 2.1330748, 0.46361876)
+light_color = Color(0.3137255, 0.32941177, 0.76862746, 1)
+light_energy = 7.0
+spot_range = 3.25
+spot_angle = 75.0
diff --git a/client/map/tiles/screen/screen_base.res b/client/map/tiles/screen/screen_base.res
new file mode 100644
index 00000000..885becfe
--- /dev/null
+++ b/client/map/tiles/screen/screen_base.res
Binary files differ
diff --git a/client/map/tiles/screen/screen_display.res b/client/map/tiles/screen/screen_display.res
new file mode 100644
index 00000000..f7e8ee59
--- /dev/null
+++ b/client/map/tiles/screen/screen_display.res
Binary files differ
diff --git a/client/map/tiles/screen/screen_model.gd b/client/map/tiles/screen/screen_model.gd
new file mode 100644
index 00000000..9f63fc3f
--- /dev/null
+++ b/client/map/tiles/screen/screen_model.gd
@@ -0,0 +1,25 @@
+# Hurry Curry! - a game about cooking
+# Copyright (C) 2026 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/>.
+#
+extends Node3D
+class_name ScreenModel
+
+func set_server_context(server_context: Game.ServerContext) -> void:
+ if server_context.motd == null:
+ $Display/ScreenViewport/ScreenInfo/MarginContainer/VBoxContainer/RichTextLabel.text = "[font_size=48][b]%s[/b]" % server_context.name
+ else:
+ $Display/ScreenViewport/ScreenInfo/MarginContainer/VBoxContainer/RichTextLabel.text = """[font_size=48][b]%s[/b]
+
+%s[/font_size]""" % [server_context.name, server_context.motd]
diff --git a/client/map/tiles/screen/screen_model.gd.uid b/client/map/tiles/screen/screen_model.gd.uid
new file mode 100644
index 00000000..6a2a81b0
--- /dev/null
+++ b/client/map/tiles/screen/screen_model.gd.uid
@@ -0,0 +1 @@
+uid://cye7akcsp46cv