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
21 void UpdateAllSignVirtCoords();
22 void PlaceProc_Sign(TileIndex tile);
23
24 /* signs_gui.cpp */
25 void ShowRenameSignWindow(const Sign *si);
26 void HandleClickOnSign(const Sign *si);
27 void DeleteRenameSignWindow(SignID sign);
28
29 Window *ShowSignList();
30
31 #endif /* SIGNS_FUNC_H */
DeleteRenameSignWindow
void DeleteRenameSignWindow(SignID sign)
Close the sign window associated with the given sign.
Definition: signs_gui.cpp:580
ShowSignList
Window * ShowSignList()
Open the sign list window.
Definition: signs_gui.cpp:403
_new_sign_id
SignID _new_sign_id
The last built sign.
Definition: signs_cmd.cpp:27
UpdateAllSignVirtCoords
void UpdateAllSignVirtCoords()
Update the coordinates of all signs.
Definition: signs.cpp:56
Window
Data structure for an opened window.
Definition: window_gui.h:271
PlaceProc_Sign
void PlaceProc_Sign(TileIndex tile)
PlaceProc function, called when someone pressed the button if the sign-tool is selected.
Definition: signs_cmd.cpp:132
ShowRenameSignWindow
void ShowRenameSignWindow(const Sign *si)
Show the window to change the text of a sign.
Definition: signs_gui.cpp:568
TileIndex
uint32 TileIndex
The index/ID of a Tile.
Definition: tile_type.h:80
Sign
Definition: signs_base.h:23
HandleClickOnSign
void HandleClickOnSign(const Sign *si)
Handle clicking on a sign.
Definition: signs_gui.cpp:555
SignID
uint16 SignID
The type of the IDs of signs.
Definition: signs_type.h:16
tile_type.h
Types related to tiles.
signs_type.h
Types related to signs.