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

Method setInvertColor

src/Interface/ToggleTextButton.cpp:62–67  ·  view source on GitHub ↗

When this is set, Surface::invert() is called with the value from mid when it's time to invert the button

Source from the content-addressed store, hash-verified

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)
63{
64 _invertMid = mid;
65 _fakeGroup = 0;
66 _redraw = true;
67}
68
69/// handle draw() in case we need to paint the button a garish color
70void ToggleTextButton::draw()

Callers 2

GraphsStateMethod · 0.80
updateButtonMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected