Make voyages active with dockside orders, crew calls, and ship PA

This commit is contained in:
josh
2026-11-27 23:14:38 -05:00
parent 7951e1c878
commit cc7620c431
71 changed files with 2723 additions and 233 deletions

View File

@@ -118,7 +118,7 @@ namespace Soundings
var contents = Add(folio, "chart-folio-content");
AddText(contents, "LOOK UP PORT", "chart-paper-kicker");
AddChartDirectory(contents);
DrawPortFolio(contents);
DrawPortFolio(board, contents);
}
private static void ChartKey(VisualElement legend, string name, string color)
@@ -145,7 +145,7 @@ namespace Soundings
parent.Add(selector);
}
private void DrawPortFolio(VisualElement parent)
private void DrawPortFolio(VisualElement board, VisualElement parent)
{
Ship ship = Ship;
int selected = inspectedPort;
@@ -160,7 +160,7 @@ namespace Soundings
if (quote != null && permitted && eligible)
{
DrawVoyageFolio(parent, ship, quote);
DrawVoyageFolio(board, parent, ship, quote);
return;
}
@@ -173,6 +173,7 @@ namespace Soundings
ChartLine(parent, $"From {Market.Ports[ship.Port].Name}", $"{quote.Miles:N0} nm");
if (berth)
{
ChartLine(parent, "Provisions at this berth", $"{FoodUnitPrice(selected)} / portion");
DrawChartBunkering(parent, ship);
return;
}