First Button Hook Attempt
This adds a button next to the quest "Accept" button labeled "Accept Track". When pressed the quest is accepted and quest tracking is turned on. It seems to be working ok, but thought I would put it here for review and see if there was something different I should have done.
AcceptAndTrack.toc Lua Code:
AcceptAndTrack.lua Lua Code:
|
With these in mind, here's with the changes I've made. Lua Code:
|
Thank you
I really appreciate the help!!
|
Persistence problem with the button
I noticed that the button is showing up on the frame when the quest is being turned in.
i've tried a couple ways of hiding the button with no luck. I tried setting IsShown to the same state as the accept button but the accept button is always reporting that shown is true. Then I tried to add another event QUEST_COMPLETE but that doesn't seem to help either. Although it seems obvious, I'm a bit confused as to how the show/hide button code works. I've looked at events with /etrace to see if there was another event I could use but no luck. I used /framestack to examine the buttons but so far I haven't found anything. |
I swapped the button's parent to QuestFrameDetailPanel. That should do the trick.
|
Works great
That works.
I opened up /framestack to understand the difference. Thanks for the help. |
All times are GMT -6. The time now is 02:22 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI