2014-03-16 22:38:51 +00:00
|
|
|
#ifndef OPENMW_GAME_MWGUI_MAINMENU_H
|
|
|
|
#define OPENMW_GAME_MWGUI_MAINMENU_H
|
|
|
|
|
2012-05-13 16:14:03 +00:00
|
|
|
#include <openengine/gui/layout.hpp>
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
2014-03-30 21:04:12 +00:00
|
|
|
class ImageButton;
|
|
|
|
class BackgroundImage;
|
2013-11-21 19:24:58 +00:00
|
|
|
class SaveGameDialog;
|
2014-05-29 15:21:35 +00:00
|
|
|
class VideoWidget;
|
2013-11-21 19:24:58 +00:00
|
|
|
|
2012-05-13 16:14:03 +00:00
|
|
|
class MainMenu : public OEngine::GUI::Layout
|
|
|
|
{
|
2013-11-18 14:52:25 +00:00
|
|
|
int mWidth;
|
|
|
|
int mHeight;
|
2012-08-10 13:15:48 +00:00
|
|
|
|
2014-05-29 15:21:35 +00:00
|
|
|
bool mHasAnimatedMenu;
|
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
public:
|
2012-08-11 15:26:01 +00:00
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
MainMenu(int w, int h);
|
2013-11-21 19:24:58 +00:00
|
|
|
~MainMenu();
|
2012-08-10 13:15:48 +00:00
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
void onResChange(int w, int h);
|
2013-01-03 00:09:03 +00:00
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
virtual void setVisible (bool visible);
|
|
|
|
|
2014-05-29 15:21:35 +00:00
|
|
|
void update(float dt);
|
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
private:
|
|
|
|
|
|
|
|
MyGUI::Widget* mButtonBox;
|
2014-03-12 13:37:44 +00:00
|
|
|
MyGUI::TextBox* mVersionText;
|
2013-11-18 14:52:25 +00:00
|
|
|
|
2014-03-30 21:04:12 +00:00
|
|
|
BackgroundImage* mBackground;
|
2014-03-27 03:15:47 +00:00
|
|
|
|
2014-05-29 15:21:35 +00:00
|
|
|
MyGUI::ImageBox* mVideoBackground;
|
|
|
|
VideoWidget* mVideo; // For animated main menus
|
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
std::map<std::string, MWGui::ImageButton*> mButtons;
|
|
|
|
|
|
|
|
void onButtonClicked (MyGUI::Widget* sender);
|
2014-03-26 20:11:39 +00:00
|
|
|
void onNewGameConfirmed();
|
2014-03-26 21:05:21 +00:00
|
|
|
void onExitConfirmed();
|
2013-11-18 14:52:25 +00:00
|
|
|
|
2014-03-27 03:15:47 +00:00
|
|
|
void showBackground(bool show);
|
|
|
|
|
2013-11-18 14:52:25 +00:00
|
|
|
void updateMenu();
|
2013-11-21 19:24:58 +00:00
|
|
|
|
|
|
|
SaveGameDialog* mSaveGameDialog;
|
2012-05-13 16:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
2014-03-16 22:38:51 +00:00
|
|
|
|
|
|
|
#endif
|