Mercurial > wow > devian
diff Dock.lua @ 46:dcc57a7cabc9
re-adding Dock.lua to prep for revised implementation plans
author | Nenue |
---|---|
date | Sun, 03 Jan 2016 15:49:35 -0500 |
parents | e6650821a2c0 |
children | eb7544afd77a |
line wrap: on
line diff
--- a/Dock.lua Wed Dec 30 07:05:38 2015 -0500 +++ b/Dock.lua Sun Jan 03 15:49:35 2016 -0500 @@ -108,3 +108,19 @@ end +--- +function D:UpdateDock() + local num_active, num_inactive = 0, 0 + + for id, ch in pairs(self.console) do + if not self.dock[id] then + self.dock[id] = self.dock:CreateTexture('DockButton'..id, 'OVERLAY') + end + + if ch.enabled then + num_active = num_active + 1 + else + num_inactive = num_inactive + 1 + end + end +end \ No newline at end of file