Mercurial > wow > reaction
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 130:6e4a11b9d290 | 131:e39d80bb0b7a |
|---|---|
| 166 | 166 |
| 167 local f = self:GetFrame() | 167 local f = self:GetFrame() |
| 168 local barFrame = bar:GetFrame() | 168 local barFrame = bar:GetFrame() |
| 169 local config = self:GetConfig() | 169 local config = self:GetConfig() |
| 170 | 170 |
| 171 local frames = { } | |
| 172 self.frames = frames | |
| 173 frames.icon = _G[name.."Icon"] | |
| 174 frames.flash = _G[name.."Flash"] | |
| 175 frames.hotkey = _G[name.."HotKey"] | |
| 176 frames.count = _G[name.."Count"] | |
| 177 frames.name = _G[name.."Name"] | |
| 178 frames.border = _G[name.."Border"] | |
| 179 frames.cooldown = _G[name.."Cooldown"] | |
| 180 frames.normalTexture = _G[name.."NormalTexture"] | |
| 181 | |
| 182 self.hotkey = frames.hotkey -- alias for Button methods | |
| 183 self.border = frames.border -- alias for Button methods | |
| 184 | |
| 185 self.rangeTimer = TOOLTIP_UPDATE_TIME | 171 self.rangeTimer = TOOLTIP_UPDATE_TIME |
| 186 | 172 |
| 187 -- set up the base action ID | 173 -- set up the base action ID |
| 188 self:SetActionIDPool("action",120) | 174 self:SetActionIDPool("action",120) |
| 189 config.actionID = self:AcquireActionID(config.actionID, idHint) | 175 config.actionID = self:AcquireActionID(config.actionID, idHint) |
