OpenTTD Source 20250312-master-gcdcc6b491d
terraform_gui.h File Reference

GUI stuff related to terraforming. More...

#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.
 
WindowShowEditorTerraformToolbar ()
 Show the toolbar for terraforming in the scenario editor.
 

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 748 of file terraform_gui.cpp.

Referenced by ScenarioEditorToolbarWindow::OnHotkey(), and ScenarioEditorLandscapeGenerationWindow::TerraformToolbarEditorGlobalHotkeys().

◆ 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 363 of file terraform_gui.cpp.

References _current_text_dir, _local_company, CloseWindowById(), Window::height, Pool< Titem, Tindex, Tgrowth_step, Tpool_type, Tcache >::PoolItem<&_company_pool >::IsValidID(), Window::left, Window::SetDirty(), TD_RTL, Window::top, WC_SCEN_LAND_GEN, and Window::width.

Referenced by MenuClickForest(), MainToolbarWindow::OnHotkey(), and TerraformToolbarWindow::TerraformToolbarGlobalHotkeys().