OpenTTD Source  12.0-beta2
signs_func.h File Reference
#include "signs_type.h"
#include "tile_type.h"

Go to the source code of this file.

Functions

void UpdateAllSignVirtCoords ()
 Update the coordinates of all signs.
 
void PlaceProc_Sign (TileIndex tile)
 PlaceProc function, called when someone pressed the button if the sign-tool is selected. More...
 
void ShowRenameSignWindow (const Sign *si)
 Show the window to change the text of a sign. More...
 
void HandleClickOnSign (const Sign *si)
 Handle clicking on a sign. More...
 
void DeleteRenameSignWindow (SignID sign)
 Close the sign window associated with the given sign. More...
 
WindowShowSignList ()
 Open the sign list window. More...
 

Variables

SignID _new_sign_id
 The last built sign.
 

Detailed Description

Functions related to signs.

Definition in file signs_func.h.

Function Documentation

◆ DeleteRenameSignWindow()

void DeleteRenameSignWindow ( SignID  sign)

Close the sign window associated with the given sign.

Parameters
signThe sign to close the window for.

Definition at line 591 of file signs_gui.cpp.

References Window::Close(), FindWindowById(), WC_QUERY_STRING, and WN_QUERY_STRING_SIGN.

Referenced by Sign::~Sign().

◆ HandleClickOnSign()

void HandleClickOnSign ( const Sign si)

Handle clicking on a sign.

Parameters
siThe sign that was clicked on.

Definition at line 566 of file signs_gui.cpp.

References _ctrl_pressed, _local_company, and OWNER_DEITY.

◆ PlaceProc_Sign()

void PlaceProc_Sign ( TileIndex  tile)

PlaceProc function, called when someone pressed the button if the sign-tool is selected.

Parameters
tileon which to place the sign

Definition at line 131 of file signs_cmd.cpp.

References CcPlaceSign(), CMD_MSG, CMD_PLACE_SIGN, and DoCommandP().

◆ ShowRenameSignWindow()

void ShowRenameSignWindow ( const Sign si)

Show the window to change the text of a sign.

Parameters
siThe sign to show the window for.

Definition at line 579 of file signs_gui.cpp.

References CloseWindowByClass(), and WC_QUERY_STRING.

Referenced by CcPlaceSign().

◆ ShowSignList()

Window* ShowSignList ( )

Open the sign list window.

Returns
newly opened sign list window, or nullptr if the window could not be opened.

Definition at line 402 of file signs_gui.cpp.