Add port-specific shore excursions and deck stack
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Soundings
|
||||
root = document.rootVisualElement;
|
||||
root.style.flexGrow = 1;
|
||||
root.style.unityFontDefinition = interfaceFont;
|
||||
foreach (string sheet in new[] { "Soundings", "Shipwork", "Ledger", "FirstVoyageGuide", "Passage", "ServiceControls", "FleetOverview", "Careers" })
|
||||
foreach (string sheet in new[] { "Soundings", "Shipwork", "Ledger", "FirstVoyageGuide", "Passage", "ServiceControls", "FleetOverview", "Careers", "ShoreExcursions" })
|
||||
{
|
||||
StyleSheet stylesheet = Resources.Load<StyleSheet>(sheet);
|
||||
if (stylesheet != null)
|
||||
@@ -77,6 +77,7 @@ namespace Soundings
|
||||
|
||||
private void StartCompany(bool financed, string name = null)
|
||||
{
|
||||
ResetShorePlanning();
|
||||
ResetFleetPassages();
|
||||
company = Company.Start(financed);
|
||||
careerId = Guid.NewGuid().ToString("N");
|
||||
@@ -143,6 +144,7 @@ namespace Soundings
|
||||
{
|
||||
if (underway != null || paused)
|
||||
return;
|
||||
ResetShorePlanning();
|
||||
page = next;
|
||||
fleetOpen = shipActionsOpen = false;
|
||||
if (destination < 0)
|
||||
@@ -183,6 +185,8 @@ namespace Soundings
|
||||
{
|
||||
RefreshGuide();
|
||||
DrawShell();
|
||||
if (ShorePlanningOpen)
|
||||
DrawShorePlanning(root);
|
||||
if (paused)
|
||||
DrawPause();
|
||||
}
|
||||
@@ -321,7 +325,11 @@ namespace Soundings
|
||||
fleet.tooltip = "Fleet overview (F2)";
|
||||
hudLeft.Add(fleet);
|
||||
if (underway == null)
|
||||
{
|
||||
DrawHotbar(shell).SetEnabled(!paused && !fleetOpen);
|
||||
if (!paused && !fleetOpen)
|
||||
DrawBerthExcursions(shell);
|
||||
}
|
||||
|
||||
if (!paused && !fleetOpen)
|
||||
DrawGuide(shell);
|
||||
|
||||
Reference in New Issue
Block a user