Shift Click Add Keystones to Solve Archaeology Function
Hello,
I recently came across stArchaeology. Thought it was a pretty neat and compact way to view the Archaeology frames. Wanted to rewrite most of it from the ground up (terrible idea I know) to add MoP and WoD artifacts. One thing I did not like, was the fly out solve menu stArch had. Currently, shift left click or shift+ctrl left click will solve the respective race's artifact. However, if I want to socket the artifact to solve, nothing will occur. Manually trying to add keystones to the blizzard_arch_UI button does not work, whether it be clicking the keystone "hole" or dragging the keystone to the socket. No Blizzard Function was prevented by an addon this time. Please find my code here: http://pastebin.com/dybyj2Zp All print debugging shows that the proper functions are firing, except, something is blocking the SocketItemToArtifact() function |
You aren't telling it what artifact to solve, presumably "SetSelectedArtifact(i)" should be inside of your "OnMouseDown" function.
|
Adding the line as suggested causes "Interface action failed because of an AddOn"
An action was blocked because of taint from stArchaeologist - SolveArtifact() |
Well now you have a new problem, because it appears that you can't call SolveArtifact() directly.
You may be able to create a secure button that /clicks the appropriate "solve" button on the archaeology frame in the interface for you. |
oh boy, let me try to contain my excitement
but seriously, thank you! |
Original Post updated with new problem.
|
Quote:
@sirann: You may want to look at the Better Archaology UI code for an example of how to socket keystones and solve artifacts in one click. I don't have time at the moment to go through your code and compare to figure out what's wrong with it. |
After a few hours of print debugging, I was able to elucidate the issue. Now I just need to perform archaeology skill checks on login and some other non critical stuff.
When I looked at your code, your "solve button" utilized a blizzard_archaeology template, which I believe is a secure button. Quite literally, if I take out the secure template in my button creation, it'll taint when I try to solve. Setting the secure template back in and reloading fixes the taint. But all that's fixed! Thanks for writing your addon so I could learn! And thank you for both of your replies! |
Quote:
Quote:
The only thing I can think of is you are somehow attempting to call the function without requiring a hardware event, but the code you've posted thusfar has always included a hardware event. |
All times are GMT -6. The time now is 12:34 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI