Unit Mod question

Post new mods and scenarios here.

Moderator: MOD_Commander_The_Great_War

Post Reply
User avatar
Magpius
Posts: 1679
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

Unit Mod question

Post by Magpius »

Can the unit's flag emblem and unit strength numbers be relocated/ altered?
I've found some emblems that can be tweaked, and a folder of number.png's... am I on the right trail here?

User avatar
Magpius
Posts: 1679
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: Unit Mod question

Post by Magpius »

a polite BUMP.
User avatar
Lukas
Posts: 349
Joined: Mon May 31, 2010 6:40 pm

RE: Unit Mod question

Post by Lukas »

emblems can be found in data\graphics\flags (emblem_x100.png)
unit strength numbers in data\graphics\units (hp_x.png)

positions of all these icons (relative to hex center) can be altered in data\scripts\units.lua, the coordinates at the top:

Code: Select all

data.emblem = {{9, 13}, {7, 24}, {-27, 15}}
 
 data.health = {{13, 13}, {14, 23}, {-8, 16}}
 
 data.status = {{16, 13}, {23, 24}, {9 ,17}}

One set of coordinates for each zoom level.
Image
User avatar
Magpius
Posts: 1679
Joined: Thu Sep 20, 2007 11:21 pm
Location: Melbourne, Australia

RE: Unit Mod question

Post by Magpius »

Thankyou very much.
Unit mod on the way
Post Reply

Return to “Mods and Scenarios”