|
|
@ -30,6 +30,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/myguiplatform/myguiplatform.hpp>
|
|
|
|
#include <components/myguiplatform/myguiplatform.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/vfs/manager.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include <components/widgets/widgets.hpp>
|
|
|
|
#include <components/widgets/widgets.hpp>
|
|
|
|
#include <components/widgets/tags.hpp>
|
|
|
|
#include <components/widgets/tags.hpp>
|
|
|
|
|
|
|
|
|
|
|
@ -180,8 +182,8 @@ namespace MWGui
|
|
|
|
mGuiPlatform = new osgMyGUI::Platform(viewer, guiRoot, resourceSystem->getTextureManager());
|
|
|
|
mGuiPlatform = new osgMyGUI::Platform(viewer, guiRoot, resourceSystem->getTextureManager());
|
|
|
|
mGuiPlatform->initialise(resourcePath, logpath);
|
|
|
|
mGuiPlatform->initialise(resourcePath, logpath);
|
|
|
|
|
|
|
|
|
|
|
|
MyGUI::Gui* gui = new MyGUI::Gui;
|
|
|
|
mGui = new MyGUI::Gui;
|
|
|
|
gui->initialise("");
|
|
|
|
mGui->initialise("");
|
|
|
|
|
|
|
|
|
|
|
|
createTextures();
|
|
|
|
createTextures();
|
|
|
|
|
|
|
|
|
|
|
@ -307,8 +309,8 @@ namespace MWGui
|
|
|
|
std::string hitFaderTexture = "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
|
|
|
|
// 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
|
|
|
|
// TODO: check if non-BM versions actually use player_hit_01.dds
|
|
|
|
//if(!Ogre::ResourceGroupManager::getSingleton().resourceExistsInAnyGroup(hitFaderTexture))
|
|
|
|
if(!mResourceSystem->getVFS()->exists(hitFaderTexture))
|
|
|
|
// hitFaderTexture = "textures\\player_hit_01.dds";
|
|
|
|
hitFaderTexture = "textures\\player_hit_01.dds";
|
|
|
|
mHitFader = new ScreenFader(hitFaderTexture);
|
|
|
|
mHitFader = new ScreenFader(hitFaderTexture);
|
|
|
|
mScreenFader = new ScreenFader("black.png");
|
|
|
|
mScreenFader = new ScreenFader("black.png");
|
|
|
|
|
|
|
|
|
|
|
@ -421,6 +423,7 @@ namespace MWGui
|
|
|
|
|
|
|
|
|
|
|
|
mFontLoader.reset();
|
|
|
|
mFontLoader.reset();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete mGui;
|
|
|
|
delete mGuiPlatform;
|
|
|
|
delete mGuiPlatform;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|