Mercurial > wow > worldplan
diff QuestPOI.lua @ 47:733785e306a3
- Fixed an update lag that occurs between map changes.
- Aesthetic polish
author | Nenue |
---|---|
date | Tue, 27 Dec 2016 17:29:23 -0500 |
parents | db570c6a0ffb |
children | c0b88bd1e40b |
line wrap: on
line diff
--- a/QuestPOI.lua Mon Dec 26 10:24:49 2016 -0500 +++ b/QuestPOI.lua Tue Dec 27 17:29:23 2016 -0500 @@ -34,7 +34,7 @@ local ICON_MONEY = "Interface\\Buttons\\UI-GroupLoot-Coin-Up" local WORLD_QUEST_BORDER = "Interface\\UNITPOWERBARALT\\Generic1Target_Circular_Frame" -local PENDING_BORDER +local PENDING_BORDER = "Interface\\BUTTONS\\YELLOWORANGE64" local PENDING_ICON = "Interface\\BUTTONS\\YELLOWORANGE64" local REWARD_CASH = WORLD_QUEST_REWARD_TYPE_FLAG_GOLD @@ -410,7 +410,6 @@ self:SetAlpha(1) -- fix stuck alpha end - self.Overlay:SetShown(true) --WorldPlan:print(self:GetAlpha()) end @@ -572,12 +571,12 @@ end icon:SetMask("Interface\\Minimap\\UI-Minimap-Background") if self.itemTexture then - iconBorder:SetTexture(WORLD_QUEST_BORDER) + --iconBorder:SetTexture(WORLD_QUEST_BORDER) if self.NoIcon then icon:SetTexture(PENDING_ICON) icon:SetDesaturated(true) - icon:SetVertexColor(style.r, style.g, style.b, style.a) + icon:SetVertexColor(style.r, style.g, style.b) else icon:SetTexture(self.itemTexture) @@ -585,35 +584,34 @@ icon:SetVertexColor(1, 1, 1) end else - iconBorder:SetTexture(PENDING_BORDER) + -- icon:SetTexture(PENDING_ICON) icon:SetDesaturated(true) - icon:SetVertexColor(style.r, style.g, style.b, style.a) + icon:SetVertexColor(style.r, style.g, style.b) end local borderStyle = style - if self.rarity and WORLD_QUEST_QUALITY_COLORS[self.rarity] then - borderStyle = WORLD_QUEST_QUALITY_COLORS[self.rarity] - end + iconBorder:SetMask("Interface\\Minimap\\UI-Minimap-Background") + iconBorder:SetTexture(PENDING_BORDER) iconBorder:SetVertexColor(borderStyle.r, borderStyle.g, borderStyle.b, 1) iconBorder:SetDesaturated(true) iconBorder:SetAlpha(subStyle.alpha or 1) - if questID == GetSuperTrackedQuestID() then - trackingBorder:SetVertexColor(0,0,0,1) - else - trackingBorder:SetVertexColor(0,0,0,0.5) - end + trackingBorder:SetMask("Interface\\Minimap\\UI-Minimap-Background") + trackingBorder:SetTexture(PENDING_BORDER) + trackingBorder:SetVertexColor(0,0,0,1) self.tagIcon:SetShown(self.tagSize and true or false) self.tagIcon:SetAtlas(self.tagAtlas) self.tagIcon:SetAlpha(subStyle.alpha or 1) - self.EliteBorder:SetShown(self.isElite and not self.filtered) - self.Overlay:SetShown(self:IsShown()) + self.Overlay:SetShown(true) + self.Overlay:ClearAllPoints(self) self.Overlay:SetParent(self:GetParent()) self.Overlay:SetFrameLevel(self:GetFrameLevel()+200) - self.Overlay:SetAllPoints(self) + self.Overlay:SetPoint('TOPLEFT', self, 'TOPLEFT', 0, 4) + self.Overlay:SetPoint('BOTTOMRIGHT', self, 'BOTTOMRIGHT', 0, -4) + self.EliteBorder:SetShown(self.isElite and not self.filtered) self:UpdateSize() @@ -684,9 +682,16 @@ local iconWidth = subStyle.iconWidth local borderWidth = iconWidth + (subStyle.borderWidth * 2) local highlightWidth = borderWidth + (subStyle.highlightWidth * 2) - local iconTexture = self.itemTexture + + if self.questID == GetSuperTrackedQuestID() then + highlightWidth = highlightWidth + 2 + end + + if self.rarity and WORLD_QUEST_QUALITY_COLORS[self.rarity] then + highlightWidth = highlightWidth + self.rarity + end self.tagIcon:SetSize(self.tagSize, self.tagSize) self:SetSize(iconWidth, iconWidth) icon:SetSize(iconWidth, iconWidth)