| 1676 | } |
| 1677 | |
| 1678 | void 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 | |
| 1697 | void InGameUI::DrawGroupUnit(AIUnit* u, float xScreen, float yScreen, float alpha, int align) |
| 1698 | { |
nothing calls this directly
no test coverage detected