MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / addStat

Method addStat

src/Ufopaedia/ArticleStateArmor.cpp:133–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131 {}
132
133 void ArticleStateArmor::addStat(std::string label, int stat, bool plus)
134 {
135 if (stat != 0)
136 {
137 std::wostringstream ss;
138 if (plus && stat > 0)
139 ss << L"+";
140 ss << stat;
141 _lstInfo->addRow(2, tr(label).c_str(), ss.str().c_str());
142 _lstInfo->setCellColor(_row, 1, Palette::blockOffset(15)+4);
143 ++_row;
144 }
145 }
146
147 void ArticleStateArmor::addStat(std::string label, std::wstring stat)
148 {

Callers

nothing calls this directly

Calls 2

addRowMethod · 0.80
setCellColorMethod · 0.80

Tested by

no test coverage detected