Fix lab cutscene control, landing steering, clipping and objective timeout

This commit is contained in:
UnixNight committed 2026-10-25 01:18:08 -04:00
1 parent 976e677019
commit ca08c468ba
33 files changed
+871 -64

No files matched your search

@@ -5,5 +5,6 @@
<Compile Include="../../src/GamePort/Assets/Mesh.cs"/>
<Compile Include="../../src/GamePort/Assets/PngImage.cs"/>
<Compile Include="../../src/GamePort/Application/SceneHud.cs"/>
<Compile Include="../../src/GamePort/Game/ObjectivePanel.cs"/>
</ItemGroup>
</Project>
+15
View File
@@ -2,6 +2,7 @@ using System.Numerics;
using System.Text.Json;
using GamePort.Assets;
using GamePort.Application;
using GamePort.Game;
var temp = Path.Combine(Path.GetTempPath(), "neutron-hud-" + Guid.NewGuid());
Directory.CreateDirectory(temp);
@@ -35,6 +36,20 @@ try
Near(final.Vertices[1].Position, new(.2f, 2*380f/480-1, 0), "Expanded source HUD offset");
hud.Update(final, 0, true, false);
Check(final.Draws.Skip(1).All(d => !d.Visible), "No invented objective0 image");
var panel = new ObjectivePanel();
panel.Select(1); panel.Step(0);
void PresentPanel() => hud.Update(final, panel.CurrentObjective, panel.PadVisible, false, panel.YOffset, panel.ContentVisible);
PresentPanel();
Check(final.Draws.Skip(1).Count(d => d.Visible) == 1 && final.Draws[1].Visible,
"Entering objective draws only the moving pad");
panel.Step(1); PresentPanel();
Check(final.Draws.Skip(1).Count(d => d.Visible) == 3, "Stationary objective draws pad, text and digit");
panel.Step(6.2f); PresentPanel();
Check(final.Draws.Skip(1).Count(d => d.Visible) == 1, "Exit hides content before pad slides away");
panel.Step(2); PresentPanel();
Check(final.Draws.Skip(1).All(d => !d.Visible), "Timed-out objective has no remaining overlay draw");
panel.Key(true); panel.Step(1); PresentPanel();
Check(final.Draws.Skip(1).Count(d => d.Visible) == 3, "O reopens timed-out panel through the timer");
Reject(() => hud.Update(source, 1, true, false), "Missing final ranges");
Reject(() => hud.Update(final, 1, true, false, float.NaN), "Nonfinite HUD offset");
File.WriteAllText(path, Manifest(entries.Select(e => new { e.id, width=e.id==120 ? 0 : e.width, e.height, e.path })));