Mercurial > wow > reaction
diff ReAction.lua @ 50:c3c64e2def50
Assorted cleanup for hide/show grid, action ID labels, draggable resizing, etc
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Tue, 22 Apr 2008 20:37:44 +0000 |
parents | 7b7d178dec52 |
children | 7e09c02ae620 |
line wrap: on
line diff
--- a/ReAction.lua Mon Apr 14 23:03:19 2008 +0000 +++ b/ReAction.lua Tue Apr 22 20:37:44 2008 +0000 @@ -41,15 +41,13 @@ if type(x) == "string" then name = x bar = ReAction:GetBar(name) - elseif ReAction.Bar:IsInstance(x) then - bar = x + else for k,v in pairs(ReAction.bars) do - if v == bar then + if v == x then name = k + bar = x end end - else - error("bad argument to SelectBar") end return bar, name end @@ -118,10 +116,16 @@ ReAction:ShowConfig() elseif option == "layout" then ReAction:ShowLayout() + elseif option == "unlock" then + ReAction:SetConfigMode(true) + elseif option == "lock" then + ReAction:SetConfigMode(false) else ReAction:Print(("%3.1f.%d"):format(ReAction.version,ReAction.revision)) ReAction:Print("/reaction config") ReAction:Print("/reaction layout") + ReAction:Print("/reaction lock") + ReAction:Print("/reaction unlock") end end end