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

+3 -2
View File
@@ -72,7 +72,7 @@ public sealed class SceneHud
/// <summary>Writes the final merged buffer, including when later visual composers copied these vertices.</summary>
public void Update(Mesh destination, int currentObjective, bool objectivesVisible, bool practiceVisible,
float objectiveYOffset = -69)
float objectiveYOffset = -69, bool objectiveContentVisible = true)
{
if (!float.IsFinite(objectiveYOffset) || objectiveYOffset < -480 || objectiveYOffset > 480)
throw new ArgumentOutOfRangeException(nameof(objectiveYOffset));
@@ -83,7 +83,8 @@ public sealed class SceneHud
var draw = destination.Draws.FirstOrDefault(d => d.FirstIndex == quad.FirstIndex && d.ScreenSpace
&& d.IndexCount == 6) ?? throw new ArgumentException("Destination omits HUD draws", nameof(destination));
draw.Visible = quad.Canvas == 169 ? practiceVisible : objectivesVisible && currentObjective is >= 1 and <= 3
&& (quad.Canvas == 156 || quad.Canvas == 119 + currentObjective || quad.Canvas == 82 + currentObjective);
&& (quad.Canvas == 156 || objectiveContentVisible
&& (quad.Canvas == 119 + currentObjective || quad.Canvas == 82 + currentObjective));
var digit = quad.Canvas is >= 83 and <= 85;
var x = quad.Canvas == 169 ? 210f : digit ? 393f : 384f;
var y = quad.Canvas == 169 ? 210f : (quad.Canvas == 156 ? 380f : digit ? 450f : 448f) + objectiveYOffset;