* Shows a tooltip for the appropriate button. * @param action Pointer to an action. */
| 2075 | * @param action Pointer to an action. |
| 2076 | */ |
| 2077 | void BattlescapeState::txtTooltipIn(Action *action) |
| 2078 | { |
| 2079 | if (allowButtons() && Options::battleTooltips) |
| 2080 | { |
| 2081 | _currentTooltip = action->getSender()->getTooltip(); |
| 2082 | _txtTooltip->setText(tr(_currentTooltip)); |
| 2083 | } |
| 2084 | } |
| 2085 | |
| 2086 | /** |
| 2087 | * Clears the tooltip text. |
nothing calls this directly
no test coverage detected