Mercurial > wow > reaction
comparison modules/ReAction_Action/ReAction_Action.lua @ 78:502cdb5666e2
Removed OnAttributeChanged handler for action buttons (which was already installed by the Blizzard frame)
| author | Flick <flickerstreak@gmail.com> |
|---|---|
| date | Tue, 24 Jun 2008 00:10:33 +0000 |
| parents | da8ba8783924 |
| children | 3499ac7c3a9b |
comparison
equal
deleted
inserted
replaced
| 77:da8ba8783924 | 78:502cdb5666e2 |
|---|---|
| 244 self.name = config.name | 244 self.name = config.name |
| 245 config.actionID = ActionIDList[config.actionID] -- gets a free one if none configured | 245 config.actionID = ActionIDList[config.actionID] -- gets a free one if none configured |
| 246 self.nPages = 1 | 246 self.nPages = 1 |
| 247 | 247 |
| 248 local f = CreateFrame("CheckButton", self.name, bar:GetButtonFrame(), "ActionBarButtonTemplate") | 248 local f = CreateFrame("CheckButton", self.name, bar:GetButtonFrame(), "ActionBarButtonTemplate") |
| 249 | |
| 250 -- this will probably cause taint and/or performance problems, using right now for display/debugging purposes | |
| 251 f:SetScript("OnAttributeChanged", ActionButton_UpdateAction) | |
| 252 | 249 |
| 253 f:SetAttribute("action", config.actionID) | 250 f:SetAttribute("action", config.actionID) |
| 254 -- install mind control action support for all buttons here just for simplicity | 251 -- install mind control action support for all buttons here just for simplicity |
| 255 if self.idx <= 12 then | 252 if self.idx <= 12 then |
| 256 f:SetAttribute("action-mc", 120 + self.idx) | 253 f:SetAttribute("action-mc", 120 + self.idx) |
