Make Soundings voyages playable with ship operations and guided tips
This commit is contained in:
@@ -10,6 +10,7 @@ namespace Soundings
|
||||
{
|
||||
PortSpec origin = Market.Ports[quote.Origin];
|
||||
AddText(folio, $"DEPARTURE FROM {origin.Name.ToUpperInvariant()}", "chart-paper-kicker chart-paper-section");
|
||||
DrawWeatherPicker(folio, quote);
|
||||
var passage = Add(folio, "chart-passage");
|
||||
AddText(passage, $"{quote.Miles:N0} nm · {quote.Days} days", "chart-passage-distance");
|
||||
AddText(passage, $"{quote.Guests} / {quote.Capacity} guests", "chart-passage-guests");
|
||||
@@ -28,7 +29,10 @@ namespace Soundings
|
||||
if (!string.IsNullOrEmpty(blocker))
|
||||
AddText(folio, blocker, "chart-paper-note chart-departure-blocker");
|
||||
else
|
||||
AddText(folio, "Cleared for departure", "chart-cleared");
|
||||
{
|
||||
int seconds = Mathf.RoundToInt(PassageDuration(quote));
|
||||
AddText(folio, $"Cleared for departure · {seconds / 60}m {seconds % 60:00}s at 1×", "chart-cleared");
|
||||
}
|
||||
Button launch = Action("Cast off →", () => BeginVoyage(quote), "chart-ink-button chart-wide-button chart-cast-off", "dispatch");
|
||||
launch.SetEnabled(blocker == null);
|
||||
folio.Add(launch);
|
||||
|
||||
Reference in New Issue
Block a user