Mercurial > wow > devian
comparison UI.lua @ 93:f6fae1a4c66c v2.2.95-rc1
- revision and simplification dock layout
- fixed character-specific addon choices getting erroneously toggled
The XML template was missing header information; that has been filled in, and it should be easier to catch problems arising from that area.
| author | Nenue |
|---|---|
| date | Wed, 19 Oct 2016 16:47:38 -0400 |
| parents | b3ed963f482d |
| children | 33bc8baba858 |
comparison
equal
deleted
inserted
replaced
| 92:4370eefcecdd | 93:f6fae1a4c66c |
|---|---|
| 106 --oldprint('toplevel is now', db.current_channel) | 106 --oldprint('toplevel is now', db.current_channel) |
| 107 c:Save() | 107 c:Save() |
| 108 | 108 |
| 109 | 109 |
| 110 -- update dock buttons | 110 -- update dock buttons |
| 111 local beacon = D.dock.buttons[c.index] | 111 local beacon = c.dockButton |
| 112 beacon.selected = true | 112 beacon.selected = true |
| 113 beacon.newMessage = nil | 113 beacon.newMessage = nil |
| 114 D.UpdateBeacon(beacon) | 114 beacon:Update() |
| 115 | 115 |
| 116 for _, part in pairs(c.border) do | 116 for _, part in pairs(c.border) do |
| 117 part:SetColorTexture(unpack(db.frontborder)) | 117 part:SetColorTexture(unpack(db.frontborder)) |
| 118 end | 118 end |
| 119 | 119 |
| 124 bc.out.backdrop:SetGradientAlpha(unpack(db.backgrad)) | 124 bc.out.backdrop:SetGradientAlpha(unpack(db.backgrad)) |
| 125 bc.out.backdrop:SetBlendMode(db.backblend) | 125 bc.out.backdrop:SetBlendMode(db.backblend) |
| 126 bc.dropmenu.icon:SetVertexColor(unpack(db.backheader)) | 126 bc.dropmenu.icon:SetVertexColor(unpack(db.backheader)) |
| 127 bc.title:SetTextColor(unpack(db.backborder)) | 127 bc.title:SetTextColor(unpack(db.backborder)) |
| 128 | 128 |
| 129 local beacon = D.dock.buttons[bc.index] | 129 local beacon = D.dock.usedButtons[bc.index] |
| 130 beacon.raised = nil | 130 beacon.raised = nil |
| 131 beacon.showName = nil | 131 beacon.showName = nil |
| 132 beacon.selected = nil | 132 beacon.selected = nil |
| 133 D.UpdateBeacon(beacon) | 133 beacon:Update() |
| 134 | 134 |
| 135 for _, part in pairs(bc.border) do | 135 for _, part in pairs(bc.border) do |
| 136 part:SetColorTexture(unpack(db.backborder)) | 136 part:SetColorTexture(unpack(db.backborder)) |
| 137 end | 137 end |
| 138 end | 138 end |
| 234 f:RegisterEvent('PLAYER_STARTED_MOVING') | 234 f:RegisterEvent('PLAYER_STARTED_MOVING') |
| 235 f:RegisterEvent('PLAYER_STOPPED_MOVING') | 235 f:RegisterEvent('PLAYER_STOPPED_MOVING') |
| 236 f:SetScript('OnEvent', Console_OnMovementChanged) | 236 f:SetScript('OnEvent', Console_OnMovementChanged) |
| 237 end | 237 end |
| 238 | 238 |
| 239 D.dock.buttons[i] = CreateFrame('Button', 'Channel'..i..'Beacon', UIParent, 'DevianBeacon') | 239 f.dockButton = D:GetDockButton(f) |
| 240 D.dock.buttons[i].icon:SetVertexColor(math.random(),math.random(),math.random()) | 240 |
| 241 D.dock.buttons[i].console = f | |
| 242 D.dock.buttons[i].index = i | |
| 243 D.dock.buttons[i].caption.name:SetText(vars.signature) | |
| 244 D.dock.buttons[i]:Show() | |
| 245 | 241 |
| 246 if vars.minimized then | 242 if vars.minimized then |
| 247 f:Minimize() | 243 f:Minimize() |
| 248 else | 244 else |
| 249 f:Maximize() | 245 f:Maximize() |
