|
|
|
@ -335,6 +335,15 @@ namespace MWGui
|
|
|
|
|
{
|
|
|
|
|
int max = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>().find("iLevelUpTotal")->mValue.getInteger();
|
|
|
|
|
getWidget(levelWidget, i==0 ? "Level_str" : "LevelText");
|
|
|
|
|
|
|
|
|
|
std::string 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);
|
|
|
|
|
}
|
|
|
|
|
if (!detail.empty())
|
|
|
|
|
levelWidget->setUserString("Caption_LevelDetailText", detail);
|
|
|
|
|
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()) + "/"
|
|
|
|
|