1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 06:19:55 +00:00
openmw-tes3mp/apps/openmw/mwvr/vrmetamenu.hpp

60 lines
1.1 KiB
C++

#ifndef OPENMW_GAME_MWVR_VRMETAMENU_H
#define OPENMW_GAME_MWVR_VRMETAMENU_H
#include "../mwgui/windowbase.hpp"
#include <MyGUI_Button.h>
#include "components/widgets/box.hpp"
namespace Gui
{
class ImageButton;
}
namespace VFS
{
class Manager;
}
namespace MWVR
{
class VrMetaMenu : public MWGui::WindowBase
{
int mWidth;
int mHeight;
bool mHasAnimatedMenu;
public:
VrMetaMenu(int w, int h);
~VrMetaMenu();
void onResChange(int w, int h) override;
void setVisible (bool visible) override;
void onFrame(float dt) override;
bool exit() override;
private:
MyGUI::Widget* mButtonBox{ nullptr };
std::map<std::string, MyGUI::Button*> mButtons{};
void onButtonClicked (MyGUI::Widget* sender);
void onConsole();
void onJournal();
void onGameMenu();
void onInventory();
void onRest();
void onQuickLoad();
void onQuickSave();
void close();
void updateMenu();
};
}
#endif