ToME: the Tales of Maj'Eyal
http://forums.te4.org/

Trouble with tooltips
http://forums.te4.org/viewtopic.php?f=40&t=38784
Page 1 of 1

Author:  Castler [ Fri Sep 06, 2013 12:28 pm ]
Post subject:  Trouble with tooltips

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?

Author:  Castler [ Sat Sep 07, 2013 12:53 am ]
Post subject:  Re: Trouble with tooltips

This ended up being a very simple fix. In Game.lua, move the targetDisplayTooltip call after the engine.GameTurnBased.display call.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/