OpenTTD Source 20251213-master-g1091fa6071
signs_func.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
10#ifndef SIGNS_FUNC_H
11#define SIGNS_FUNC_H
12
13#include "signs_type.h"
14#include "tile_type.h"
15
16struct Window;
17
19void PlaceProc_Sign(TileIndex tile);
20bool CompanyCanEditSign(const Sign *si);
21
22/* signs_gui.cpp */
23void ShowRenameSignWindow(const Sign *si);
24void HandleClickOnSign(const Sign *si);
26
28
29#endif /* SIGNS_FUNC_H */
void PlaceProc_Sign(TileIndex tile)
PlaceProc function, called when someone pressed the button if the sign-tool is selected.
void HandleClickOnSign(const Sign *si)
Handle clicking on a sign.
void DeleteRenameSignWindow(SignID sign)
Close the sign window associated with the given sign.
bool CompanyCanEditSign(const Sign *si)
Check if the current company can rename or move a given sign.
Definition signs.cpp:62
void ShowRenameSignWindow(const Sign *si)
Show the window to change the text of a sign.
void UpdateAllSignVirtCoords()
Update the coordinates of all signs.
Definition signs.cpp:50
Window * ShowSignList()
Open the sign list window.
Types related to signs.
Data structure for an opened window.
Definition window_gui.h:274
Types related to tiles.