Make voyages active with dockside orders, crew calls, and ship PA
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user