Mercurial > wow > devian
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 45:5341e4d84622 | 46:dcc57a7cabc9 |
|---|---|
| 106 last = frame | 106 last = frame |
| 107 end | 107 end |
| 108 end | 108 end |
| 109 | 109 |
| 110 | 110 |
| 111 --- | |
| 112 function D:UpdateDock() | |
| 113 local num_active, num_inactive = 0, 0 | |
| 114 | |
| 115 for id, ch in pairs(self.console) do | |
| 116 if not self.dock[id] then | |
| 117 self.dock[id] = self.dock:CreateTexture('DockButton'..id, 'OVERLAY') | |
| 118 end | |
| 119 | |
| 120 if ch.enabled then | |
| 121 num_active = num_active + 1 | |
| 122 else | |
| 123 num_inactive = num_inactive + 1 | |
| 124 end | |
| 125 end | |
| 126 end |
