<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://newgrf-specs.tt-wiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Felixzero</id>
	<title>GRFSpecs - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://newgrf-specs.tt-wiki.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Felixzero"/>
	<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/wiki/Special:Contributions/Felixzero"/>
	<updated>2026-05-14T08:04:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://newgrf-specs.tt-wiki.net/index.php?title=NML:Alternative_sprites&amp;diff=2958</id>
		<title>NML:Alternative sprites</title>
		<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/index.php?title=NML:Alternative_sprites&amp;diff=2958"/>
		<updated>2012-01-08T22:18:33Z</updated>

		<summary type="html">&lt;p&gt;Felixzero: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NMLNavBlocksyntax}}&lt;br /&gt;
&lt;br /&gt;
A &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;alternative_sprites&amp;lt;/code&amp;gt; block allows you to specify alternative 32bpp sprites that are drop-in replacements for some real sprites in your grf. The syntax is as follows:&lt;br /&gt;
&lt;br /&gt;
 alternative_sprites(block_name, zoom_level[, filename]) {&lt;br /&gt;
 	[[NML:Realsprites|list of realsprites]]&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
block_name is the name of the replace/replace_new/fontglyph/spriteset-block for which you want to provide 32bpp sprites. zoom_level can be one of &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;ZOOM_LEVEL_NORMAL, ZOOM_LEVEL_Z0, ZOOM_LEVEL_Z1 or ZOOM_LEVEL_Z2&amp;lt;/code&amp;gt;. Please note that &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;ZOOM_LEVEL_NORMAL&amp;lt;/code&amp;gt; and &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;ZOOM_LEVEL_Z2&amp;lt;/code&amp;gt; are exactly the same, and that &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;ZOOM_LEVEL_Z0&amp;lt;/code&amp;gt; and &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;ZOOM_LEVEL_Z1&amp;lt;/code&amp;gt; are for the [http://wiki.openttd.org/32bpp_Extra_Zoom_Levels extra zoom project] only (3rd party project, not officially supported). Specifying a filename is optional, it&#039;s only useful if you have multiple sprites in the same file. If every sprite is in a separate file you&#039;ll have to specify the filename for each realsprite anyway, so you can leave it out of the alternative_sprites-block.&lt;br /&gt;
&lt;br /&gt;
The compiler nmlc will then create a sprite folder that must be copied in the TTD data/sprite/&amp;lt;name_of_the_newgrf&amp;gt; folder.&lt;/div&gt;</summary>
		<author><name>Felixzero</name></author>
	</entry>
</feed>