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

Method postRender

game/ui/general/transactioncontrol.cpp:780–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780void TransactionControl::postRender()
781{
782 Control::postRender();
783
784 // Draw shade if inactive
785 static Vec2<int> shadePos = {0, 0};
786 if (tradeState.getLeftIndex() == tradeState.getRightIndex() ||
787 (tradeState.getLeftStock() == 0 && tradeState.getRightStock() == 0))
788 {
789 fw().renderer->draw(transactionShade, shadePos);
790 }
791}
792
793void TransactionControl::unloadResources()
794{

Callers

nothing calls this directly

Calls 5

getLeftStockMethod · 0.80
getRightStockMethod · 0.80
getLeftIndexMethod · 0.45
getRightIndexMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected