Add multi-stop voyages, a live chart, and named port announcements
This commit is contained in:
@@ -69,6 +69,9 @@ namespace Soundings
|
||||
controls.Add(Action("Bridge", ViewPassageBridge, PassageViewClass(passageBridge), "passage-bridge"));
|
||||
controls.Add(Action("Explore", ExplorePassageDeck, PassageViewClass(passageExploring && passageServiceArea < 0), "passage-explore"));
|
||||
controls.Add(Action("Service deck", () => ExploreServiceArea(0), PassageViewClass(passageServiceArea >= 0), "passage-service"));
|
||||
Button map = Action("Voyage map", ToggleVoyageMap, PassageViewClass(voyageMapOpen), "voyage-map-toggle");
|
||||
map.tooltip = "Show or close the live voyage map (M)";
|
||||
controls.Add(map);
|
||||
controls.Add(Action("Reset camera", () =>
|
||||
{
|
||||
if (passageBridge)
|
||||
@@ -90,7 +93,8 @@ namespace Soundings
|
||||
_ => "Calm seas"
|
||||
};
|
||||
var routeContext = Add(route, "voyage-route-context");
|
||||
AddText(routeContext, $"UNDERWAY / {underway.ShipName.ToUpperInvariant()}", "voyage-caption");
|
||||
string leg = Ship.Itinerary is { HasNext: true } itinerary ? $"LEG {itinerary.CompletedStops + 1} OF {itinerary.TotalStops}" : "UNDERWAY";
|
||||
AddText(routeContext, $"{leg} / {underway.ShipName.ToUpperInvariant()}", "voyage-caption");
|
||||
AddText(routeContext, sea, underway.Weather == WeatherCondition.Storm
|
||||
? "voyage-conditions voyage-conditions-warning" : "voyage-conditions");
|
||||
AddDisplay(route, $"{Market.Ports[underway.Origin].Name} → {Market.Ports[underway.Destination].Name}", "voyage-route-name");
|
||||
@@ -120,8 +124,9 @@ namespace Soundings
|
||||
AddText(camera, cameraHelp, "voyage-camera-help");
|
||||
rail.Add(Action("Skip to arrival", FinishVoyage, "voyage-view-button voyage-skip", "dock-now"));
|
||||
DrawHelmControls(overlay);
|
||||
DrawAnnouncement(overlay);
|
||||
DrawStationInteractions(overlay);
|
||||
DrawVoyageMap(overlay);
|
||||
DrawAnnouncement(overlay);
|
||||
UpdatePassageUi(passageHelm.Progress);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user