EmperorFool
Deity
How does the game decide what hover text to show, anyhow? Is it the widget type?
Yes, the WidgetType determines how the hover behaves. Unfortunately, the hover text creation code is in the DLL. There are a bunch of hover text features I'd love to add, e.g. culture and GP turns to the city hover.
The two integer parameters (data1 and data2) after the WidgetType also control the hover text generation sometimes. I suppose if you changed BUG you could have broken the hover text. Make sure you're passing in the target player ID as data1 and -1 as data2 to the setText() call.