You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw-tes3mp/apps/openmw/mwgui/loadingscreen.hpp

60 lines
1.3 KiB
C++

12 years ago
#ifndef MWGUI_LOADINGSCREEN_H
#define MWGUI_LOADINGSCREEN_H
#include <OgreSceneManager.h>
#include "windowbase.hpp"
12 years ago
namespace MWGui
{
class LoadingScreen : public WindowBase
{
public:
LoadingScreen(Ogre::SceneManager* sceneMgr, Ogre::RenderWindow* rw);
12 years ago
virtual ~LoadingScreen();
void setLoadingProgress (const std::string& stage, int depth, int current, int total);
12 years ago
void loadingDone();
12 years ago
12 years ago
void onResChange(int w, int h);
void updateWindow(Ogre::RenderWindow* rw) { mWindow = rw; }
12 years ago
private:
bool mFirstLoad;
12 years ago
Ogre::SceneManager* mSceneMgr;
Ogre::RenderWindow* mWindow;
unsigned long mLastWallpaperChangeTime;
12 years ago
unsigned long mLastRenderTime;
Ogre::Timer mTimer;
MyGUI::TextBox* mLoadingText;
MyGUI::ProgressBar* mProgressBar;
12 years ago
MyGUI::ImageBox* mBackgroundImage;
12 years ago
int mCurrentCellLoading;
int mTotalCellsLoading;
int mCurrentRefLoading;
int mTotalRefsLoading;
int mCurrentRefList;
12 years ago
12 years ago
Ogre::Rectangle2D* mRectangle;
Ogre::MaterialPtr mBackgroundMaterial;
Ogre::StringVector mResources;
12 years ago
bool mLoadingOn;
void loadingOn();
void loadingOff();
void changeWallpaper();
12 years ago
};
}
#endif