OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MWGui::MainMenu Class Reference

#include <mainmenu.hpp>

Inheritance diagram for MWGui::MainMenu:
Collaboration diagram for MWGui::MainMenu:

Public Member Functions

 MainMenu (int w, int h, const VFS::Manager *vfs, const std::string &versionDescription)
 
 ~MainMenu ()
 
void onResChange (int w, int h)
 
virtual void setVisible (bool visible)
 
void update (float dt)
 
- 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 onButtonClicked (MyGUI::Widget *sender)
 
void onNewGameConfirmed ()
 
void onExitConfirmed ()
 
void showBackground (bool show)
 
void updateMenu ()
 

Private Attributes

int mWidth
 
int mHeight
 
bool mHasAnimatedMenu
 
const VFS::ManagermVFS
 
MyGUI::Widget * mButtonBox
 
MyGUI::TextBox * mVersionText
 
BackgroundImagemBackground
 
MyGUI::ImageBox * mVideoBackground
 
VideoWidgetmVideo
 
std::map< std::string,
Gui::ImageButton * > 
mButtons
 
SaveGameDialogmSaveGameDialog
 

Additional Inherited Members

- Public Attributes inherited from MWGui::Layout
MyGUI::Widget * mMainWidget
 
- Protected Attributes inherited from MWGui::Layout
std::string mPrefix
 
std::string mLayoutName
 
MyGUI::VectorWidgetPtr mListWindowRoot
 

Constructor & Destructor Documentation

MWGui::MainMenu::MainMenu ( int  w,
int  h,
const VFS::Manager vfs,
const std::string &  versionDescription 
)

Here is the call graph for this function:

MWGui::MainMenu::~MainMenu ( )

Member Function Documentation

void MWGui::MainMenu::onButtonClicked ( MyGUI::Widget *  sender)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onExitConfirmed ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onNewGameConfirmed ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::onResChange ( int  w,
int  h 
)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::setVisible ( bool  visible)
virtual

Reimplemented from MWGui::Layout.

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::showBackground ( bool  show)
private

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::update ( float  dt)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::MainMenu::updateMenu ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

BackgroundImage* MWGui::MainMenu::mBackground
private
MyGUI::Widget* MWGui::MainMenu::mButtonBox
private
std::map<std::string, Gui::ImageButton*> MWGui::MainMenu::mButtons
private
bool MWGui::MainMenu::mHasAnimatedMenu
private
int MWGui::MainMenu::mHeight
private
SaveGameDialog* MWGui::MainMenu::mSaveGameDialog
private
MyGUI::TextBox* MWGui::MainMenu::mVersionText
private
const VFS::Manager* MWGui::MainMenu::mVFS
private
VideoWidget* MWGui::MainMenu::mVideo
private
MyGUI::ImageBox* MWGui::MainMenu::mVideoBackground
private
int MWGui::MainMenu::mWidth
private

The documentation for this class was generated from the following files: