Toggle in-game console between opened and closed. */
| 424 | |
| 425 | /** Toggle in-game console between opened and closed. */ |
| 426 | void IConsoleSwitch() |
| 427 | { |
| 428 | switch (_iconsole_mode) { |
| 429 | case ICONSOLE_CLOSED: |
| 430 | new IConsoleWindow(); |
| 431 | break; |
| 432 | |
| 433 | case ICONSOLE_OPENED: case ICONSOLE_FULL: |
| 434 | CloseWindowById(WC_CONSOLE, 0); |
| 435 | break; |
| 436 | } |
| 437 | |
| 438 | MarkWholeScreenDirty(); |
| 439 | } |
| 440 | |
| 441 | /** Close the in-game console. */ |
| 442 | void IConsoleClose() |
no test coverage detected