diff --git a/apps/openmw/mwvr/vrmetamenu.cpp b/apps/openmw/mwvr/vrmetamenu.cpp index def6fe1c6..225041142 100644 --- a/apps/openmw/mwvr/vrmetamenu.cpp +++ b/apps/openmw/mwvr/vrmetamenu.cpp @@ -15,11 +15,7 @@ namespace MWVR : WindowBase("openmw_vr_metamenu.layout") , mWidth (w) , mHeight (h) - , mButtonBox(0) { - - getWidget(mButtonBox, "ButtonBox"); - updateMenu(); } @@ -125,8 +121,6 @@ namespace MWVR void VrMetaMenu::updateMenu() { - setCoord(0,0, mWidth, mHeight); - static std::vector buttons{ "return", "quicksave", "quickload", "console", "inventory", "journal", "rest", "gamemenu" }; if(mButtons.empty()) @@ -141,11 +135,5 @@ namespace MWVR button->setVisible(true); mButtons[buttonId] = button; } - - int width = mButtonBox->getWidth(); - int height = mButtonBox->getHeight(); - - mButtonBox->setCoord (mWidth/2 - width/2, mHeight/2 - height/2, width, height); - mButtonBox->setVisible(true); } } diff --git a/apps/openmw/mwvr/vrmetamenu.hpp b/apps/openmw/mwvr/vrmetamenu.hpp index 23b4d0fd9..3297d2696 100644 --- a/apps/openmw/mwvr/vrmetamenu.hpp +++ b/apps/openmw/mwvr/vrmetamenu.hpp @@ -39,7 +39,6 @@ namespace MWVR bool exit() override; private: - MyGUI::Widget* mButtonBox{ nullptr }; std::map mButtons{}; void onButtonClicked (MyGUI::Widget* sender); diff --git a/files/mygui/openmw_vr_metamenu.layout b/files/mygui/openmw_vr_metamenu.layout index 08550db6e..f797edc93 100644 --- a/files/mygui/openmw_vr_metamenu.layout +++ b/files/mygui/openmw_vr_metamenu.layout @@ -2,40 +2,67 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +