• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

How let Python point to an image in Gamefont_75.dds?

Liambane

Rome's Praetorian
Joined
Aug 14, 2007
Messages
289
Location
West Roman Empire, Italy.
I've the porge leaders attitude Gamefont_75.dds and the main screen mod installed.
In my Gamefont_75.dds there are others icons so the porge's attitude icons aren't showed.

I see that some images in gamefont have names like "unhappy_char", "unhealthy_char", "star_char" but i dunno how this name are given (wich file?) and how to give a name to my icons.

How let Python point to an image in Gamefont_75.dds?

if iAtt == 0:
att = unichr(CyGame().getSymbolID(FontSymbols.UNHAPPY_CHAR))
elif iAtt == 1:
att = unichr(CyGame().getSymbolID(FontSymbols.UNHEALTHY_CHAR))
elif iAtt == 2:
att = unichr(CyGame().getSymbolID(FontSymbols.BULLET_CHAR))#unichr(CyGame().getSymbolID(FontSymbols.ANGRY_POP_CHAR))
elif iAtt == 3:
att = unichr(CyGame().getSymbolID(FontSymbols.HAPPY_CHAR))
elif iAtt == 4:
att = unichr(CyGame().getSymbolID(FontSymbols.STAR_CHAR))
else:
att = unichr(CyGame().getSymbolID(FontSymbols.BULLET_CHAR))
szTempBuffer = u" %s" %(att)
szBuffer = szBuffer + szTempBuffer

How let the Python point to the last line of my gamefont75 instead of that "unhealty char" ecc...? :confused: :confused: :confused:
 
Back
Top Bottom