| 134 | } |
| 135 | |
| 136 | void 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 | |
| 153 | sp<Image> AgentSheet::createStatsBar(int initialValue, int currentValue, int modifiedValue, |
| 154 | int maxValue, const std::pair<Colour, Colour> &colours, |
no test coverage detected