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

Method render

game/ui/base/transferscreen.cpp:691–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691void TransferScreen::render()
692{
693 TransactionScreen::render();
694
695 // Highlight second selected base
696 auto viewBase = currentSecondView->getData<Base>();
697 if (second_base == viewBase)
698 {
699 Vec2<int> pos = currentSecondView->getLocationOnScreen() - 2;
700 Vec2<int> size = currentSecondView->Size + 4;
701 fw().renderer->drawRect(pos, size, COLOUR_RED);
702 }
703}
704
705}; // namespace OpenApoc

Callers

nothing calls this directly

Calls 2

getLocationOnScreenMethod · 0.80
drawRectMethod · 0.45

Tested by

no test coverage detected