forked from teamnwah/openmw-tes3coop
Construct hit fader with correct texture right away to prevent mygui warning
This commit is contained in:
parent
a5e972aeb5
commit
8dd95fd77e
1 changed files with 4 additions and 3 deletions
|
@ -273,11 +273,12 @@ namespace MWGui
|
|||
trackWindow(mCompanionWindow, "companion");
|
||||
|
||||
mWerewolfFader = new ScreenFader("textures\\werewolfoverlay.dds");
|
||||
mHitFader = new ScreenFader("textures\\bm_player_hit_01.dds");
|
||||
std::string hitFaderTexture = "textures\\bm_player_hit_01.dds";
|
||||
// fall back to player_hit_01.dds if bm_player_hit_01.dds is not available
|
||||
// TODO: check if non-BM versions actually use player_hit_01.dds
|
||||
if(!Ogre::ResourceGroupManager::getSingleton().resourceExistsInAnyGroup("textures\\bm_player_hit_01.dds"))
|
||||
mHitFader->setTexture("textures\\player_hit_01.dds");
|
||||
if(!Ogre::ResourceGroupManager::getSingleton().resourceExistsInAnyGroup(hitFaderTexture))
|
||||
hitFaderTexture = "textures\\player_hit_01.dds";
|
||||
mHitFader = new ScreenFader(hitFaderTexture);
|
||||
mScreenFader = new ScreenFader("black.png");
|
||||
|
||||
mDebugWindow = new DebugWindow();
|
||||
|
|
Loading…
Reference in a new issue