From 51bc1cb200cc7216e56887e56f553dec7aeb3150 Mon Sep 17 00:00:00 2001 From: Cynyr Date: Sun, 16 May 2010 09:59:00 -0500 Subject: [PATCH] Updated readme --- README | 1 + oUF_PowerBar.lua | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index e69de29..48c4304 100755 --- a/README +++ b/README @@ -0,0 +1 @@ +A display of "power" for rogues and druids(it would be easy to add another class on your own if you wanted.) Height and Width are configurable, other than that, there are no options. If you want to move it, get oUF_moveableframes by haste on wowinterface.com diff --git a/oUF_PowerBar.lua b/oUF_PowerBar.lua index 111570c..517f2cc 100755 --- a/oUF_PowerBar.lua +++ b/oUF_PowerBar.lua @@ -112,9 +112,9 @@ player:SetAttribute('unit', nil) driverstr='' if(select(2, UnitClass('player')) == 'DRUID') then - driverstr = '[stance:3,combat] cat; nocat' + driverstr = '[stance:3,combat] show; hide' elseif(select(2, UnitClass('player')) == 'ROGUE') then - driverstr = '[combat] cat; [stance:1] cat; nocat' + driverstr = '[combat] show; [stance:1] show; hide' end if(driverstr ~= '') then @@ -128,7 +128,7 @@ if(driverstr ~= '') then --Setting attr 'unit' to nil, makes the frame go away, setting it to -- to 'player', 'target', etc. _STATE:SetAttribute('_onstate-kitty', [[ - if(newstate == 'cat') then + if(newstate == 'show') then local frame = self:GetFrameRef('powerbar') frame:SetAttribute('unit', frame:GetAttribute('oldUnit')) frame:SetAttribute('oldUnit', nil) -- 1.7.9.5