Remove jumps line from long range chart and contracts screen to avoid clashes

This commit is contained in:
Kevin Anthoney 2017-01-25 13:16:48 +00:00
parent 9d5ffb47aa
commit da4b3f7361
2 changed files with 10 additions and 9 deletions

View File

@ -1455,13 +1455,12 @@
// Short and Long Range Chart Overrides
"charts-distance" = "Distance: [distance|precision:1] Light Years";
"charts-est-travel-time" = "Estimated Travel Time: [time|precision:1] Hours";
"charts-jumps" = "Jumps: [jumps]";
// Short Range Chart Screen
"short-range-chart-title" = "Short Range Chart";
"short-range-chart-distance" = "[charts-distance]";
"short-range-chart-est-travel-time" = "[charts-est-travel-time]";
"short-range-chart-jumps" = "[charts-jumps]";
"short-range-chart-jumps" = "Jumps: [jumps]";
// Long Range Chart Screen
"long-range-chart-title-d" = "Galactic Chart %d";
@ -1480,7 +1479,6 @@
"long-range-chart-distance" = "[charts-distance]";
"long-range-chart-est-travel-time" = "[charts-est-travel-time]";
"long-range-chart-jumps" = "[charts-jumps]";
"long-range-chart-find-planet-@" = "Find planet: %@";
"long-range-chart-system-unreachable" = "System Unreachable";

View File

@ -2208,13 +2208,16 @@ static OOTextureSprite *NewTextureSpriteWithDescriptor(NSDictionary *descriptor)
{
[self setArray:[NSArray arrayWithObjects:@"", travelDistLine,travelTimeLine,nil] forRow:textRow];
}
if (jumps > 0)
if ([PLAYER guiScreen] == GUI_SCREEN_SHORT_RANGE_CHART)
{
[self setArray:[NSArray arrayWithObjects: @"", OOExpandKey(@"long-range-chart-jumps", jumps), nil] forRow: textRow + 1];
}
else
{
[self setArray:[NSArray arrayWithObjects: nil] forRow: textRow + 1];
if (jumps > 0)
{
[self setArray:[NSArray arrayWithObjects: @"", OOExpandKey(@"short-range-chart-jumps", jumps), nil] forRow: textRow + 1];
}
else
{
[self setArray:[NSArray arrayWithObjects: nil] forRow: textRow + 1];
}
}
[targetName release];