Mercurial > wow > reaction
comparison modules/ReAction_Action/ReAction_Action.lua @ 91:c2504a8b996c
Bug fixes
- action buttons resetting to 6 pixels
- stray prints
- config panels for action buttons not showing all panels
- fixed multi-ID typo
- fixed autocast model on pet buttons
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Fri, 17 Oct 2008 03:59:55 +0000 |
parents | 7cabc8ac6c16 |
children | 5f1d7a81317c |
comparison
equal
deleted
inserted
replaced
90:7cabc8ac6c16 | 91:c2504a8b996c |
---|---|
56 | 56 |
57 function module:OnEnable() | 57 function module:OnEnable() |
58 ReAction:RegisterBarType(L["Action Bar"], | 58 ReAction:RegisterBarType(L["Action Bar"], |
59 { | 59 { |
60 type = moduleID, | 60 type = moduleID, |
61 defaultButtonSize = 6, | 61 defaultButtonSize = 36, |
62 defaultBarRows = 1, | 62 defaultBarRows = 1, |
63 defaultBarCols = 12, | 63 defaultBarCols = 12, |
64 defaultBarSpacing = 3 | 64 defaultBarSpacing = 3 |
65 }, true) | 65 }, true) |
66 ReAction:GetModule("State"):RegisterStateProperty("page", nil, PropHandler.GetOptions(), PropHandler) | 66 ReAction:GetModule("State"):RegisterStateProperty("page", nil, PropHandler.GetOptions(), PropHandler) |
539 end | 539 end |
540 return p | 540 return p |
541 end | 541 end |
542 | 542 |
543 function Handle:SetMultiID(info, value) | 543 function Handle:SetMultiID(info, value) |
544 local p = ParseMultiID(#btns, self.config.nPages or 1, value) | 544 local p = ParseMultiID(#self.btns, self.config.nPages or 1, value) |
545 for page, b in ipairs(p) do | 545 for page, b in ipairs(p) do |
546 for button, id in ipairs(b) do | 546 for button, id in ipairs(b) do |
547 self.btns[button]:SetActionID(id, page) | 547 self.btns[button]:SetActionID(id, page) |
548 end | 548 end |
549 end | 549 end |
891 action = "*action-mc" | 891 action = "*action-mc" |
892 elseif page and state and page[state] then | 892 elseif page and state and page[state] then |
893 action = "*action-"..page[state] | 893 action = "*action-"..page[state] |
894 end | 894 end |
895 local value = self:GetAttribute(action) | 895 local value = self:GetAttribute(action) |
896 print("setting action",value,"page[state]=",page and page[state]) | |
897 self:SetAttribute("*action1",value) | 896 self:SetAttribute("*action1",value) |
898 ]]) | 897 ]]) |
899 | 898 |
900 self.frame = f | 899 self.frame = f |
901 self.normalTexture = getglobal(format("%sNormalTexture",f:GetName())) | 900 self.normalTexture = getglobal(format("%sNormalTexture",f:GetName())) |