ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Wed Jun 20, 2018 1:57 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Trouble with tooltips
PostPosted: Fri Sep 06, 2013 12:28 pm 
Offline
Thalore

Joined: Mon Mar 25, 2013 10:09 pm
Posts: 153
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?

_________________
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.


Top
 Profile  
 
PostPosted: Sat Sep 07, 2013 12:53 am 
Offline
Thalore

Joined: Mon Mar 25, 2013 10:09 pm
Posts: 153
This ended up being a very simple fix. In Game.lua, move the targetDisplayTooltip call after the engine.GameTurnBased.display call.

_________________
Qi Daozei (QDZ) - an Oriental-themed fantasy game for T-Engine. ToME Tips - auto-generated spoilers for ToME.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group