<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Icontypes.lua</id>
	<title>Icontypes.lua - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.fightorder.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Icontypes.lua"/>
	<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Icontypes.lua&amp;action=history"/>
	<updated>2026-04-21T04:08:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Icontypes.lua&amp;diff=634&amp;oldid=prev</id>
		<title>Qrow: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Icontypes.lua&amp;diff=634&amp;oldid=prev"/>
		<updated>2025-11-14T05:21:27Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:21, 13 November 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Qrow</name></author>
	</entry>
	<entry>
		<id>https://www.fightorder.net/wiki/index.php?title=Icontypes.lua&amp;diff=633&amp;oldid=prev</id>
		<title>Interwiki&gt;Gajop at 03:08, 3 December 2018</title>
		<link rel="alternate" type="text/html" href="https://www.fightorder.net/wiki/index.php?title=Icontypes.lua&amp;diff=633&amp;oldid=prev"/>
		<updated>2018-12-03T03:08:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Location==&lt;br /&gt;
&amp;lt;code&amp;gt;icontypes.lua&amp;lt;/code&amp;gt; is a file in the &amp;lt;code&amp;gt;Gamedata/&amp;lt;/code&amp;gt; directory of a Spring Game. &lt;br /&gt;
&lt;br /&gt;
==Purpose==&lt;br /&gt;
This file defines the icons used to represent units on the minimap and rendered in place of 3d geometry when zoomed out.&lt;br /&gt;
&lt;br /&gt;
==Source==&lt;br /&gt;
The engine source code which parses the data from this file is viewable here:&lt;br /&gt;
&lt;br /&gt;
* {{sourcelink|file=rts/Rendering/IconHandler.cpp}}&lt;br /&gt;
&lt;br /&gt;
==Data Types==&lt;br /&gt;
{{DataTypes}}&lt;br /&gt;
&lt;br /&gt;
==Details==&lt;br /&gt;
&lt;br /&gt;
Game developers can set icons for different types of units, (such as land, air, sea), or go so far as to give every unit its own icon. The different types icons will be shown for friendly units, and enemy units within Line Of Sight. For enemy units in radar range Spring will use the &amp;#039;default&amp;#039; icon.&lt;br /&gt;
&lt;br /&gt;
===IconType Properties===&lt;br /&gt;
{{tag&lt;br /&gt;
|name = bitmap&lt;br /&gt;
|type = string&lt;br /&gt;
|default = &amp;quot;&amp;quot;&lt;br /&gt;
|description = The location of the custom icon image (not limited to bitmaps!). If it is missing or incorrect, Spring replaces it with the standard radar dot. The bitmap will get blended with the team color, so there is no special team color channel. In order to look nice, the image will need to have an alpha channel for transparency.}}&lt;br /&gt;
&lt;br /&gt;
{{tag&lt;br /&gt;
|name = size&lt;br /&gt;
|type = float&lt;br /&gt;
|default = 1.0&lt;br /&gt;
|description = Acts as multiplier for the icon size. The larger the number, the larger the icon will be.}}&lt;br /&gt;
&lt;br /&gt;
{{tag&lt;br /&gt;
|name = distance&lt;br /&gt;
|type = float&lt;br /&gt;
|default = 1.0&lt;br /&gt;
|description = Acts as a multiplier for the distance at which the unit will show up as an icon. The larger the number, the further away the camera has to be from the unit for it to turn into an icon.}}&lt;br /&gt;
&lt;br /&gt;
{{tag&lt;br /&gt;
|name = radiusAdjust&lt;br /&gt;
|type = bool&lt;br /&gt;
|default = false&lt;br /&gt;
|description = Whether or not the icon should scale with the unit radius.}}&lt;br /&gt;
&lt;br /&gt;
===Assigning IconTypes===&lt;br /&gt;
To assign units to a specific icon type, set the {{xtaglink|Gamedev:UnitDefs|iconType}} attribute of their UnitDef to the type name set in &amp;lt;code&amp;gt;icontypes.lua&amp;lt;/code&amp;gt; (see [[#Example]])&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
iconType = &amp;quot;circle&amp;quot;,&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the {{xtaglink|Gamedev:UnitDefs|iconType}} tag is missing, Spring sets it to the &amp;quot;default&amp;quot; icontype. If the &amp;quot;default&amp;quot; type is not specified, Spring will create it with the default values. Furthermore, enemy units that are within radar range, but not in your Line Of Sight, will be shown as the default icon. Thus if there is a bitmap specified for the &amp;quot;default&amp;quot; icon type it will override the standard radar blip.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local iconTypes = {&lt;br /&gt;
  default = {&lt;br /&gt;
    size = 1,&lt;br /&gt;
    radiusadjust = true,&lt;br /&gt;
  },&lt;br /&gt;
  flag = {&lt;br /&gt;
    bitmap = &amp;quot;icons/flag.png&amp;quot;,&lt;br /&gt;
    size = 6,&lt;br /&gt;
    radiusadjust = true,&lt;br /&gt;
    distance = 100,&lt;br /&gt;
  },&lt;br /&gt;
  circle = {&lt;br /&gt;
    bitmap = &amp;quot;icons/circle.png&amp;quot;,&lt;br /&gt;
    size = 4,&lt;br /&gt;
    radiusadjust = true,&lt;br /&gt;
    distance = 100,&lt;br /&gt;
  },&lt;br /&gt;
  ...&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
return iconTypes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Gamedata]]&lt;/div&gt;</summary>
		<author><name>Interwiki&gt;Gajop</name></author>
	</entry>
</feed>