1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-07 03:45:31 +00:00
openmw-tes3mp/apps/openmw/mwgui/mainmenu.hpp

36 lines
827 B
C++
Raw Normal View History

#include <openengine/gui/layout.hpp>
2012-12-16 15:05:31 +00:00
#include "confirmationdialog.hpp"
namespace MWGui
{
class MainMenu : public OEngine::GUI::Layout
{
public:
2012-12-16 15:05:31 +00:00
MainMenu(MWBase::WindowManager& parWindowManager, int w, int h);
void onResChange(int w, int h);
private:
MyGUI::Button* mReturn;
MyGUI::Button* mNewGame;
MyGUI::Button* mLoadGame;
MyGUI::Button* mSaveGame;
MyGUI::Button* mOptions;
MyGUI::Button* mCredits;
MyGUI::Button* mExitGame;
MyGUI::Widget* mButtonBox;
void returnToGame(MyGUI::Widget* sender);
void showOptions(MyGUI::Widget* sender);
void exitGame(MyGUI::Widget* sender);
2012-12-16 15:05:31 +00:00
void newGame(MyGUI::Widget* sender);
void newGameConfirmed();
ConfirmationDialog mDialog;
};
}