Remove hard coded paths pass 1

- displaySplashWindow() now takes an optional path to a bitmap file.
- Missing, unavailable and warning texture paths now come from
GFXTextureManager static methods.
This commit is contained in:
DavidWyand-GG 2013-01-30 14:09:22 -05:00
parent 27a81f9c0d
commit 2824bcf649
11 changed files with 67 additions and 17 deletions

View file

@ -41,6 +41,10 @@
S32 GFXTextureManager::smTextureReductionLevel = 0;
String GFXTextureManager::smMissingTexturePath("core/art/missingTexture");
String GFXTextureManager::smUnavailableTexturePath("core/art/unavailable");
String GFXTextureManager::smWarningTexturePath("core/art/warnmat");
GFXTextureManager::EventSignal GFXTextureManager::smEventSignal;
static const String sDDSExt( "dds" );
@ -52,6 +56,19 @@ void GFXTextureManager::init()
"video memory usage. It will skip any textures that have been defined "
"as not allowing down scaling.\n"
"@ingroup GFX\n" );
Con::addVariable( "$pref::Video::missingTexturePath", TypeString, &smMissingTexturePath,
"The file path of the texture to display when the requested texture is missing.\n"
"@ingroup GFX\n" );
Con::addVariable( "$pref::Video::unavailableTexturePath", TypeString, &smUnavailableTexturePath,
"@brief The file path of the texture to display when the requested texture is unavailable.\n\n"
"Often this texture is used by GUI controls to indicate that the request image is unavailable.\n"
"@ingroup GFX\n" );
Con::addVariable( "$pref::Video::warningTexturePath", TypeString, &smWarningTexturePath,
"The file path of the texture used to warn the developer.\n"
"@ingroup GFX\n" );
}
GFXTextureManager::GFXTextureManager()