Mark code that will be obsolete when upgrading to MyGUI 3.2.2

pull/261/head
scrawl 10 years ago
parent f82224497a
commit bd96764229

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

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

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

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

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

Loading…
Cancel
Save