Revision for “Adding Custom Icons – By TimSt” created on February 29, 2024 @ 07:14:04
Title | Adding Custom Icons - By TimSt |
---|---|
Content | To add new icons edit the file Icons\Icons.xml. Near the bottom copy one of the existing entries for example:
<pre class="CodeBlock"> <Icon id="857429" texture="Icons/Macro Icons/Numbers/29.dds" name="29" /></pre>
Change the id value to something unique such as 900002.
Change the texture value to point to your new icon such as Icons/My Icons/MineNiter.dds
Change the name value to something appropriate such as "Mine Niter"
The new entry in Icons.xml would look like
<pre class="CodeBlock"> <Icon id="900002" texture="Icons/My Icons/MineNiter.dds" name="Mine Niter" /></pre>
To use this new icon when creating a macro edit the file Source\MacroPickerWindow.lua and add the id value you used, 900002 in this case, to the end of the list of icon ids listed in the variable MacroPickerWindow.MacroIcons
In your ui folder you will need to:
<ul>
<li>Create a folder 'My Icons' in the folder 'Icons',</li>
<li>Place your new icon in this folder</li>
<li>Copy the edited Icons.xml into the folder 'Icons'</li>
<li>Create, if not already present, the folder 'Source' in the parent 'my ui' folder</li>
<li>Copy the edited MacroPickerWindow.lua into the 'Source' folder.</li>
</ul> |
Excerpt |