[Client] Fix recent problems with password window

new-script-api
David Cernat 7 years ago
parent 711c4d83da
commit 08f34e5356

@ -62,6 +62,11 @@ namespace mwmp
MWBase::Environment::get().getWindowManager()->setKeyFocusWidget(mTextEdit);
}
bool TextInputDialog::exit()
{
return false;
}
// widget controls
void TextInputDialog::onOkClicked(MyGUI::Widget *_sender)

@ -30,6 +30,7 @@ namespace mwmp
void setEditPassword(bool value);
virtual void onOpen();
virtual bool exit();
/** Event : Dialog finished, OK button clicked.\n
signature : void method()\n

@ -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());

@ -24,10 +24,20 @@
</Widget>
</Widget>
<Widget type="AutoSizedEditBox" skin="HeaderText" position="6 96 300 0" name="TextNote" align="Left Top">
<Property key="TextAlign" value="Center"/>
<Property key="MultiLine" value="true"/>
<Property key="WordWrap" value="true"/>
<Widget type="VBox" skin="">
<Property key="AutoResize" value="true"/>
<Property key="Padding" value="10"/>
<Property key="Spacing" value="12"/>
<Widget type="Widget">
<UserString key="VStretch" value="true"/>
</Widget>
<Widget type="AutoSizedEditBox" skin="HeaderText" position="6 96 300 0" name="TextNote" align="Left Top">
<Property key="TextAlign" value="Center"/>
<Property key="MultiLine" value="true"/>
<Property key="WordWrap" value="true"/>
</Widget>
</Widget>
</Widget>

Loading…
Cancel
Save