forked from teamnwah/openmw-tes3coop
Mark code that will be obsolete when upgrading to MyGUI 3.2.2
This commit is contained in:
parent
f82224497a
commit
bd96764229
5 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue