MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / txtTooltipIn

Method txtTooltipIn

src/Battlescape/BattlescapeState.cpp:2077–2084  ·  view source on GitHub ↗

* Shows a tooltip for the appropriate button. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

2075* @param action Pointer to an action.
2076*/
2077void 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.

Callers

nothing calls this directly

Calls 3

getTooltipMethod · 0.80
getSenderMethod · 0.80
setTextMethod · 0.45

Tested by

no test coverage detected