Drag'm drop and tooltip conflict
The goal is to create a very simple addon able to keep track of the materials I want to farm. ATM, however, there are two contrasting effects: if I enable drag'n drop in the buttons (drag the item from the bag to the button, in order to keep track of it), the object tooltip is not displayed. By setting the "hidden" parameter to "true" in XML code, the tooltip becomes visible but it is no longer possible to drag 'n dop.
Is it possible to resolve this conflict? LUA code: Lua Code:
XML code: Code:
<Button name="UnitFarm_IconTemplate" virtual="true" enableMouse="true" enableKeyboard="true"> |
I would have your OnEnter handler check CursorHasItem() and show the tooltip if you're not holding one. Additionally have onReceive() show the tooltip when it's done processing the cursor.
Alternatively, you can just let the tooltip show what the button is already set to and have onReceive() update it. |
Tooltip is not displayed yet
Lua Code:
|
Quote:
Code:
local function onReceive(self) Lua Code:
|
All times are GMT -6. The time now is 10:42 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI