Changeset - r15959:4236f491bc28
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-08-28 18:23:58
rubidium@openttd.org
(svn r20657) -Codechange: add function to draw NewGRF tileseq in the GUI
1 file changed with 9 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/sprite.h
Show inline comments
 
@@ -107,6 +107,15 @@ static inline void DrawNewGRFTileSeq(con
 
}
 

	
 
/**
 
 * 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
0 comments (0 inline, 0 general)