2012-05-13 16:14:03 +00:00
|
|
|
#include <openengine/gui/layout.hpp>
|
|
|
|
|
|
|
|
namespace MWGui
|
|
|
|
{
|
|
|
|
|
|
|
|
class MainMenu : public OEngine::GUI::Layout
|
|
|
|
{
|
|
|
|
public:
|
2012-08-10 13:15:48 +00:00
|
|
|
MainMenu(int w, int h);
|
|
|
|
|
2012-08-11 15:26:01 +00:00
|
|
|
void onResChange(int w, int h);
|
|
|
|
|
2012-08-10 13:15:48 +00:00
|
|
|
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-05-13 16:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|