View Single Post
05-30-16, 09:21 AM   #14
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
I checked DuffedUI and to my suprise liquidbase is still using the page-swapping technique that I was using aswell in Cataclysm.

rActionBarStyler Cataclysm
https://github.com/zorker/rothui/blo...s/bar1.lua#L34

DuffedUI
https://github.com/liquidbase/Duffed...nbars/Bar1.lua

Hmmm. I got rid of the page swap because I could not get it working properly in MoP.
Benefit is that you can merge the possessbar, vehicle and overridebar into the actionbar1.

Basically what can be done is what Tuller wrote here:
http://www.wowinterface.com/forums/s...29&postcount=8

Thanks to the additions to the RestrictedEnvironment we can determine the current page in secure environment:
https://github.com/tomrus88/Blizzard...onment.lua#L86

Means we can emulate what the actionbar controller is doing aswell:
https://github.com/tomrus88/Blizzard...oller.lua#L117

With the exception that we do not load possessbar/overridebar but instead change the page of the first actionbar.

http://wowprogramming.com/docs/secure_template
http://wowwiki.wikia.com/wiki/Secure...rStateTemplate
http://www.wowace.com/addons/libacti...1-0/pages/api/
http://git.tukui.org/Elv/elvui/commi...41c06c21.patch

Bigger problem is finding good documentation on how to work with secure environments.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

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

Last edited by zork : 05-30-16 at 11:05 AM.