Mercurial > wow > reaction
diff Overlay.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 | dd01feae0d89 |
children | da8ba8783924 |
line wrap: on
line diff
--- a/Overlay.lua Tue Jun 10 22:25:15 2008 +0000 +++ b/Overlay.lua Mon Jun 16 18:46:08 2008 +0000 @@ -65,7 +65,7 @@ local ApplyAnchor = Bar.ApplyAnchor local function StoreExtents(bar) - local f = bar.frame + local f = bar:GetFrame() local point, relativeTo, relativePoint, x, y = f:GetPoint(1) relativeTo = relativeTo or f:GetParent() local anchorTo @@ -86,7 +86,7 @@ end local function StoreSize(bar) - local f = bar.frame + local f = bar:GetFrame() local c = bar.config c.width, c.height = f:GetWidth(), f:GetHeight() end @@ -407,7 +407,7 @@ end local function CreateControls(bar) - local f = bar.frame + local f = bar:GetFrame() f:SetMovable(true) f:SetResizable(true) @@ -493,7 +493,6 @@ f:SetScript("OnUpdate", function() RecomputeGrid(bar) - bar:RefreshLayout() end ) end @@ -540,7 +539,6 @@ f:SetScript("OnUpdate", function() RecomputeButtonSize(bar) - bar:RefreshLayout() updateTooltip() end ) @@ -549,7 +547,6 @@ f:SetScript("OnUpdate", function() RecomputeButtonSpacing(bar) - bar:RefreshLayout() updateTooltip() end )