Add manual helm, grounded interiors, and taller ship classes

This commit is contained in:
josh
2026-11-27 22:44:09 -05:00
parent 33cdd6dfa7
commit 7951e1c878
29 changed files with 1745 additions and 429 deletions

View File

@@ -110,11 +110,13 @@ namespace Soundings
var camera = Add(rail, "voyage-camera");
AddText(camera, "CAMERA", "voyage-caption");
AddText(camera, passageBridge || passageExploring || passageServiceArea >= 0
? "WASD to walk · Right-drag to look"
: "Wheel to zoom · Hold RMB + WASD / Q E to fly", "voyage-camera-help");
string cameraHelp = passageBridge && passageHelm.Manual ? "Right-drag to look · Q / E to turn"
: passageBridge || passageExploring ? "WASD to walk · Q / E to turn"
: "Drag or Q / E to orbit · Wheel to zoom";
AddText(camera, cameraHelp, "voyage-camera-help");
rail.Add(Action("Skip to arrival", FinishVoyage, "voyage-view-button voyage-skip", "dock-now"));
UpdatePassageUi(Mathf.Clamp01(passageElapsed / PassageDuration(underway)));
DrawHelmControls(overlay);
UpdatePassageUi(passageHelm.Progress);
}
private void DrawPassageBusiness(VisualElement left)
@@ -195,9 +197,10 @@ namespace Soundings
passageProgress.style.width = Length.Percent(100 * progress);
renderedPassageProgress = progress;
}
int miles = Mathf.RoundToInt(underway.Miles * (1 - progress));
int seconds = Mathf.CeilToInt((1 - progress) * PassageDuration(underway) / (passageSpeed * livePassage.SpeedFactor));
string remaining = $"{miles:N0} nm remaining · {seconds / 60}:{seconds % 60:00} to arrival";
int miles = Mathf.RoundToInt(underway.Miles * passageHelm.RemainingSeconds / PassageDuration(underway));
int seconds = Mathf.CeilToInt(passageHelm.RemainingSeconds / (passageSpeed * livePassage.SpeedFactor));
string status = passageHelm.PropulsionStopped ? "Engines stopped" : $"{seconds / 60}:{seconds % 60:00} estimated";
string remaining = $"{miles:N0} nm remaining · {status}";
if (passageRemaining.text != remaining)
passageRemaining.text = remaining;
if (Time.unscaledTime >= nextPassageReadout || livePassage.CurrentEvent?.Title != passageEventTitle)