anansethespider
Warlord
- Joined
- Oct 27, 2016
- Messages
- 288
I'm running into some trouble modifying the UI to display icons for new units. Let's say there's a fully working unit called Bireme in the game, and I want to assign it the same icon set as the Galley.
I made XML files for Icons_Units, Icons_UnitPortraits and Icons_UnitFlags and defined new entries in each that copy existing atlas numbers. So for instance, here's my Icons_Units.xml
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<IconDefinitions>
<Row Name="ICON_UNIT_BIREME" Atlas="ICON_ATLAS_UNITS" Index="27"/>
<Row Name="ICON_UNIT_BIREME_FOW" Atlas="ICON_ATLAS_UNITS_FOW" Index="27"/>
</IconDefinitions>
</GameInfo>
where 27 is the number of the Galley. But unfortunately this doesn't seem to change anything. Any ideas?
I made XML files for Icons_Units, Icons_UnitPortraits and Icons_UnitFlags and defined new entries in each that copy existing atlas numbers. So for instance, here's my Icons_Units.xml
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<IconDefinitions>
<Row Name="ICON_UNIT_BIREME" Atlas="ICON_ATLAS_UNITS" Index="27"/>
<Row Name="ICON_UNIT_BIREME_FOW" Atlas="ICON_ATLAS_UNITS_FOW" Index="27"/>
</IconDefinitions>
</GameInfo>
where 27 is the number of the Galley. But unfortunately this doesn't seem to change anything. Any ideas?