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

Method btnIncomeClick

src/Geoscape/GraphsState.cpp:433–449  ·  view source on GitHub ↗

* Switches to the Income screen. * @param action Pointer to an action. */

Source from the content-addressed store, hash-verified

431 * @param action Pointer to an action.
432 */
433void GraphsState::btnIncomeClick(Action *)
434{
435 _alien = false;
436 _income = true;
437 _country = true;
438 _finance = false;
439 resetScreen();
440 drawLines();
441 _txtFactor->setVisible(true);
442 for (std::vector<ToggleTextButton *>::iterator iter = _btnCountries.begin(); iter != _btnCountries.end(); ++iter)
443 {
444 (*iter)->setVisible(true);
445 }
446 _btnCountryTotal->setVisible(true);
447 _txtTitle->setBig();
448 _txtTitle->setText(tr("STR_INCOME"));
449}
450
451/**
452 * Switches to the Finances screen.

Callers

nothing calls this directly

Calls 3

setVisibleMethod · 0.45
setBigMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected