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

Method updateBaseHighlight

game/ui/base/recruitscreen.cpp:341–347  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

339}
340
341void 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
349void RecruitScreen::fillBaseBar(int percent)
350{

Callers

nothing calls this directly

Calls 3

formatFunction · 0.85
getUsageMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected