1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 15:49:55 +00:00
openmw-tes3mp/apps/openmw/mwgui/mainmenu.hpp
scrawl f5810b8e1c Consider aspect ratio for loading screen background
More consistent with the main menu.
2014-03-30 23:07:49 +02:00

49 lines
974 B
C++

#ifndef OPENMW_GAME_MWGUI_MAINMENU_H
#define OPENMW_GAME_MWGUI_MAINMENU_H
#include <openengine/gui/layout.hpp>
namespace MWGui
{
class ImageButton;
class BackgroundImage;
class SaveGameDialog;
class MainMenu : public OEngine::GUI::Layout
{
int mWidth;
int mHeight;
public:
MainMenu(int w, int h);
~MainMenu();
void onResChange(int w, int h);
virtual void setVisible (bool visible);
private:
MyGUI::Widget* mButtonBox;
MyGUI::TextBox* mVersionText;
BackgroundImage* mBackground;
std::map<std::string, MWGui::ImageButton*> mButtons;
void onButtonClicked (MyGUI::Widget* sender);
void onNewGameConfirmed();
void onExitConfirmed();
void showBackground(bool show);
void updateMenu();
SaveGameDialog* mSaveGameDialog;
};
}
#endif