diff options
author | rubidium <rubidium@openttd.org> | 2010-08-28 18:23:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-28 18:23:58 +0000 |
commit | b376f8ae15a053c3a8f54431517da0c235f45489 (patch) | |
tree | c988dd4172e8c9c4efdd1d6923bef1fc1f57c5b8 /src | |
parent | bd488934787b3587ec5048db59a7dd14c164ca70 (diff) | |
download | openttd-b376f8ae15a053c3a8f54431517da0c235f45489.tar.xz |
(svn r20657) -Codechange: add function to draw NewGRF tileseq in the GUI
Diffstat (limited to 'src')
-rw-r--r-- | src/sprite.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sprite.h b/src/sprite.h index 4ede1199f..5d1c7f07b 100644 --- a/src/sprite.h +++ b/src/sprite.h @@ -107,6 +107,15 @@ static inline void DrawNewGRFTileSeq(const struct TileInfo *ti, const DrawTileSp } /** + * Draw NewGRF object in GUI + * @param stage Sprite inside the Action1 spritesets to use, i.e. construction stage. + */ +static inline void DrawNewGRFTileSeqInGUI(int x, int y, const DrawTileSprites *dts, uint32 stage, PaletteID default_palette) +{ + DrawCommonTileSeqInGUI(x, y, dts, 0, stage, default_palette, true); +} + +/** * Applies PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOUR to a palette entry of a sprite layout entry * @Note for ground sprites use #GroundSpritePaletteTransform * @Note Not useable for OTTD internal spritelayouts from table/xxx_land.h as PALETTE_MODIFIER_TRANSPARENT is only set |