1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 23:49:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/mainmenu.hpp

68 lines
1.3 KiB
C++
Raw Normal View History

#ifndef OPENMW_GAME_MWGUI_MAINMENU_H
#define OPENMW_GAME_MWGUI_MAINMENU_H
2015-05-01 00:09:57 +00:00
#include "layout.hpp"
namespace Gui
{
class ImageButton;
}
2015-05-02 16:14:53 +00:00
namespace VFS
{
class Manager;
}
namespace MWGui
{
class BackgroundImage;
class SaveGameDialog;
class VideoWidget;
2015-05-01 00:09:57 +00:00
class MainMenu : public Layout
{
int mWidth;
int mHeight;
bool mHasAnimatedMenu;
public:
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);
private:
2015-05-02 16:14:53 +00:00
const VFS::Manager* mVFS;
MyGUI::Widget* mButtonBox;
2014-03-12 13:37:44 +00:00
MyGUI::TextBox* mVersionText;
BackgroundImage* mBackground;
MyGUI::ImageBox* mVideoBackground;
VideoWidget* mVideo; // For animated main menus
std::map<std::string, Gui::ImageButton*> mButtons;
void onButtonClicked (MyGUI::Widget* sender);
void onNewGameConfirmed();
2014-03-26 21:05:21 +00:00
void onExitConfirmed();
void showBackground(bool show);
void updateMenu();
SaveGameDialog* mSaveGameDialog;
};
}
#endif