feat: sync visual day-night cycle with simulation clock

DayNightCycle now reads time_of_day from SimulationManager group node, falling back to self-tracked elapsed for lookdev scenes. Simulation starts at 06:00 morning (tick 50) by default. TimeDial reads directly from SimulationManager and displays HH:MM format with a 24-hour dial arc. Removed initial_cycle override from JajceLookdev.
This commit is contained in:
2026-07-08 18:04:04 +02:00
parent 4604dc6d5a
commit cab732a977
5 changed files with 47 additions and 40 deletions
+2 -2
View File
@@ -130,11 +130,11 @@ theme_override_colors/font_color = Color(0.96, 0.91, 0.78, 1)
theme_override_font_sizes/font_size = 15
text = "Villager inspector"
[node name="TimeDial" type="Control" parent="UI" node_paths=PackedStringArray("day_night_cycle")]
[node name="TimeDial" type="Control" parent="UI" node_paths=PackedStringArray("simulation_manager")]
layout_mode = 0
offset_left = 880.0
offset_top = 6.0
offset_right = 940.0
offset_bottom = 66.0
script = ExtResource("12_timedial")
day_night_cycle = NodePath("../JajceWorld/DayNightCycle")
simulation_manager = NodePath("../SimulationManager")