View Single Post
09-22-10, 04:27 AM   #6
spiel2001
nUI's Author
 
spiel2001's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2008
Posts: 7,724
Cool... thanks Brillynt.

We can probably work around the taint problem by using the visibility engine in the setup of the frame instead of the Show() / Hide() methods in the update...

Code:
RegisterStateDriver( frame, "visibility", "[target=vehicle, exists] hide; [target=pet, exists] show; hide" );
Code:
if update_state then
    for i=1, #frame.Buttons do
        frame.updateState( i );
    end
end
__________________

What people don't get is that I am, ultimately, an artist at heart.
My brush has two colors, 1 and 0, and my canvas is made of silicon.



Official nUI Web Site: http://www.nUIaddon.com
Official nUI Support Forum: http://forums.nUIaddon.com
My day job: http://www.presidio.com/