OpenTTD Source 20241224-master-gee860a5c8e
|
Functions related to signs. More...
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. | |
bool | CompanyCanRenameSign (const Sign *si) |
Check if the current company can rename a given sign. | |
void | ShowRenameSignWindow (const Sign *si) |
Show the window to change the text of a sign. | |
void | HandleClickOnSign (const Sign *si) |
Handle clicking on a sign. | |
void | DeleteRenameSignWindow (SignID sign) |
Close the sign window associated with the given sign. | |
Window * | ShowSignList () |
Open the sign list window. | |
Functions related to signs.
Definition in file signs_func.h.
bool CompanyCanRenameSign | ( | const Sign * | si | ) |
Check if the current company can rename a given sign.
*si | The sign in question. |
Definition at line 71 of file signs.cpp.
References _current_company, and OWNER_DEITY.
Referenced by CmdRenameSign(), and HandleClickOnSign().
void DeleteRenameSignWindow | ( | SignID | sign | ) |
Close the sign window associated with the given sign.
sign | The sign to close the window for. |
Definition at line 585 of file signs_gui.cpp.
References Window::Close(), FindWindowById(), WC_QUERY_STRING, and WN_QUERY_STRING_SIGN.
Referenced by Sign::~Sign().
void HandleClickOnSign | ( | const Sign * | si | ) |
Handle clicking on a sign.
si | The sign that was clicked on. |
Definition at line 556 of file signs_gui.cpp.
References _ctrl_pressed, _local_company, CompanyCanRenameSign(), Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem< Tpool >::index, OWNER_DEITY, RenameSign(), and ShowRenameSignWindow().
void PlaceProc_Sign | ( | TileIndex | tile | ) |
PlaceProc function, called when someone pressed the button if the sign-tool is selected.
tile | on which to place the sign |
Definition at line 122 of file signs_cmd.cpp.
References CcPlaceSign().
Referenced by TerraformToolbarWindow::OnPlaceObject(), MainToolbarWindow::OnPlaceObject(), and ScenarioEditorToolbarWindow::OnPlaceObject().
void ShowRenameSignWindow | ( | const Sign * | si | ) |
Show the window to change the text of a sign.
si | The sign to show the window for. |
Definition at line 573 of file signs_gui.cpp.
References CloseWindowByClass(), and WC_QUERY_STRING.
Referenced by CcPlaceSign(), and HandleClickOnSign().
Window * ShowSignList | ( | ) |
Open the sign list window.
Definition at line 392 of file signs_gui.cpp.
Referenced by MenuClickMap(), MainToolbarWindow::OnHotkey(), and SignListWindow::SignListGlobalHotkeys().
void UpdateAllSignVirtCoords | ( | ) |
Update the coordinates of all signs.
Definition at line 59 of file signs.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_sign_pool >::Iterate().
Referenced by UpdateAllVirtCoords().