changeset 15969:dbe7d60ea2fa draft

(svn r20657) -Codechange: add function to draw NewGRF tileseq in the GUI
author rubidium <rubidium@openttd.org>
date Sat, 28 Aug 2010 18:23:58 +0000
parents c8215bd591e2
children 8aa446dec4e5
files src/sprite.h
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/sprite.h
+++ b/src/sprite.h
@@ -107,6 +107,15 @@
 }
 
 /**
+ * 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