Changes

Jump to: navigation, search

Icons

166 bytes added, 09:47, 23 March 2021
no edit summary
[[File:icons.jpg|none|200px|thumb|left|Normal map converted by njob]]
Above picture shows the icon and its dimensions and the alpha channel. One icon texture can contain icons for multiple vehicles. To differentiate between multiple icons in one file, the game uses a tcoords.xml file that determines the coordinates of every icon in the file and its color mask. The file looks as follows:T
Vanilla game icons are located in <code> <nowiki><?xml version="1DriveLetter:\...0" encoding="utf-16"?> \Steam\steamapps\common\Mashinky\media\map\gui</brcodeCoord definiton looks as follows: <!-- TEXTURE COORDS --> <br/code>
<Coord id="8694AA88" x="0" y="0" w="40" h="25" /> <br/>
<Coord id="8694AA89" x="0" y="25" w="40" h="25" /> <br/>
</nowiki>
</code>
 
First line represents the whole icon and the second is for the color mask. Icons are then referenced in game assets main config file .xml
82
edits

Navigation menu