Mercurial > wow > reaction
diff modules/ReAction_PetAction/ReAction_PetAction.lua @ 75:06cd74bdc7da
- Cleaned up Bar interface
- Move all attribute setting from Bar into State
- Separated Moonkin and Tree of Life
- Removed PossessBar module
- Added some infrastructure for paged/mind control support to Action
author | Flick <flickerstreak@gmail.com> |
---|---|
date | Mon, 16 Jun 2008 18:46:08 +0000 |
parents | 768be7eb22a0 |
children | da8ba8783924 |
line wrap: on
line diff
--- a/modules/ReAction_PetAction/ReAction_PetAction.lua Tue Jun 10 22:25:15 2008 +0000 +++ b/modules/ReAction_PetAction/ReAction_PetAction.lua Mon Jun 16 18:46:08 2008 +0000 @@ -84,6 +84,7 @@ local ok, b = pcall(self.BtnClass.new, self.BtnClass, bar, i, btnCfg[i]) if ok and b then btns[i] = b + bar:AddButton(i,b) end else btns[i]:Refresh(bar,i) @@ -91,6 +92,7 @@ end for i = n+1, #btns do if btns[i] then + bar:RemoveButton(b) btns[i] = btns[i]:Destroy() if btnCfg[i] then btnCfg[i] = nil @@ -296,7 +298,7 @@ end function Button:Refresh(bar,idx) - bar:PlaceButton(self.frame, idx, 30, 30) + bar:PlaceButton(self, 30, 30) self:Update() self:UpdateHotkey() end