03/06/15, 07:42 AM | #1 |
New in XML.. Tooltips doesn't work..
Heya here,
So another addon for me and this time a lot of XML inside it. So, I've set a huge block which works a bit, but, I'm now having a problem on adding tooltips or make them "clickable" Think it's a little forgive, but I looked a bit, so, here is my snippets.. PS: If I /zgoo mouse my button, it doesn't show my button, but the parent object, it's maybe that ? A button that need a tooltip is delcared as you see below i've dropped a lot of buttons for the copy/paste). Lua Code:
Lua Code:
I've also tried this : Lua Code:
And also this : Lua Code:
I'll also, for a later usage need some skill tooltips. I was planning in using this code : Lua Code:
which doesn't work either. I've surely missed something, maybe in my copy paste, but if anyone knows ? thanks Last edited by Ayantir : 03/06/15 at 07:48 AM. |
|
03/06/15, 08:03 AM | #2 | |
|
||
03/06/15, 08:05 AM | #3 | ||
|
|
||
03/06/15, 08:36 AM | #4 | ||
Thank you,
But no, it doesn't work (I had already mouseEnabled my button in xml), and if I Lua Code:
it's same problem. And in zgoo, the button is well enabled (same if I only set mouEnabled in xml). It's like my buttons are in the background and totally inactive.
Lua Code:
(or local mybutton = SuperStarXMLWarriorLordTot) |
|||
03/06/15, 09:09 AM | #5 | |
Hi, Ayantir.
line 59 is tooltip:ClearLines() (with tooltip as 1. argument) I'm currently at work and can not verify, but shouldn't Button be the parent of BackDrop and Label? CU |
||
03/06/15, 10:27 AM | #6 |
|
InitializeTooltip(SkillTooltip, SuperStarXMLWarriorLordTot, LEFT, 150, 0, CENTER)
SkillTooltip:SetChampionSkillAbility(disciplineIndex, skillIndex, 0) |
03/19/15, 05:44 PM | #7 |
Thanks for your messages,
The final conclusion : Button don't accept tooltips without an inherit (at list inherit="ZO_DefaultTextButton") . You must use labels. If you need to use a button, you can cheat with button:GetLabelControl():SetHandler("OnMouseUp", etc) |
|
03/19/15, 10:31 PM | #8 |
|
It wont work because your button has no hit box...Its dimensions are 0 width 0 height, the OnMouseEnter event will not fire. Thats the same reason /zgoo mouse wont show you the control and why you can't click it. Your mouse isn't over the button because it has no dimensions.
Just add dimensions to the button and it works: xml Code:
Lua Code:
Last edited by circonian : 03/19/15 at 10:35 PM. |
03/19/15, 10:35 PM | #9 |
huhu thank you
|
|
ESOUI » AddOns » AddOn Help/Support » New in XML.. Tooltips doesn't work.. |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|