Quantcast

Updated readme

Cynyr [05-16-10 - 14:59]
Updated readme
Filename
README
oUF_PowerBar.lua
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)