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

Method addAgentsToList

game/ui/components/agentassignment.cpp:496–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void AgentAssignment::addAgentsToList(sp<MultilistBox> list, const int listOffset)
497{
498 for (auto &a : agents)
499 {
500 auto agentControl = ControlGenerator::createAgentAssignmentControl(*state, a);
501 agentControl->setFuncPreRender(funcAgentUpdate);
502 agentControl->Size.x -= listOffset;
503 agentControl->SelectionSize.x -= listOffset;
504 list->addItem(agentControl);
505 }
506}
507
508void AgentAssignment::addVehiclesToList(sp<MultilistBox> list, const int listOffset)
509{

Callers

nothing calls this directly

Calls 2

setFuncPreRenderMethod · 0.80
addItemMethod · 0.45

Tested by

no test coverage detected