mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 23:51:09 -04:00
Show the InputBox only if queue is free
This commit is contained in:
parent
4c2415e9db
commit
8a5e32c631
@ -95,7 +95,6 @@ void mwmp::GUIController::ShowInputBox(const BasePlayer::GUIMessageBox &guiMessa
|
|||||||
mInputBox = new MWGui::TextInputDialog();
|
mInputBox = new MWGui::TextInputDialog();
|
||||||
mInputBox->setTextLabel(guiMessageBox.label);
|
mInputBox->setTextLabel(guiMessageBox.label);
|
||||||
mInputBox->eventDone += MyGUI::newDelegate(this, &GUIController::OnInputBoxDone);
|
mInputBox->eventDone += MyGUI::newDelegate(this, &GUIController::OnInputBoxDone);
|
||||||
mInputBox->setVisible(true);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,7 +160,11 @@ void mwmp::GUIController::WM_UpdateVisible(MWGui::GuiMode mode)
|
|||||||
switch(mode)
|
switch(mode)
|
||||||
{
|
{
|
||||||
case MWGui::GM_TES3MPPipe:
|
case MWGui::GM_TES3MPPipe:
|
||||||
|
{
|
||||||
|
if (mInputBox != 0)
|
||||||
|
mInputBox->setVisible(true);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user