I made a small mod that displays leader icons in the city state screen. You can find it in the mod browser.
The mod is compatible with other mods that add city states (you will get the default image). I tested it with Opera's City States of the World and it works.
I'm amazed how easy this was.
Enjoy
Edit:
v2 - fixed missing textures
v3 - added leaders for Quebec and Sydney
How to add new city states with custom leaderheads based on this mod
Based on Kruelgor's request, here's a quick guide:
1. Add the files in this mod to your project (Add->Existing Item)
2. Add a new city state via XML:
3. Add an insert statement in LeaderIcons.sql, with city name, texture name and leader name:
4. Edit the DDS texture file. You can use the template I posted (requires Paint.NET) or create a new one. If you do that make sure you keep the 420x200 size I defined in CityStateDiploPopup.xml (for Image ID="TitleIcon2"), otherwise it won't work. This is close to the maximum that the game allows (the engine seems to make a size check and if it's larger it won't get displayed).
The mod is compatible with other mods that add city states (you will get the default image). I tested it with Opera's City States of the World and it works.
I'm amazed how easy this was.
Enjoy
Edit:
v2 - fixed missing textures
v3 - added leaders for Quebec and Sydney
How to add new city states with custom leaderheads based on this mod
Based on Kruelgor's request, here's a quick guide:
1. Add the files in this mod to your project (Add->Existing Item)
2. Add a new city state via XML:
Spoiler :
PHP:
<?xml version="1.0" encoding="utf-8"?>
<GameData>
<MinorCivilizations>
<Row>
<Type>MINOR_CIV_ANTANANARIVO</Type>
<Description>Antananarivo</Description>
<ShortDescription>Antananarivo</ShortDescription>
<Adjective>Antananarivo</Adjective>
<DefaultPlayerColor>PLAYERCOLOR_MINOR_MIDDLE_CYAN</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_MINOR</ArtDefineTag>
<ArtStyleType>ARTSTYLE_SOUTH_AMERICA</ArtStyleType>
<MinorCivTrait>MINOR_TRAIT_MARITIME</MinorCivTrait>
</Row>
</MinorCivilizations>
<MinorCivilization_CityNames>
<Row>
<MinorCivType>MINOR_CIV_ANTANANARIVO</MinorCivType>
<CityName>Antananarivo</CityName>
</Row>
</MinorCivilization_CityNames>
<MinorCivilization_Flavors>
<!-- Antananarivo -->
<Row>
<MinorCivType>MINOR_CIV_ANTANANARIVO</MinorCivType>
<FlavorType>FLAVOR_NAVAL</FlavorType>
<Flavor>8</Flavor>
</Row>
<Row>
<MinorCivType>MINOR_CIV_ANTANANARIVO</MinorCivType>
<FlavorType>FLAVOR_GROWTH</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<MinorCivType>MINOR_CIV_ANTANANARIVO</MinorCivType>
<FlavorType>FLAVOR_CITY_DEFENSE</FlavorType>
<Flavor>10</Flavor>
</Row>
</MinorCivilization_Flavors>
</GameData>
3. Add an insert statement in LeaderIcons.sql, with city name, texture name and leader name:
Spoiler :
insert into MinorCivLeaders_mihaifx(MinorCivType, LeaderIcon, LeaderName) values('MINOR_CIV_ANTANANARIVO', 'antananarivo_leadericon.dds', 'Mighty Leader') ;
4. Edit the DDS texture file. You can use the template I posted (requires Paint.NET) or create a new one. If you do that make sure you keep the 420x200 size I defined in CityStateDiploPopup.xml (for Image ID="TitleIcon2"), otherwise it won't work. This is close to the maximum that the game allows (the engine seems to make a size check and if it's larger it won't get displayed).