View Single Post
10-15-10, 01:56 AM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)