OpenTTD Source: src/progress.h File Reference

OpenTTD Source 14.1

Functions
progress.h File Reference

Go to the source code of this file.

## Functions
bool | HasModalProgress ()
| Check if we are currently in a modal progress state. More...
void | SetModalProgress (bool state)
| Set the modal progress state. More...

## Detailed Description

Functions related to modal progress.

Definition in file progress.h.

## Function Documentation

## ◆ HasModalProgress()

bool HasModalProgress | ( |  | ) |
| inline

Check if we are currently in a modal progress state.

Returns
  Are we in the modal state?

Definition at line 17 of file progress.h.

References _in_modal_progress.

Referenced by GenerateWorld(), HandleKeypress(), HandleMouseEvents(), HandleToolbarHotkey(), InputLoop(), MayBeShown(), and StateGameLoop().

## ◆ SetModalProgress()

void SetModalProgress | ( | bool | state | ) |

Set the modal progress state.

Parameters

  state | The new state; are we modal or not?

Definition at line 22 of file progress.cpp.

References _in_modal_progress.

Referenced by CleanupGeneration(), GenerateWorld(), and ScanNewGRFFiles().