diff 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
line wrap: on
line diff
--- a/ObjectiveTracker/Layout.lua	Mon Apr 25 19:37:13 2016 -0400
+++ b/ObjectiveTracker/Layout.lua	Tue Apr 26 14:57:18 2016 -0400
@@ -65,11 +65,13 @@
 
 local titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .2}
 local titleFont, titleSize, titleOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE'
-local titleColor = {0,.7,1,1}
+local titleColor = {0,.7,1,1 }
+local titleBlend = 'BLEND'
 
 local textbg =  {'HORIZONTAL', 0, 0, 0, 0.4, 0, 0, 0, 0 }
 local textFont, textSize, textOutline = [[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE'
 local textColor = {1,1,1,1 }
+local textBlend = 'BLEND'
 
 local widgetTextFont, widgetTextSize, widgetTextOutline = [[Interface\Addons\SharedMedia_MyMedia\font\XOIREQE.TTF]], 11, 'OUTLINE'
 local widgetTextColor = {1,1,1,1 }
@@ -122,6 +124,8 @@
     titleSpacing, textSpacing, blockSpacing = c.titleSpacing, c.textSpacing, c.blockSpacing
     titleIndent, textIndent,selectionIndent = c.titleIndex, c.textIndex, c.selectionIndent
     titleColor = c.titleColor
+    titleBlend = c.titlebg[10] or 'BLEND'
+    textBlend = c.textbg[10] or 'BLEND'
     print(unpack(c.titleColor))
     rewardSize = 24
     textFont, textSize, textOutline = unpack(c.textFont)
@@ -255,6 +259,7 @@
   block.titlebg:SetGradientAlpha(unpack(titlebg))
   block.titlebg:SetPoint('TOP', block, 'TOP', 0, 0)
   block.titlebg:SetPoint('BOTTOM', block.title, 'BOTTOM', 0, -titleSpacing)
+  block.titlebg:SetBlendMode(titleBlend)
   block.status:SetSpacing(textSpacing)
   block.status:SetPoint('TOP', block.titlebg, 'BOTTOM', 0, -textSpacing)
   block.status:SetPoint('LEFT', block.titlebg, 'LEFT', textIndent, 0)
@@ -262,6 +267,7 @@
   block.statusbg:SetPoint('BOTTOM', block, 'BOTTOM', 0, 0)
   block.statusbg:SetTexture(1,1,1,1)
   block.statusbg:SetGradientAlpha(unpack(textbg))
+  block.statusbg:SetBlendMode(textBlend)
   block.SelectionOverlay:SetGradientAlpha(unpack(selectionbg))
   block.SelectionOverlay:SetPoint('TOPLEFT', selectionIndent, 0)
   block.SelectionOverlay:SetPoint('BOTTOMRIGHT')