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