94 WKC_NUM_DECIMAL = 143,
148 bool UpdateCursorPosition(
int x,
int y,
bool queued_warp);
158 int left, top, width, height;
167 #if TTD_ENDIAN == TTD_BIG_ENDIAN 181 Colour(uint8 r, uint8 g, uint8 b, uint8 a = 0xFF) :
183 a(a), r(r), g(g), b(b)
185 b(b), g(g), r(r), a(a)
199 assert_compile(
sizeof(
Colour) ==
sizeof(uint32));
220 int left, top, right, bottom;
225 COLOUR_DARK_BLUE = COLOUR_BEGIN,
242 INVALID_COLOUR = 0xFF,
249 TC_FROMSTRING = 0x00,
255 TC_LIGHT_BROWN = 0x05,
259 TC_DARK_GREEN = 0x09,
263 TC_LIGHT_BLUE = 0x0D,
Helper template class that makes basic properties of given enumeration type visible from outsize...
uint32 PaletteID
The number of the palette.
DECLARE_ENUM_AS_BIT_SET(GenderEthnicity) enum CompanyManagerFaceVariable
Bitgroups of the CompanyManagerFace variable.
Definition of various endian-dependant macros.
bool dirty
the rect occupied by the mouse is dirty (redraw)
Data about how and where to blit pixels.
Point pos
logical mouse position
Information about the currently used palette.
bool vehchain
vehicle chain is dragged
uint sprite_count
number of sprites to draw
Index of the monospaced font in the font tables.
uint32 data
Conversion of the channel information to a 32 bit number.
uint8 a
colour channels in LE order
Combination of a palette sprite and a 'real' sprite.
const AnimCursor * animate_list
in case of animated cursor, list of frames
The most basic (normal) sprite.
No 8bpp support by hardware, do not try to use 8bpp video modes or hardware palettes.
bool visible
cursor is visible
FillRectMode
Define the operation GfxFillRect performs.
Point total_size
union of sprite properties
Types related to zooming in and out.
Point draw_size
position and size bounding-box for drawing
CursorID sprite
Must be set to LAST_ANIM when it is the last sprite of the loop.
Collection of variables for cursor-display and -animation.
PaletteAnimationSizes
Defines a few values that are related to animations using palette changes.
Fill rectangle with a single colour.
SpriteType
Types of sprites that might be loaded.
Special sprite for the map generator.
Apply a recolour sprite to the screen content.
TextColour
Colour of the strings, see _string_colourmap in table/string_colours.h or docs/ottd-colourtext-palett...
int wheel
mouse wheel movement
Informative template class exposing basic enumeration properties used by several other templates belo...
static const uint MILLISECONDS_PER_TICK
The number of milliseconds per game tick.
number of animated colours
bool fix_at
mouse is moving, but cursor is not (used for scrolling)
A single sprite of a list of animated cursors.
byte display_time
Amount of ticks this sprite will be shown.
Colour(uint data=0)
Create a new colour.
#define MAX_UVALUE(type)
The largest value that can be entered in a variable.
int first_dirty
The first dirty element.
Pseudosprite or other unusable sprite, used only internally.
#define TTD_BIG_ENDIAN
Big endian builds use this for TTD_ENDIAN.
Automatically detect the palette based on the graphics pack.
Draw only every second pixel, used for greying-out.
ZoomLevel
All zoom levels we know.
No support for 8bpp by OS or hardware, force 32bpp blitters.
uint32 SpriteID
The number of a sprite, without mapping bits and colourtables.
uint animate_timeout
in case of animated cursor, number of ticks to show the current cursor
Colour(uint8 r, uint8 g, uint8 b, uint8 a=0xFF)
Create a new colour.
Do not add shading to this text colour.
FontSize
Available font sizes.
PaletteType
Palettes OpenTTD supports.
Index of the normal font in the font tables.
All geometry types in OpenTTD.
bool in_window
mouse inside this window, determines drawing logic
Used to only draw a part of the sprite.
uint32 CursorID
The number of the cursor (sprite)
Coordinates of a point in 2D.
Structure to access the alpha, red, green, and blue channels from a 32 bit number.
Index of the small font in the font tables.
Colour value is already a real palette colour index, not an index of a StringColour.
Index of the large font in the font tables.
Support8bpp
Modes for 8bpp support.
Point delta
relative mouse movement in this tick
const AnimCursor * animate_cur
in case of animated cursor, current frame
#define DECLARE_POSTFIX_INCREMENT(type)
Some enums need to have allowed incrementing (i.e.
SpriteID sprite
The 'real' sprite.
int count_dirty
The number of dirty elements.
Index in the _palettes array from which all animations are taking places (table/palettes.h)
Fake keycode bit to indicate global hotkeys.
Full 8bpp support by OS and hardware.
PaletteID pal
The palette (use PAL_NONE) if not needed)