mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-27 03:35:27 +00:00
36 lines
827 B
C++
36 lines
827 B
C++
#include <openengine/gui/layout.hpp>
|
|
|
|
#include "confirmationdialog.hpp"
|
|
|
|
namespace MWGui
|
|
{
|
|
|
|
class MainMenu : public OEngine::GUI::Layout
|
|
{
|
|
public:
|
|
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);
|
|
void newGame(MyGUI::Widget* sender);
|
|
void newGameConfirmed();
|
|
|
|
ConfirmationDialog mDialog;
|
|
};
|
|
|
|
}
|