Improved parameter name for size sent to text input dialog.

actorid
Jan Borsodi 15 years ago
parent 3cf8472ddc
commit ff6315a8a6

@ -4,14 +4,14 @@
using namespace MWGui;
TextInputDialog::TextInputDialog(MWWorld::Environment& environment, MyGUI::IntSize size)
TextInputDialog::TextInputDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize)
: Layout("openmw_text_input_layout.xml")
, environment(environment)
{
// Centre dialog
MyGUI::IntCoord coord = mMainWidget->getCoord();
coord.left = (size.width - coord.width)/2;
coord.top = (size.height - coord.height)/2;
coord.left = (gameWindowSize.width - coord.width)/2;
coord.top = (gameWindowSize.height - coord.height)/2;
mMainWidget->setCoord(coord);
getWidget(textEdit, "TextEdit");

@ -18,7 +18,7 @@ namespace MWGui
class TextInputDialog : public OEngine::GUI::Layout
{
public:
TextInputDialog(MWWorld::Environment& environment, MyGUI::IntSize size);
TextInputDialog(MWWorld::Environment& environment, MyGUI::IntSize gameWindowSize);
std::string getTextInput() const { return textEdit ? textEdit->getOnlyText() : ""; }
void setTextInput(const std::string &text) { if (textEdit) textEdit->setOnlyText(text); }

Loading…
Cancel
Save