unit info ingame - bottom left box

keldath

LivE LonG AnD PrOsPeR
Joined
Dec 20, 2005
Messages
7,373
Location
israel
hi all,

i want to add info to the unit information on the box to the bottom left when in game,
the one that shows you the current selected unit and its data.

i just dont know where the files that has that info are named - python or cpp.

i changed the textmanager file and added stuff, but thats only shown in the pedia...

same goes for on hover unit on game play.

anyone can direct me?
 
Do you mean the tooltip? CvGameTextMgr does that, but you'll have to put it at the right place. The function
Code:
void CvGameTextMgr::setUnitHelp(CvWStringBuffer &szString, const CvUnit* pUnit, bool bOneLine, bool bShort)
is for the tooltip of actual units, the function
Code:
void CvGameTextMgr::setUnitHelp(CvWStringBuffer &szBuffer, UnitTypes eUnit, bool bCivilopediaText, bool bStrategyText, bool bTechChooserText, CvCity* pCity)
is for UnitInfos, and is shown in the pedia and the city screen, for example.
 
Top Bottom