Page 1 of 1

Unit Mod question

Posted: Sun Dec 30, 2012 10:33 pm
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?


RE: Unit Mod question

Posted: Thu Jan 10, 2013 5:37 am
by Magpius
a polite BUMP.

RE: Unit Mod question

Posted: Thu Jan 10, 2013 7:51 am
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.

RE: Unit Mod question

Posted: Thu Jan 10, 2013 10:43 pm
by Magpius
Thankyou very much.
Unit mod on the way