mouse over tooltip

wait321

Chieftain
Joined
Feb 25, 2004
Messages
11
Where is the code for the tooltip that displays when the mouse hovers over an entry in the pedia or a button in the city build screen? I want to change what it says but I can't find it in the python or SDK.
 
It's in the SDK. Look at GameTextMgr.cpp IIRC. It's been a while since I looked for it (I wanted to add some stuff to the city hover). Let me know if you really cannot find it. I found it by taking a function I knew it would be calling -- e.g. getCultureRate() -- and doing a search for it in all the files using my editor.
 
I struggled with this recently also. I suggest searching for that particular wording in the XML, getting the name of the XML identifier, and then searching for the XML identifier in the SDK. Sometimes you can just change the XML, but if you have new variables to display you'll need to change the SDK function.
 
Back
Top Bottom