Mercurial > wow > reaction
diff Bar.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 | c54c481ad0ed |
children | c964fb84560c |
line wrap: on
line diff
--- a/Bar.lua Mon Apr 14 23:03:19 2008 +0000 +++ b/Bar.lua Tue Apr 22 20:37:44 2008 +0000 @@ -214,7 +214,7 @@ ClampToButtons = function(bar) local bw, bh = GetButtonSize(bar) local r, c, s = GetButtonGrid(bar) - SetSize(bar, (bw+s)*c, (bh+s)*r ) + SetSize(bar, (bw+s)*c + 1, (bh+s)*r + 1) end HideGameTooltip = function() @@ -485,29 +485,25 @@ self.menuOpts = { type = "group", args = { - --[[ openConfig = { type = "execute", - name = L["Configure..."], - desc = L["Open the configuration dialogue for this bar"], - func = function() CloseMenu(self.controlFrame); module:OpenConfig(self) end, + name = L["Layout..."], + desc = L["Open the layout editor for this bar"], + func = function() CloseMenu(self.controlFrame); ReAction:CallModuleMethod("ConfigUI","LaunchLayoutEditor",self) end, disabled = InCombatLockdown, order = 1 }, - --]] delete = { type = "execute", name = L["Delete Bar"], desc = L["Remove the bar from the current profile"], + confirm = L["Are you sure you want to remove this bar?"], func = function() ReAction:EraseBar(self) end, order = 2 }, } } end - if self.modMenuOpts == nil then - self.modMenuOpts = { } - end OpenMenu(self.controlFrame, self.menuOpts) end @@ -515,12 +511,6 @@ ------ Export as a class-factory ------ ReAction.Bar = { - prototype = Bar, - - IsInstance = function(self, x) - return type(x) == "table" and x._classID == Bar._classID - end, - new = function(self, ...) local x = { } for k,v in pairs(Bar) do