Improved Race Select and Track Select menus when no track preview / outline : default background image / 'no outline' panel

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@3425 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 69b3a626d90ff71a7a2e96174948b5e8fb1f960e
Former-commit-id: b335447634db437688634c1dbea5267335f07961
This commit is contained in:
pouillot 2011-03-07 09:59:57 +00:00
parent c6b509f037
commit 6035d75524

View file

@ -139,13 +139,13 @@ GfTracks::GfTracks()
strPreviewFileName = ossFileName.str(); strPreviewFileName = ossFileName.str();
} }
if (!GfFileExists(strPreviewFileName.c_str())) if (!GfFileExists(strPreviewFileName.c_str()))
strPreviewFileName = "data/img/splash-racemanmenu.jpg"; strPreviewFileName = "data/img/splash-trackselect.jpg";
ossFileName.str(""); ossFileName.str("");
ossFileName << "tracks/" << pszCatId << '/' << pszTrackId << '/' << "outline.png"; ossFileName << "tracks/" << pszCatId << '/' << pszTrackId << '/' << "outline.png";
std::string strOutlineFileName(ossFileName.str()); std::string strOutlineFileName(ossFileName.str());
if (!GfFileExists(strOutlineFileName.c_str())) if (!GfFileExists(strOutlineFileName.c_str()))
strPreviewFileName = "data/img/transparent.png"; strOutlineFileName = "data/img/notrackoutline.png";
// Store track info in the GfTrack structure. // Store track info in the GfTrack structure.
GfTrack* pTrack = new GfTrack; GfTrack* pTrack = new GfTrack;