Page 1 of 1

Trouble with tooltips

Posted: Fri Sep 06, 2013 12:28 pm
by Castler
I'm trying to add tooltips to my ShowEquipInven.lua (by using an on_select function, similar to ToME's) and am running into problems. If I use the normal game.tooltip, it generally works, but it's shown under the inventory / equipment dialog. If I try making a new tooltip owned by ShowEquipInven, it's shown on top, but it disappears as soon as its shown. What's the proper way to do this? How do I control tooltips' Z order and lifetime?

Re: Trouble with tooltips

Posted: Sat Sep 07, 2013 12:53 am
by Castler
This ended up being a very simple fix. In Game.lua, move the targetDisplayTooltip call after the engine.GameTurnBased.display call.