Mercurial > wow > buffalo2
comparison ObjectiveTracker/Layout.lua @ 45:dd1ae565f559
Hooks and Handlers:
- correct argument mix-ups for AcceptQuest/QUEST_ACCEPTED handlers; fixes auto-watch
- respond to AcknowledgeAutoAcceptQuest; fixes lingering popups
- include Popup and Quest trackers in the response code for CompleteQuest; fixes content artifacts following the rollover of repeating popups seen in Ashran
- clean up wacky OnEvent header
Layout
- add alpha blend options
QuestData
- reset objectives data when a quest is in a completed state; keeps old data from ever reaching the Default.x code
| author | Nenue |
|---|---|
| date | Tue, 26 Apr 2016 14:57:18 -0400 |
| parents | 756e8aeb040b |
| children | ed74c5cabe98 |
comparison
equal
deleted
inserted
replaced
| 44:756e8aeb040b | 45:dd1ae565f559 |
|---|---|
| 63 local headerbg = {'VERTICAL', 1, 1, 0.5, 0.5, 1, 1, 0.5, 0} | 63 local headerbg = {'VERTICAL', 1, 1, 0.5, 0.5, 1, 1, 0.5, 0} |
| 64 local headerFont, headerSize, headerOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 14, 'OUTLINE' | 64 local headerFont, headerSize, headerOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 14, 'OUTLINE' |
| 65 | 65 |
| 66 local titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .2} | 66 local titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .2} |
| 67 local titleFont, titleSize, titleOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE' | 67 local titleFont, titleSize, titleOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE' |
| 68 local titleColor = {0,.7,1,1} | 68 local titleColor = {0,.7,1,1 } |
| 69 local titleBlend = 'BLEND' | |
| 69 | 70 |
| 70 local textbg = {'HORIZONTAL', 0, 0, 0, 0.4, 0, 0, 0, 0 } | 71 local textbg = {'HORIZONTAL', 0, 0, 0, 0.4, 0, 0, 0, 0 } |
| 71 local textFont, textSize, textOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE' | 72 local textFont, textSize, textOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE' |
| 72 local textColor = {1,1,1,1 } | 73 local textColor = {1,1,1,1 } |
| 74 local textBlend = 'BLEND' | |
| 73 | 75 |
| 74 local widgetTextFont, widgetTextSize, widgetTextOutline = [[Interface\Addons\SharedMedia_MyMedia\font\XOIREQE.TTF]], 11, 'OUTLINE' | 76 local widgetTextFont, widgetTextSize, widgetTextOutline = [[Interface\Addons\SharedMedia_MyMedia\font\XOIREQE.TTF]], 11, 'OUTLINE' |
| 75 local widgetTextColor = {1,1,1,1 } | 77 local widgetTextColor = {1,1,1,1 } |
| 76 local widgetHeight, widgetBorder = 17, 1 | 78 local widgetHeight, widgetBorder = 17, 1 |
| 77 | 79 |
| 120 titleFont, titleSize, titleOutline = unpack(c.titleFont) | 122 titleFont, titleSize, titleOutline = unpack(c.titleFont) |
| 121 selectionbg = c.selectionbg | 123 selectionbg = c.selectionbg |
| 122 titleSpacing, textSpacing, blockSpacing = c.titleSpacing, c.textSpacing, c.blockSpacing | 124 titleSpacing, textSpacing, blockSpacing = c.titleSpacing, c.textSpacing, c.blockSpacing |
| 123 titleIndent, textIndent,selectionIndent = c.titleIndex, c.textIndex, c.selectionIndent | 125 titleIndent, textIndent,selectionIndent = c.titleIndex, c.textIndex, c.selectionIndent |
| 124 titleColor = c.titleColor | 126 titleColor = c.titleColor |
| 127 titleBlend = c.titlebg[10] or 'BLEND' | |
| 128 textBlend = c.textbg[10] or 'BLEND' | |
| 125 print(unpack(c.titleColor)) | 129 print(unpack(c.titleColor)) |
| 126 rewardSize = 24 | 130 rewardSize = 24 |
| 127 textFont, textSize, textOutline = unpack(c.textFont) | 131 textFont, textSize, textOutline = unpack(c.textFont) |
| 128 textbg = c.textbg | 132 textbg = c.textbg |
| 129 textIndent = c.textIndent | 133 textIndent = c.textIndent |
| 253 block.title:SetTextColor(unpack(titleColor)) | 257 block.title:SetTextColor(unpack(titleColor)) |
| 254 block.titlebg:SetTexture(1,1,1,1) | 258 block.titlebg:SetTexture(1,1,1,1) |
| 255 block.titlebg:SetGradientAlpha(unpack(titlebg)) | 259 block.titlebg:SetGradientAlpha(unpack(titlebg)) |
| 256 block.titlebg:SetPoint('TOP', block, 'TOP', 0, 0) | 260 block.titlebg:SetPoint('TOP', block, 'TOP', 0, 0) |
| 257 block.titlebg:SetPoint('BOTTOM', block.title, 'BOTTOM', 0, -titleSpacing) | 261 block.titlebg:SetPoint('BOTTOM', block.title, 'BOTTOM', 0, -titleSpacing) |
| 262 block.titlebg:SetBlendMode(titleBlend) | |
| 258 block.status:SetSpacing(textSpacing) | 263 block.status:SetSpacing(textSpacing) |
| 259 block.status:SetPoint('TOP', block.titlebg, 'BOTTOM', 0, -textSpacing) | 264 block.status:SetPoint('TOP', block.titlebg, 'BOTTOM', 0, -textSpacing) |
| 260 block.status:SetPoint('LEFT', block.titlebg, 'LEFT', textIndent, 0) | 265 block.status:SetPoint('LEFT', block.titlebg, 'LEFT', textIndent, 0) |
| 261 block.statusbg:SetPoint('TOP', block.titlebg, 'BOTTOM', 0, 0) | 266 block.statusbg:SetPoint('TOP', block.titlebg, 'BOTTOM', 0, 0) |
| 262 block.statusbg:SetPoint('BOTTOM', block, 'BOTTOM', 0, 0) | 267 block.statusbg:SetPoint('BOTTOM', block, 'BOTTOM', 0, 0) |
| 263 block.statusbg:SetTexture(1,1,1,1) | 268 block.statusbg:SetTexture(1,1,1,1) |
| 264 block.statusbg:SetGradientAlpha(unpack(textbg)) | 269 block.statusbg:SetGradientAlpha(unpack(textbg)) |
| 270 block.statusbg:SetBlendMode(textBlend) | |
| 265 block.SelectionOverlay:SetGradientAlpha(unpack(selectionbg)) | 271 block.SelectionOverlay:SetGradientAlpha(unpack(selectionbg)) |
| 266 block.SelectionOverlay:SetPoint('TOPLEFT', selectionIndent, 0) | 272 block.SelectionOverlay:SetPoint('TOPLEFT', selectionIndent, 0) |
| 267 block.SelectionOverlay:SetPoint('BOTTOMRIGHT') | 273 block.SelectionOverlay:SetPoint('BOTTOMRIGHT') |
| 268 | 274 |
| 269 | 275 |
