MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / clear

Method clear

game/ui/general/agentsheet.cpp:136–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void AgentSheet::clear()
137{
138 for (int i = 0; i < 10; i++)
139 {
140 auto labelName = format("LABEL_%d", i + 1);
141 auto label = form->findControlTyped<Label>(labelName);
142 if (!label)
143 {
144 LogError("Failed to find UI control matching \"%s\"", labelName);
145 }
146 else
147 {
148 label->setText("");
149 }
150 }
151}
152
153sp<Image> AgentSheet::createStatsBar(int initialValue, int currentValue, int modifiedValue,
154 int maxValue, const std::pair<Colour, Colour> &colours,

Callers 15

updateLocationMethod · 0.45
eventOccuredMethod · 0.45
fillAgentControlMethod · 0.45
goToBattleMethod · 0.45
clearLocationMethod · 0.45
selectAgentMethod · 0.45
refreshInventoryItemsMethod · 0.45
processTemplateMethod · 0.45
closeScreenMethod · 0.45
updateAgentsMethod · 0.45
loadListMethod · 0.45

Calls 2

formatFunction · 0.85
setTextMethod · 0.45

Tested by

no test coverage detected