Page 1 of 1
tooltip problem
Posted: 29 Aug 2009, 19:11
by thedude
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.

Re: tooltip problem
Posted: 31 Aug 2009, 04:04
by Caydr
I probably know enough to fix this but I don't use lolui... what specifically "doesn't work"?
Re: tooltip problem
Posted: 31 Aug 2009, 11:23
by thedude
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.
Re: tooltip problem
Posted: 31 Aug 2009, 13:09
by Caydr
Nevermind then, I have no idea how to fix that. Someone smarter and better-looking will help.
Re: tooltip problem
Posted: 31 Aug 2009, 13:59
by Regret
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.
Re: tooltip problem
Posted: 31 Aug 2009, 17:38
by thedude
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.
Re: tooltip problem
Posted: 30 Sep 2009, 19:31
by thedude
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.
Re: tooltip problem
Posted: 30 Sep 2009, 22:34
by Regret
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
Re: tooltip problem
Posted: 02 Oct 2009, 17:06
by thedude
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: Select all
if ((pointedobject == "buildpic")or(pointedobject == "command") ) then ...
Re: tooltip problem
Posted: 04 Oct 2009, 22:12
by Regret
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: Select all
if ((pointedobject == "buildpic")or(pointedobject == "command") ) then ...
Delete line 169 in the last tooltip.lua I uploaded in this thread.
Re: tooltip problem
Posted: 06 Oct 2009, 09:54
by thedude
It's not the way I wanted to do it but it works, thx.
