diff --git a/apps/openmw/mwgui/statswindow.cpp b/apps/openmw/mwgui/statswindow.cpp index e02b2f45f..66a1ea1ef 100644 --- a/apps/openmw/mwgui/statswindow.cpp +++ b/apps/openmw/mwgui/statswindow.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -336,14 +337,16 @@ namespace MWGui int max = MWBase::Environment::get().getWorld()->getStore().get().find("iLevelUpTotal")->mValue.getInteger(); getWidget(levelWidget, i==0 ? "Level_str" : "LevelText"); - std::string detail; + std::stringstream detail; for (int i = 0; i < ESM::Attribute::Length; ++i) { if (auto increase = PCstats.getLevelUpAttributeIncrease(i)) - detail += (detail.empty() ? "" : "\n") + ESM::Attribute::sAttributeNames[i] + " x" + MyGUI::utility::toString(increase); + detail << (detail.str().empty() ? "" : "\n") << "#{" + << MyGUI::TextIterator::toTagsString(ESM::Attribute::sGmstAttributeIds[i]) + << "} x" << MyGUI::utility::toString(increase); } - if (!detail.empty()) - levelWidget->setUserString("Caption_LevelDetailText", detail); + if (!detail.str().empty()) + levelWidget->setUserString("Caption_LevelDetailText", MyGUI::LanguageManager::getInstance().replaceTags(detail.str())); levelWidget->setUserString("RangePosition_LevelProgress", MyGUI::utility::toString(PCstats.getLevelProgress())); levelWidget->setUserString("Range_LevelProgress", MyGUI::utility::toString(max)); levelWidget->setUserString("Caption_LevelProgressText", MyGUI::utility::toString(PCstats.getLevelProgress()) + "/" diff --git a/files/mygui/openmw_tooltips.layout b/files/mygui/openmw_tooltips.layout index 59050f932..bb505d253 100644 --- a/files/mygui/openmw_tooltips.layout +++ b/files/mygui/openmw_tooltips.layout @@ -272,6 +272,7 @@ +