Merge pull request #1445 from akortunov/guifixes

Allow to add levelup a description for levels > 20
experimental
scrawl 7 years ago committed by GitHub
commit 00ae9a01a1

@ -143,11 +143,11 @@ namespace MWGui
mLevelText->setCaptionWithReplacing("#{sLevelUpMenu1} " + MyGUI::utility::toString(level)); mLevelText->setCaptionWithReplacing("#{sLevelUpMenu1} " + MyGUI::utility::toString(level));
std::string levelupdescription; std::string levelupdescription;
if(level > 20)
levelupdescription=world->getFallback()->getFallbackString("Level_Up_Default");
else
levelupdescription=world->getFallback()->getFallbackString("Level_Up_Level"+MyGUI::utility::toString(level)); levelupdescription=world->getFallback()->getFallbackString("Level_Up_Level"+MyGUI::utility::toString(level));
if (levelupdescription == "")
levelupdescription=world->getFallback()->getFallbackString("Level_Up_Default");
mLevelDescription->setCaption (levelupdescription); mLevelDescription->setCaption (levelupdescription);
unsigned int availableAttributes = 0; unsigned int availableAttributes = 0;

Loading…
Cancel
Save