OpenTTD
signs_func.h
Go to the documentation of this file.
1 /* $Id: signs_func.h 20516 2010-08-16 16:15:22Z terkhen $ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * 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.
6  * 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.
7  * 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 <http://www.gnu.org/licenses/>.
8  */
9 
12 #ifndef SIGNS_FUNC_H
13 #define SIGNS_FUNC_H
14 
15 #include "signs_type.h"
16 #include "tile_type.h"
17 
18 struct Window;
19 extern SignID _new_sign_id;
20 
22 void PlaceProc_Sign(TileIndex tile);
23 
24 /* signs_gui.cpp */
25 void ShowRenameSignWindow(const Sign *si);
26 void HandleClickOnSign(const Sign *si);
28 
30 
31 #endif /* SIGNS_FUNC_H */
void DeleteRenameSignWindow(SignID sign)
Close the sign window associated with the given sign.
Definition: signs_gui.cpp:580
Window * ShowSignList()
Open the sign list window.
Definition: signs_gui.cpp:403
SignID _new_sign_id
The last built sign.
Definition: signs_cmd.cpp:27
void UpdateAllSignVirtCoords()
Update the coordinates of all signs.
Definition: signs.cpp:56
Data structure for an opened window.
Definition: window_gui.h:271
void PlaceProc_Sign(TileIndex tile)
PlaceProc function, called when someone pressed the button if the sign-tool is selected.
Definition: signs_cmd.cpp:132
void ShowRenameSignWindow(const Sign *si)
Show the window to change the text of a sign.
Definition: signs_gui.cpp:568
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
void HandleClickOnSign(const Sign *si)
Handle clicking on a sign.
Definition: signs_gui.cpp:555
uint16 SignID
The type of the IDs of signs.
Definition: signs_type.h:16
Types related to tiles.
Types related to signs.