mirror of https://github.com/OpenTTD/OpenTTD
(svn r20657) -Codechange: add function to draw NewGRF tileseq in the GUI
parent
bd48893478
commit
b376f8ae15
|
@ -106,6 +106,15 @@ static inline void DrawNewGRFTileSeq(const struct TileInfo *ti, const DrawTileSp
|
||||||
DrawCommonTileSeq(ti, dts, to, 0, stage, default_palette, true);
|
DrawCommonTileSeq(ti, dts, to, 0, stage, default_palette, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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
|
* Applies PALETTE_MODIFIER_TRANSPARENT and PALETTE_MODIFIER_COLOUR to a palette entry of a sprite layout entry
|
||||||
* @Note for ground sprites use #GroundSpritePaletteTransform
|
* @Note for ground sprites use #GroundSpritePaletteTransform
|
||||||
|
|
Loading…
Reference in New Issue