mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-30 09:15:38 +00:00
Fix message box formatting bug
This commit is contained in:
parent
7907181c0c
commit
0cc1cd8f7e
2 changed files with 6 additions and 5 deletions
|
@ -245,11 +245,11 @@ namespace MWGui
|
|||
}
|
||||
mainWidgetSize.height = textSize.height + textButtonPadding + buttonHeight + buttonMainPadding;
|
||||
|
||||
MyGUI::IntCoord absCoord;
|
||||
absCoord.left = (gameWindowSize.width - mainWidgetSize.width)/2;
|
||||
absCoord.top = (gameWindowSize.height - mainWidgetSize.height)/2;
|
||||
MyGUI::IntPoint absPos;
|
||||
absPos.left = (gameWindowSize.width - mainWidgetSize.width)/2;
|
||||
absPos.top = (gameWindowSize.height - mainWidgetSize.height)/2;
|
||||
|
||||
mMainWidget->setCoord(absCoord);
|
||||
mMainWidget->setPosition(absPos);
|
||||
mMainWidget->setSize(mainWidgetSize);
|
||||
|
||||
MyGUI::IntCoord messageWidgetCoord;
|
||||
|
|
|
@ -48,9 +48,10 @@ namespace Interpreter
|
|||
}
|
||||
else if (c=='f' || c=='F' || c=='.')
|
||||
{
|
||||
while (c!='f' && i<message.size())
|
||||
while (c!='f' && i+1<message.size())
|
||||
{
|
||||
++i;
|
||||
c = message[i];
|
||||
}
|
||||
|
||||
float value = runtime[0].mFloat;
|
||||
|
|
Loading…
Reference in a new issue