aboutsummaryrefslogtreecommitdiff
path: root/client/map
diff options
context:
space:
mode:
authortpart <tpart120@proton.me>2025-09-21 19:34:45 +0200
committertpart <tpart120@proton.me>2025-09-21 19:34:45 +0200
commita7f70f89b349fd7482a5d9e268f9b60763406e49 (patch)
tree45c58736f58c1cb9a15bf6845da7bd2cd195d3a6 /client/map
parent443c8aab02735f2e9b9c044f44dd88cb92551fa6 (diff)
downloadhurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar
hurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar.bz2
hurrycurry-a7f70f89b349fd7482a5d9e268f9b60763406e49.tar.zst
Redesign character menu background
Diffstat (limited to 'client/map')
-rw-r--r--client/map/kitchen_background.gd1
-rw-r--r--client/map/kitchen_background.tscn18
-rw-r--r--client/map/map.gd7
3 files changed, 6 insertions, 20 deletions
diff --git a/client/map/kitchen_background.gd b/client/map/kitchen_background.gd
index 4b728a94..ff237b85 100644
--- a/client/map/kitchen_background.gd
+++ b/client/map/kitchen_background.gd
@@ -13,6 +13,7 @@
# 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/>.
#
+@tool
extends Node3D
@onready var map: Map = $Map
diff --git a/client/map/kitchen_background.tscn b/client/map/kitchen_background.tscn
index af046095..6263ebbb 100644
--- a/client/map/kitchen_background.tscn
+++ b/client/map/kitchen_background.tscn
@@ -13,23 +13,5 @@ script = ExtResource("1_ppf8f")
[node name="Map" parent="." instance=ExtResource("1_heqla")]
transform = Transform3D(0.866025, 0, 0.5, 0, 1, 0, -0.5, 0, 0.866025, 0, 0, 0)
-[node name="SpotLight3D" type="SpotLight3D" parent="."]
-transform = Transform3D(0.63153476, -0.57124585, 0.52425385, 0.042865384, 0.700843, 0.71202654, -0.7741617, -0.42719722, 0.46709338, 1.79161, 3.07541, 1.58055)
-light_energy = 2.689
-spot_range = 20.159
-spot_angle = 17.9256
-
-[node name="SpotLight3D2" type="SpotLight3D" parent="."]
-transform = Transform3D(0.32456997, 0.109091125, -0.93954957, 0.060483694, 0.9888999, 0.13571544, 0.94392586, -0.100876585, 0.314369, -5.22608, 2.10824, 2.35824)
-light_energy = 2.689
-spot_range = 20.159
-spot_angle = 17.9256
-
-[node name="SpotLight3D3" type="SpotLight3D" parent="."]
-transform = Transform3D(0.11408793, -0.017399698, 0.99331826, 0.061045162, 0.9980801, 0.010471746, -0.9915934, 0.059442576, 0.114931054, 8.10732, 0.437069, 2.35824)
-light_energy = 2.689
-spot_range = 20.159
-spot_angle = 17.9256
-
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_ex25y")
diff --git a/client/map/map.gd b/client/map/map.gd
index 235425a0..7f854c25 100644
--- a/client/map/map.gd
+++ b/client/map/map.gd
@@ -13,6 +13,7 @@
# 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/>.
#
+@tool
class_name Map
extends Node3D
@@ -54,7 +55,8 @@ func clear_tile(pos: Vector2i):
@onready var voxelgi: VoxelGI = $VoxelGI
func _ready():
- Settings.hook_changed("graphics.gi", false, apply_gi_setting)
+ if not Engine.is_editor_hint():
+ Settings.hook_changed("graphics.gi", false, apply_gi_setting)
floor_node.material_override = preload("res://map/tiles/floor_material.tres")
for fm in tile_factory.floor_meshers.values():
add_child(fm.mesh_instance)
@@ -73,7 +75,8 @@ func apply_gi_setting(state):
voxelgi.data = null
func gi_bake():
- if Settings.read("graphics.gi") != "voxelgi": return
+ if not Engine.is_editor_hint():
+ if Settings.read("graphics.gi") != "voxelgi": return
print("Map: Rebaking VoxelGI")
currently_baked = true
gi_bake_blocking()