View topic - tooltip problem



All times are UTC + 1 hour


Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: tooltip problem
PostPosted: 29 Aug 2009, 18:11 

Joined: 21 Aug 2009, 11:47
I try to change a tooltip widget (fromLolUI) so the tooltip only shows up when the cursor is over a unit or a buildpic or commands.
I changed/added this lines : 163-167; 236-238. But it still doesn't work. :(


Attachments:
tooltip.lua [6.92 KiB]
Downloaded 111 times
Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 31 Aug 2009, 03:04 
Omnidouche
User avatar

Joined: 16 Oct 2004, 18:40
Location: I still have more posts than you.
I probably know enough to fix this but I don't use lolui... what specifically "doesn't work"?


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 31 Aug 2009, 10:23 

Joined: 21 Aug 2009, 11:47
When the cursor is over a unit the tooltip is shown but when the cursor is over a buildpic/commandbutton the tooltip is still hidden.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 31 Aug 2009, 12:09 
Omnidouche
User avatar

Joined: 16 Oct 2004, 18:40
Location: I still have more posts than you.
Nevermind then, I have no idea how to fix that. Someone smarter and better-looking will help.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 31 Aug 2009, 12:59 

Joined: 18 Aug 2007, 18:04
LolUI doesn't use standard spring tooltip system so for it to show up when you mouse over build icons you have to use the LolUI buildmenu.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 31 Aug 2009, 16:38 

Joined: 21 Aug 2009, 11:47
I use the LolUI buildmenu.
I already tried to make it show up when the build menu is shown and it worked but I wont it to show up when the mouse is over an icon not only when the build/commandmenu is shown.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 30 Sep 2009, 18:31 

Joined: 21 Aug 2009, 11:47
Regret can you please have a look at the file I attached once and tell me what I am doing wrong. Now I'm using the whole LolUI but it still doesn't work.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 30 Sep 2009, 21:34 

Joined: 18 Aug 2007, 18:04
thedude wrote:
Regret can you please have a look at the file I attached once and tell me what I am doing wrong. Now I'm using the whole LolUI but it still doesn't work.

You didn't set your "a" to true when the tooltip comes from other sources than unit or feature.

Try this


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 02 Oct 2009, 16:06 

Joined: 21 Aug 2009, 11:47
Thanks it works!
The problem is the tooltip is also shown when the cursor is over trees for example, is it possible to check if the cursor is over a buildpic (or commandbutton)?
like (sadly doesn't work):
Code:
if ((pointedobject == "buildpic")or(pointedobject == "command") ) then ...


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 04 Oct 2009, 21:12 

Joined: 18 Aug 2007, 18:04
thedude wrote:
Thanks it works!
The problem is the tooltip is also shown when the cursor is over trees for example, is it possible to check if the cursor is over a buildpic (or commandbutton)?
like (sadly doesn't work):
Code:
if ((pointedobject == "buildpic")or(pointedobject == "command") ) then ...

Delete line 169 in the last tooltip.lua I uploaded in this thread.


Top
 Offline Profile  
 
 Post subject: Re: tooltip problem
PostPosted: 06 Oct 2009, 08:54 

Joined: 21 Aug 2009, 11:47
It's not the way I wanted to do it but it works, thx. :P


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

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google Feedfetcher and 0 guests


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

Site layout created by Roflcopter et al.