|
OpenMW
|
#include <loadingscreen.hpp>
Public Member Functions | |
| LoadingScreen (const VFS::Manager *vfs, osgViewer::Viewer *viewer) | |
| virtual | ~LoadingScreen () |
| virtual void | setLabel (const std::string &label, bool important) |
| Overridden from Loading::Listener, see the Loading::Listener documentation for usage details. More... | |
| virtual void | loadingOn (bool visible=true) |
| virtual void | loadingOff () |
| virtual void | setProgressRange (size_t range) |
| Set the total range of progress (e.g. the number of objects to load). More... | |
| virtual void | setProgress (size_t value) |
| Set current progress. Valid range is [0, progressRange) More... | |
| virtual void | increaseProgress (size_t increase=1) |
| Increase current progress, default by 1. More... | |
| virtual void | setVisible (bool visible) |
| Sets the visibility of the window. More... | |
| double | getTargetFrameRate () const |
Public Member Functions inherited from MWGui::WindowBase | |
| WindowBase (const std::string &parLayout) | |
| virtual MyGUI::Widget * | getDefaultKeyFocus () |
| virtual void | setPtr (const MWWorld::Ptr &ptr) |
| Open this object in the GUI, for windows that support it. More... | |
| virtual void | onFrame (float duration) |
| Called every frame if the window is in an active GUI mode. More... | |
| virtual void | onOpen () |
| Notify that window has been made visible. More... | |
| virtual void | onClose () |
| Notify that window has been hidden. More... | |
| virtual bool | exit () |
| Gracefully exits the window. More... | |
| bool | isVisible () |
| Returns the visibility state of the window. More... | |
| void | center () |
| virtual void | clear () |
| Clear any state specific to the running game. More... | |
| virtual void | onResChange (int width, int height) |
| Called when GUI viewport changes size. More... | |
Public Member Functions inherited from MWGui::Layout | |
| Layout (const std::string &_layout, MyGUI::Widget *_parent=nullptr) | |
| virtual | ~Layout () |
| MyGUI::Widget * | getWidget (const std::string &_name) |
| template<typename T > | |
| void | getWidget (T *&_widget, const std::string &_name) |
| void | setCoord (int x, int y, int w, int h) |
| void | setText (const std::string &name, const std::string &caption) |
| void | setTitle (const std::string &title) |
Private Member Functions | |
| void | findSplashScreens () |
| bool | needToDrawLoadingScreen () |
| void | setupCopyFramebufferToTextureCallback () |
| void | changeWallpaper () |
| void | draw () |
Private Attributes | |
| const VFS::Manager * | mVFS |
| osg::ref_ptr< osgViewer::Viewer > | mViewer |
| double | mTargetFrameRate |
| double | mLastWallpaperChangeTime |
| double | mLastRenderTime |
| osg::Timer | mTimer |
| double | mLoadingOnTime |
| bool | mImportantLabel |
| bool | mVisible |
| size_t | mProgress |
| bool | mShowWallpaper |
| MyGUI::Widget * | mLoadingBox |
| MyGUI::TextBox * | mLoadingText |
| MyGUI::ScrollBar * | mProgressBar |
| BackgroundImage * | mBackgroundImage |
| BackgroundImage * | mSceneImage |
| std::vector< std::string > | mSplashScreens |
| osg::ref_ptr< osg::Texture2D > | mTexture |
| std::unique_ptr< MyGUI::ITexture > | mGuiTexture |
Additional Inherited Members | |
Public Types inherited from MWGui::WindowBase | |
| typedef MyGUI::delegates::CMultiDelegate1 < WindowBase * > | EventHandle_WindowBase |
Public Attributes inherited from MWGui::Layout | |
| MyGUI::Widget * | mMainWidget |
Protected Attributes inherited from MWGui::Layout | |
| std::string | mPrefix |
| std::string | mLayoutName |
| MyGUI::VectorWidgetPtr | mListWindowRoot |
| MWGui::LoadingScreen::LoadingScreen | ( | const VFS::Manager * | vfs, |
| osgViewer::Viewer * | viewer | ||
| ) |
|
virtual |
|
private |
|
private |
|
private |
| double MWGui::LoadingScreen::getTargetFrameRate | ( | ) | const |
|
virtual |
Increase current progress, default by 1.
Reimplemented from Loading::Listener.
|
virtual |
|
virtual |
Start a loading sequence. Must call loadingOff() when done.
Reimplemented from Loading::Listener.
|
private |
|
virtual |
Overridden from Loading::Listener, see the Loading::Listener documentation for usage details.
Reimplemented from Loading::Listener.
|
virtual |
Set current progress. Valid range is [0, progressRange)
Reimplemented from Loading::Listener.
|
virtual |
Set the total range of progress (e.g. the number of objects to load).
Reimplemented from Loading::Listener.
|
private |
|
virtual |
Sets the visibility of the window.
Reimplemented from MWGui::WindowBase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.6