OpenTTD Source 20241224-master-gee860a5c8e
progress.cpp File Reference

Functions for modal progress windows. More...

#include "stdafx.h"
#include "progress.h"
#include "safeguards.h"

Go to the source code of this file.

Functions

void SetModalProgress (bool state)
 Set the modal progress state.
 

Variables

bool _in_modal_progress = false
 Are we in a modal progress or not?
 

Detailed Description

Functions for modal progress windows.

Definition in file progress.cpp.

Function Documentation

◆ SetModalProgress()

void SetModalProgress ( bool  state)

Set the modal progress state.

Parameters
stateThe new state; are we modal or not?

Definition at line 22 of file progress.cpp.

References _in_modal_progress.

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

Variable Documentation

◆ _in_modal_progress

bool _in_modal_progress = false

Are we in a modal progress or not?

Definition at line 16 of file progress.cpp.

Referenced by HasModalProgress(), and SetModalProgress().