|
|
|
@ -158,12 +158,13 @@ void mwmp::GUIController::showInputBox(const BasePlayer::GUIMessageBox &guiMessa
|
|
|
|
|
|
|
|
|
|
mInputBox->eventDone += MyGUI::newDelegate(this, &GUIController::onInputBoxDone);
|
|
|
|
|
|
|
|
|
|
mInputBox->setVisible(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void mwmp::GUIController::onInputBoxDone(MWGui::WindowBase *parWindow)
|
|
|
|
|
{
|
|
|
|
|
//MWBase::WindowManager *windowManager = MWBase::Environment::get().getWindowManager();
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "GUIController::OnInputBoxDone: %s.",mInputBox->getTextInput().c_str());
|
|
|
|
|
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "GUIController::onInputBoxDone: %s.",mInputBox->getTextInput().c_str());
|
|
|
|
|
|
|
|
|
|
Main::get().getLocalPlayer()->guiMessageBox.data = mInputBox->getTextInput();
|
|
|
|
|
Main::get().getNetworking()->getPlayerPacket(ID_GUI_MESSAGEBOX)->setPlayer(Main::get().getLocalPlayer());
|
|
|
|
|