- bugfix for bug #017176: Background/overlay interference. Instead of the generic mission_overlay key we now have two keys: mission_overlay_with_title & mission_overlay_no_title, to allow overlays designed for the two different screen layouts.

git-svn-id: http://svn.berlios.de/svnroot/repos/oolite-linux/trunk@3420 127b21dd-08f5-0310-b4b7-95ae10353056
This commit is contained in:
Marc 2010-05-27 22:39:25 +00:00
parent fe17da1d83
commit 89f0b8a4b2
2 changed files with 20 additions and 18 deletions

View File

@ -9,23 +9,23 @@
intro = "intro.png"; // background for the ships at game start
status = "status.png";
status_docked = "status-docked.png"; // if not defined, same as status
status_in_flight = "status-in-flight.png"; // if not defined, same as status
status_red_alert = "status-red-alert.png"; // if not defined, same as status
status_in_flight = "status-in-flight.png"; // if not defined, same as status
status_red_alert = "status-red-alert.png"; // if not defined, same as status
report = "report.png"; // if not defined, same as status_docked
manifest = "manifest.png";
equip_ship = "equip-ship.png";
mount_weapon = "mount-weapon.png"; // if not defined, same as equip_ship
mount_weapon = "mount-weapon.png"; // if not defined, same as equip_ship
shipyard = "shipyard.png";
long_range_chart1 = "long-range-chart1.png"; // if not defined, same as long_range_chart
long_range_chart2 = "long-range-chart2.png"; // if not defined, same as long_range_chart
long_range_chart3 = "long-range-chart3.png"; // if not defined, same as long_range_chart
long_range_chart4 = "long-range-chart4.png"; // if not defined, same as long_range_chart
long_range_chart5 = "long-range-chart5.png"; // if not defined, same as long_range_chart
long_range_chart6 = "long-range-chart6.png"; // if not defined, same as long_range_chart
long_range_chart7 = "long-range-chart7.png"; // if not defined, same as long_range_chart
long_range_chart8 = "long-range-chart8.png"; // if not defined, same as long_range_chart
long_range_chart1 = "long-range-chart1.png"; // if not defined, same as long_range_chart
long_range_chart2 = "long-range-chart2.png"; // if not defined, same as long_range_chart
long_range_chart3 = "long-range-chart3.png"; // if not defined, same as long_range_chart
long_range_chart4 = "long-range-chart4.png"; // if not defined, same as long_range_chart
long_range_chart5 = "long-range-chart5.png"; // if not defined, same as long_range_chart
long_range_chart6 = "long-range-chart6.png"; // if not defined, same as long_range_chart
long_range_chart7 = "long-range-chart7.png"; // if not defined, same as long_range_chart
long_range_chart8 = "long-range-chart8.png"; // if not defined, same as long_range_chart
system_data = "system-data.png";
@ -35,16 +35,17 @@
settings = "settings.png"; // game options / settings
load_save = "load-save.png"; // load / save game screens
mission = "mission.png"; // default mission background, overridden by mission's background parameter.
mission = "mission.png"; // default mission background, overridden by mission's background parameter.
// Use overlays to add extra info / graphic elements to the screen.
mission_overlay = "mission-overlay.png"; // default mission overlay, overridden by mission's overlay parameter.
mission_overlay_with_title = "mission-overlay1.png"; // generic mission overlay, used when there is a mission tile. Overridden by mission's overlay parameter.
mission_overlay_no_title = "mission-overlay2.png"; // overlay used when mission title is a blank string. Overridden by mission's overlay parameter.
overlay = "overlay.png"; // in-flight overlay
docked_overlay = "docked-overlay.png";
paused_overlay = "paused-overlay.png"; // in-flight and paused
paused_docked_overlay = "paused-docked-overlay.png";
overlay = "overlay.png"; // in-flight overlay
docked_overlay = "docked-overlay.png";
paused_overlay = "paused-overlay.png"; // in-flight and paused
paused_docked_overlay = "paused-docked-overlay.png";
*/
}

View File

@ -2392,7 +2392,8 @@ static int scriptRandomSeed = -1; // ensure proper random function
[gui setSelectableRange:NSMakeRange(0,0)];
if (missionForegroundTexture != nil) background = missionForegroundTexture;
else background = [OOTexture textureWithName:[UNIVERSE screenBackgroundNameForKey:@"mission_overlay"] inFolder:@"Images"];
else background = [OOTexture textureWithName:[UNIVERSE screenBackgroundNameForKey:
([missionTitle isEqualToString:@""] ? @"mission_overlay_no_title" : @"mission_overlay_with_title")] inFolder:@"Images"];
[gui setForegroundTexture:background];
if (missionBackgroundTexture != nil) background = missionBackgroundTexture;