You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
1.4 KiB
C++
71 lines
1.4 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:
|
|
std::map<std::string, MyGUI::Button*> mButtons{};
|
|
|
|
void onButtonClicked (MyGUI::Widget* sender);
|
|
void onConsole();
|
|
void onJournal();
|
|
void onGameMenu();
|
|
void onInventory();
|
|
void onRest();
|
|
void onQuickMenu();
|
|
void onQuickLoad();
|
|
void onQuickSave();
|
|
void onRecenter();
|
|
/*
|
|
Start of tes3mp addition
|
|
|
|
Handle a button toggling the display mode of the Chat window
|
|
*/
|
|
void onChatMode();
|
|
/*
|
|
End of tes3mp addition
|
|
*/
|
|
void close();
|
|
|
|
void updateMenu();
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|