1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 13:49:40 +00:00

Mark code that will be obsolete when upgrading to MyGUI 3.2.2

This commit is contained in:
scrawl 2014-09-14 03:52:14 +02:00
parent f82224497a
commit bd96764229
5 changed files with 5 additions and 0 deletions

View file

@ -140,6 +140,7 @@ namespace MWGui
void Console::close() void Console::close()
{ {
// Apparently, hidden widgets can retain key focus // Apparently, hidden widgets can retain key focus
// Remove for MyGUI 3.2.2
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(NULL); MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(NULL);
} }

View file

@ -213,6 +213,7 @@ namespace MWGui
void SaveGameDialog::accept(bool reallySure) void SaveGameDialog::accept(bool reallySure)
{ {
// Remove for MyGUI 3.2.2
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(NULL); MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(NULL);
if (mSaving) if (mSaving)

View file

@ -23,6 +23,7 @@ void WindowBase::setVisible(bool visible)
close(); close();
// This is needed as invisible widgets can retain key focus. // This is needed as invisible widgets can retain key focus.
// Remove for MyGUI 3.2.2
if (!visible) if (!visible)
{ {
MyGUI::Widget* keyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget(); MyGUI::Widget* keyFocus = MyGUI::InputManager::getInstance().getKeyFocusWidget();

View file

@ -1449,6 +1449,7 @@ namespace MWGui
forceHide((GuiWindow)(MWGui::GW_Inventory | MWGui::GW_Magic)); forceHide((GuiWindow)(MWGui::GW_Inventory | MWGui::GW_Magic));
} }
// Remove this method for MyGUI 3.2.2
void WindowManager::setKeyFocusWidget(MyGUI::Widget *widget) void WindowManager::setKeyFocusWidget(MyGUI::Widget *widget)
{ {
if (widget == NULL) if (widget == NULL)

View file

@ -23,6 +23,7 @@ namespace MyGUI
* As of MyGUI 3.2.0, MyGUI::OgreDataManager::isDataExist is unnecessarily complex * As of MyGUI 3.2.0, MyGUI::OgreDataManager::isDataExist is unnecessarily complex
* this override fixes the resulting performance issue. * this override fixes the resulting performance issue.
*/ */
// Remove for MyGUI 3.2.2
class FixedOgreDataManager : public MyGUI::OgreDataManager class FixedOgreDataManager : public MyGUI::OgreDataManager
{ {
public: public: