Mercurial > wow > worldplan
comparison QuestPOI.lua @ 102:4d1520186ea4
7.2.5 changes
- Fixed order hall panel not initializing on fresh install
author | Nenue |
---|---|
date | Thu, 25 May 2017 17:24:00 -0400 |
parents | fbd4ead2a19f |
children | 9f664a0ef8a8 |
comparison
equal
deleted
inserted
replaced
101:b68af1e44bdc | 102:4d1520186ea4 |
---|---|
38 local iprint = DEVIAN_WORKSPACE and function(...) _G.print('ItemScan', ...) end or nop | 38 local iprint = DEVIAN_WORKSPACE and function(...) _G.print('ItemScan', ...) end or nop |
39 local rprint = DEVIAN_WORKSPACE and function(...) _G.print('WQRefresh', ...) end or nop | 39 local rprint = DEVIAN_WORKSPACE and function(...) _G.print('WQRefresh', ...) end or nop |
40 local dprint = DEVIAN_WORKSPACE and function(...) _G.print('WQData', ...) end or nop | 40 local dprint = DEVIAN_WORKSPACE and function(...) _G.print('WQData', ...) end or nop |
41 local QuestPOI = WorldPlanPOIMixin | 41 local QuestPOI = WorldPlanPOIMixin |
42 | 42 |
43 local pinBaseIndex = 1520 | 43 local pinBaseIndex = 1400 |
44 local overlayBaseIndex = 1580 | 44 local overlayBaseIndex = 1450 |
45 local previousHighlight | 45 local previousHighlight |
46 | 46 |
47 local FADE_TIMING_MULTIPLIER = 3 | 47 local FADE_TIMING_MULTIPLIER = 3 |
48 local DATA_DEBUG = false | 48 local DATA_DEBUG = false |
49 local PIN_REFRESH_DELAY = 1 | 49 local PIN_REFRESH_DELAY = 1 |
528 --print('|cFFFF4400OnUpdate(|r'..self:GetID()..'|cFFFF4400)|r poll failed') | 528 --print('|cFFFF4400OnUpdate(|r'..self:GetID()..'|cFFFF4400)|r poll failed') |
529 end | 529 end |
530 return | 530 return |
531 end | 531 end |
532 | 532 |
533 if self.maxAlertLevel then | |
534 self:UpdateStatus() | |
535 end | |
536 | |
537 | |
538 if self.isStale then | 533 if self.isStale then |
539 self:Refresh() | 534 self:Refresh() |
540 end | 535 elseif self.maxAlertLevel then |
541 | 536 self:UpdateStatus() |
537 end | |
542 end | 538 end |
543 | 539 |
544 | 540 |
545 function QuestPOI:StartFading() | 541 function QuestPOI:StartFading() |
546 if not self.toAlpha then | 542 if not self.toAlpha then |
934 | 930 |
935 if not self:IsShown() then | 931 if not self:IsShown() then |
936 print('queued for Refresh') | 932 print('queued for Refresh') |
937 self.isStale = true | 933 self.isStale = true |
938 return nil | 934 return nil |
939 end | 935 elseif IsQuestComplete(self.questID) then |
940 | 936 self:Release() |
937 return nil | |
938 end | |
941 if self.checkCriteria then | 939 if self.checkCriteria then |
942 self:OnCriteria() | 940 self:OnCriteria() |
943 end | 941 end |
944 if self.checkFilters then | 942 if self.checkFilters then |
945 self:OnFilters() | 943 self:OnFilters() |
1069 | 1067 |
1070 self.tagIcon:SetShown((not self.filtered) and true or false) | 1068 self.tagIcon:SetShown((not self.filtered) and true or false) |
1071 self.tagIcon:SetAtlas(self.tagAtlas) | 1069 self.tagIcon:SetAtlas(self.tagAtlas) |
1072 self.EliteBorder:SetShown(self.isElite and not self.filtered) | 1070 self.EliteBorder:SetShown(self.isElite and not self.filtered) |
1073 | 1071 |
1074 self:UpdateStatus() | |
1075 | 1072 |
1076 if self.isBounty then | 1073 if self.isBounty then |
1077 --print('is bounty') | 1074 print('is bounty') |
1078 iconBorder:SetVertexColor(trackingBorder:GetVertexColor()) | 1075 iconBorder:SetVertexColor(trackingBorder:GetVertexColor()) |
1079 trackingBorder:SetVertexColor(unpack(BORDER_SELECTED_BOUNTY)) | 1076 trackingBorder:SetVertexColor(unpack(BORDER_SELECTED_BOUNTY)) |
1080 elseif self.isCriteria then | 1077 elseif self.isCriteria then |
1081 --print('is criteria of a bounty') | 1078 print('is criteria of a bounty') |
1082 iconBorder:SetVertexColor(trackingBorder:GetVertexColor()) | 1079 iconBorder:SetVertexColor(trackingBorder:GetVertexColor()) |
1083 trackingBorder:SetVertexColor(unpack(BORDER_CRITERIA)) | 1080 trackingBorder:SetVertexColor(unpack(BORDER_CRITERIA)) |
1084 else | 1081 else |
1085 | 1082 print('is nothing') |
1086 iconBorder:SetVertexColor(unpack(borderColor)) | 1083 iconBorder:SetVertexColor(unpack(borderColor)) |
1087 trackingBorder:SetVertexColor(0,0,0,.5) | 1084 trackingBorder:SetVertexColor(0,0,0,.5) |
1088 end | 1085 end |
1086 self:UpdateStatus() | |
1089 | 1087 |
1090 if SpellCanTargetQuest() then | 1088 if SpellCanTargetQuest() then |
1091 if self.isSpellTarget then | 1089 if self.isSpellTarget then |
1092 icon:SetVertexColor(1,1,1) | 1090 icon:SetVertexColor(1,1,1) |
1093 self:EnableMouse(false) | 1091 self:EnableMouse(false) |
1122 | 1120 |
1123 local text, timeState, style = self:GetTimeInfo(timeLeft, self.maxAlertLevel) | 1121 local text, timeState, style = self:GetTimeInfo(timeLeft, self.maxAlertLevel) |
1124 if tl ~= timeState then | 1122 if tl ~= timeState then |
1125 tl = timeState | 1123 tl = timeState |
1126 self.timeLabel:SetText(text) | 1124 self.timeLabel:SetText(text) |
1127 end | |
1128 if style then | |
1129 self.RewardBorder:SetVertexColor(style.r, style.g, style.b, style.a) | |
1130 end | 1125 end |
1131 end | 1126 end |
1132 | 1127 |
1133 self.alertLevel = tl | 1128 self.alertLevel = tl |
1134 self.timeLabel:SetShown(self.worldQuest and (self.maxAlertLevel >= 1)) | 1129 self.timeLabel:SetShown(self.worldQuest and (self.maxAlertLevel >= 1)) |