OpenTTD Source  20240915-master-g3784a3d3d6
terraform_gui.h File Reference
#include "window_type.h"

Go to the source code of this file.

Functions

WindowShowTerraformToolbar (Window *link=nullptr)
 Show the toolbar for terraforming in the game. More...
 
WindowShowEditorTerraformToolbar ()
 Show the toolbar for terraforming in the scenario editor. More...
 

Detailed Description

GUI stuff related to terraforming.

Definition in file terraform_gui.h.

Function Documentation

◆ ShowEditorTerraformToolbar()

Window* ShowEditorTerraformToolbar ( )

Show the toolbar for terraforming in the scenario editor.

Returns
The allocated toolbar if the window was newly opened, else nullptr.

Definition at line 751 of file terraform_gui.cpp.

◆ ShowTerraformToolbar()

Window* ShowTerraformToolbar ( Window link)

Show the toolbar for terraforming in the game.

Parameters
linkThe toolbar we might want to link to.
Returns
The allocated toolbar if the window was newly opened, else nullptr.

Definition at line 368 of file terraform_gui.cpp.

References _local_company, and Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_company_pool >::IsValidID().

Referenced by MenuClickForest().