OpenTTD Source
1.11.0-beta2
|
Specialised ViewportSign that tracks whether it is valid for entering into a Kdtree. More...
#include <viewport_type.h>
Public Member Functions | |
void | UpdatePosition (int center, int top, StringID str, StringID str_small=STR_NULL) |
Update the position of the viewport sign. More... | |
![]() | |
void | UpdatePosition (int center, int top, StringID str, StringID str_small=STR_NULL) |
Update the position of the viewport sign. More... | |
void | MarkDirty (ZoomLevel maxzoom=ZOOM_LVL_MAX) const |
Mark the sign dirty in all viewports. More... | |
Data Fields | |
bool | kdtree_valid |
Are the sign data valid for use with the _viewport_sign_kdtree? | |
![]() | |
int32 | center |
The center position of the sign. | |
int32 | top |
The top of the sign. | |
uint16 | width_normal |
The width when not zoomed out (normal font) | |
uint16 | width_small |
The width when zoomed out (small font) | |
Specialised ViewportSign that tracks whether it is valid for entering into a Kdtree.
Definition at line 57 of file viewport_type.h.
|
inline |
Update the position of the viewport sign.
Note that this function hides the base class function.
Definition at line 64 of file viewport_type.h.
References ViewportSign::top, and ViewportSign::UpdatePosition().
Referenced by Waypoint::UpdateVirtCoord(), Sign::UpdateVirtCoord(), and Town::UpdateVirtCoord().