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

Method setModal

src/Engine/State.cpp:339–342  ·  view source on GitHub ↗

* Changes the current modal surface. If a surface is modal, * then only that surface can receive events. This is used * when an element needs to take priority over everything else, * eg. focus. * @param surface Pointer to modal surface, NULL for no modal. */

Source from the content-addressed store, hash-verified

337 * @param surface Pointer to modal surface, NULL for no modal.
338 */
339void State::setModal(InteractiveSurface *surface)
340{
341 _modal = surface;
342}
343
344/**
345 * Replaces a certain amount of colors in the state's palette.

Callers 3

~TextEditMethod · 0.80
setFocusMethod · 0.80
toggleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected