MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / DrawHint

Method DrawHint

engine/Poseidon/UI/InGame/InGameUIDraw.cpp:1678–1695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1676}
1677
1678void InGameUI::DrawHint()
1679{
1680 if (_hint->GetHint().GetLength() == 0)
1681 {
1682 return;
1683 }
1684 float age = Glob.uiTime - _hintTime;
1685 if (age < hintDimEndTime)
1686 {
1687 float alpha = 1.0;
1688 if (age > hintDimStartTime)
1689 {
1690 alpha = (hintDimEndTime - age) / (hintDimEndTime - hintDimStartTime);
1691 }
1692 _hint->SetPosition(_hintTop);
1693 _hint->DrawHUD(nullptr, alpha);
1694 }
1695}
1696
1697void InGameUI::DrawGroupUnit(AIUnit* u, float xScreen, float yScreen, float alpha, int align)
1698{

Callers

nothing calls this directly

Calls 4

GetLengthMethod · 0.45
GetHintMethod · 0.45
SetPositionMethod · 0.45
DrawHUDMethod · 0.45

Tested by

no test coverage detected