Mercurial > wow > reaction
diff classes/ActionButton.lua @ 131:e39d80bb0b7a
Refactored some code into Button, cleaned up PetActionButton a little
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 06 Mar 2009 23:58:02 +0000 |
parents | 28b430de5875 |
children | 16048f516f5e |
line wrap: on
line diff
--- a/classes/ActionButton.lua Fri Mar 06 23:44:55 2009 +0000 +++ b/classes/ActionButton.lua Fri Mar 06 23:58:02 2009 +0000 @@ -168,20 +168,6 @@ local barFrame = bar:GetFrame() local config = self:GetConfig() - local frames = { } - self.frames = frames - frames.icon = _G[name.."Icon"] - frames.flash = _G[name.."Flash"] - frames.hotkey = _G[name.."HotKey"] - frames.count = _G[name.."Count"] - frames.name = _G[name.."Name"] - frames.border = _G[name.."Border"] - frames.cooldown = _G[name.."Cooldown"] - frames.normalTexture = _G[name.."NormalTexture"] - - self.hotkey = frames.hotkey -- alias for Button methods - self.border = frames.border -- alias for Button methods - self.rangeTimer = TOOLTIP_UPDATE_TIME -- set up the base action ID