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