| 339 | } |
| 340 | |
| 341 | void RecruitScreen::updateBaseHighlight() |
| 342 | { |
| 343 | int usage = state->current_base->getUsage(*state, FacilityType::Capacity::Quarters, lqDelta); |
| 344 | fillBaseBar(usage); |
| 345 | auto facilityLabel = form->findControlTyped<Label>("FACILITY_FIRST_TEXT"); |
| 346 | facilityLabel->setText(format("%i%%", usage)); |
| 347 | } |
| 348 | |
| 349 | void RecruitScreen::fillBaseBar(int percent) |
| 350 | { |