|Go to Page...|
||Thread Tools||Display Modes|
|01-28-21, 10:15 PM||#1|
A Flamescale Wyrmkin
OnReceiveDrag OnClick scripts on the same button
I have a couple of issues my code.
I have a list of items that I can add to and remove from.
I am have created a button that can receive an item from a drag-drop, or click-drop or remove and item via it's itemID.
I have a text entry box that will accept itemID's and I can confirm the text entry is working as expected.
I can also confirm the remove item function works as it is used elsewhere in the addon.
When I try to remove an item either by drag-drop, click-drop or via itemID nothing happens.
Bugsack is not detecting any errors.
If I remove the tests that remove function works correctly.
Here are my functions:
And here is my onclick script;
Also, I need to work out how to correctly use two button scripts on the same button.
I need to have the button to get the itemlink of any item drag-dropped or clickdropped.
Also, I need to find out how to have multiple button scripts work together.
I know that I can use :SetScript("OnReceiveDrag", myFunctionToRemoveItemFromList); however, the function that I need to run requires two variables.
I thought I had it correct with the following;
I am really stuck with this one.
Any help would be great.
|WoWInterface » Developer Discussions » Lua/XML Help » OnReceiveDrag OnClick scripts on the same button|