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

Method setPressed

src/Interface/ToggleTextButton.cpp:53–59  ·  view source on GitHub ↗

set the _isPressed state of the button and force it to redraw

Source from the content-addressed store, hash-verified

51
52/// set the _isPressed state of the button and force it to redraw
53void ToggleTextButton::setPressed(bool pressed)
54{
55 if (_isPressed == pressed) return;
56 _isPressed = pressed;
57 _fakeGroup = _isPressed ? this : 0;
58 _redraw = true;
59}
60
61/// When this is set, Surface::invert() is called with the value from mid when it's time to invert the button
62void ToggleTextButton::setInvertColor(Uint8 mid)

Callers 7

buildUiMethod · 0.80
OptionsVideoStateMethod · 0.80
handleMethod · 0.80
OptionsGeoscapeStateMethod · 0.80
GraphsStateMethod · 0.80
updateButtonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected