Blizzard Actionbars
I'm currently updating my actionbar mod and had a pretty frustrating time trying to adpet the first actionbar/bonusactionbar. It just didn't work out when it comes to combat. So I searched around and tukz already had something to work with.
I tried it yesterday and what you need is this pretty much this. This will handle the complete first bar. Source: http://github.com/tukz/Tukui/blob/ma...nbars/Bar1.lua But I need a little help here trying to understand what he did. As far as I understand it here is using SecureStateDrivers and onstate changed he is applying a new bar based on the page state. But how is the reference between the default buttons and the new bar being made? I see "SetFrameRef", "Execute" and "SetAttribute("_onstate-page"," but actually I don't understand what they do. |
Quote:
Code:
local button |
Quote:
Now the reason why Blizzard's code doesn't need to do that is because it updates the button visually via OnEvent in response to registered events while SecureStateDriver updates during OnUpdate. Since OnEvent is processed before OnUpdate, any state change made will not be picked up so you must force the update manually via a SetAttribute call in the secure environment since the OnAttributeChanged script also triggers a visual update. |
All times are GMT -6. The time now is 12:30 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI