1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00
OpenMW/apps/openmw/mwgui/loadingscreen.hpp

58 lines
1.3 KiB
C++
Raw Normal View History

2012-09-11 14:37:54 +00:00
#ifndef MWGUI_LOADINGSCREEN_H
#define MWGUI_LOADINGSCREEN_H
#include <OgreSceneManager.h>
#include <OgreResourceGroupManager.h>
#include "window_base.hpp"
namespace MWGui
{
class LoadingScreen : public WindowBase
{
public:
LoadingScreen(Ogre::SceneManager* sceneMgr, Ogre::RenderWindow* rw, MWBase::WindowManager& parWindowManager);
virtual ~LoadingScreen();
void setLoadingProgress (const std::string& stage, int depth, int current, int total);
2012-09-12 22:21:58 +00:00
void loadingDone();
2012-09-11 14:37:54 +00:00
2012-09-11 17:18:26 +00:00
void onResChange(int w, int h);
2012-09-11 14:37:54 +00:00
private:
2012-09-12 17:15:29 +00:00
bool mFirstLoad;
2012-09-11 14:37:54 +00:00
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
2012-09-13 10:33:09 +00:00
unsigned long mLastWallpaperChangeTime;
2012-09-11 14:37:54 +00:00
unsigned long mLastRenderTime;
Ogre::Timer mTimer;
MyGUI::TextBox* mLoadingText;
MyGUI::ProgressBar* mProgressBar;
2012-09-11 17:18:26 +00:00
MyGUI::ImageBox* mBackgroundImage;
2012-09-11 14:37:54 +00:00
int mCurrentCellLoading;
int mTotalCellsLoading;
int mCurrentRefLoading;
int mTotalRefsLoading;
int mCurrentRefList;
2012-09-11 14:37:54 +00:00
2012-09-11 17:18:26 +00:00
Ogre::Rectangle2D* mRectangle;
Ogre::MaterialPtr mBackgroundMaterial;
2012-09-11 14:37:54 +00:00
bool mLoadingOn;
void loadingOn();
void loadingOff();
2012-09-13 10:33:09 +00:00
void changeWallpaper();
2012-09-11 14:37:54 +00:00
};
}
#endif