Trouble with tooltips
Moderator: Moderator
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?
			
			
									
									
						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.