1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 09:06:43 +00:00

Closes #1078: Show stat bar text even when 0

This commit is contained in:
scrawl 2014-01-02 21:48:33 +01:00
parent 299690631f
commit eba60858dd

View file

@ -528,14 +528,9 @@ namespace MWGui
if (mBarTextWidget) if (mBarTextWidget)
{ {
if (mValue >= 0 && mMax > 0) std::stringstream out;
{ out << mValue << "/" << mMax;
std::stringstream out; static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption(out.str().c_str());
out << mValue << "/" << mMax;
static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption(out.str().c_str());
}
else
static_cast<MyGUI::TextBox*>(mBarTextWidget)->setCaption("");
} }
} }
void MWDynamicStat::setTitle(const std::string& text) void MWDynamicStat::setTitle(const std::string& text)