forked from teamnwah/openmw-tes3coop
Fix missing armor rating label update
This commit is contained in:
parent
e4127aa491
commit
ec00c830e5
1 changed files with 8 additions and 5 deletions
|
@ -527,6 +527,14 @@ namespace MWGui
|
|||
void InventoryWindow::doRenderUpdate ()
|
||||
{
|
||||
mPreview->onFrame();
|
||||
|
||||
if (mPreviewResize || mPreviewDirty)
|
||||
{
|
||||
mArmorRating->setCaptionWithReplacing ("#{sArmor}: "
|
||||
+ boost::lexical_cast<std::string>(static_cast<int>(mPtr.getClass().getArmorRating(mPtr))));
|
||||
if (mArmorRating->getTextSize().width > mArmorRating->getSize().width)
|
||||
mArmorRating->setCaptionWithReplacing (boost::lexical_cast<std::string>(static_cast<int>(mPtr.getClass().getArmorRating(mPtr))));
|
||||
}
|
||||
if (mPreviewResize)
|
||||
{
|
||||
mPreviewResize = false;
|
||||
|
@ -543,11 +551,6 @@ namespace MWGui
|
|||
mPreview->update ();
|
||||
|
||||
mAvatarImage->setImageTexture("CharacterPreview");
|
||||
|
||||
mArmorRating->setCaptionWithReplacing ("#{sArmor}: "
|
||||
+ boost::lexical_cast<std::string>(static_cast<int>(mPtr.getClass().getArmorRating(mPtr))));
|
||||
if (mArmorRating->getTextSize().width > mArmorRating->getSize().width)
|
||||
mArmorRating->setCaptionWithReplacing (boost::lexical_cast<std::string>(static_cast<int>(mPtr.getClass().getArmorRating(mPtr))));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue