Mercurial > wow > worldplan
comparison QuestPOI.lua @ 73:25f7dbc20a72
fix WorldMapTooltip getting stranded when flightmap is closed
- quests that are not valid spell targets will have their icon go red
- auto-complete scrolls will no longer hide pin frames; instead they become click through and blizzard POIs are activated beneath for taint-free interaction
author | Nenue |
---|---|
date | Fri, 07 Apr 2017 07:20:28 -0400 |
parents | 6db0b9696936 |
children | 2ba11b25aa7f |
comparison
equal
deleted
inserted
replaced
72:6db0b9696936 | 73:25f7dbc20a72 |
---|---|
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 = 1300 | 43 local pinBaseIndex = 1500 |
44 local overlayBaseIndex = 1350 | 44 local overlayBaseIndex = 1580 |
45 local previousHighlight | 45 local previousHighlight |
46 | 46 |
47 local DATA_DEBUG = false | 47 local DATA_DEBUG = false |
48 local PIN_REFRESH_DELAY = .5 | 48 local PIN_REFRESH_DELAY = .5 |
49 local PIN_REQUEST_DELAY = .1 | 49 local PIN_REQUEST_DELAY = .1 |
910 | 910 |
911 self:UpdateSize() | 911 self:UpdateSize() |
912 self:UpdateStatus() | 912 self:UpdateStatus() |
913 self.isStale = nil | 913 self.isStale = nil |
914 | 914 |
915 | |
916 if SpellCanTargetQuest() then | |
917 if IsQuestIDValidSpellTarget(self.questID) then | |
918 icon:SetVertexColor(1,1,1) | |
919 else | |
920 icon:SetVertexColor(1,0,0,1) | |
921 end | |
922 self:EnableMouse(false) | |
923 else | |
924 self:EnableMouse(true) | |
925 end | |
926 | |
915 -- signal filter info update | 927 -- signal filter info update |
916 WorldPlanSummary.isStale = true | 928 WorldPlanSummary.isStale = true |
917 end | 929 end |
918 | 930 |
919 local cvar_check = { | 931 local cvar_check = { |
929 local print = qprint | 941 local print = qprint |
930 local qType = self.worldQuestType | 942 local qType = self.worldQuestType |
931 local filtered | 943 local filtered |
932 local canShow = TQ_IsActive(self.questID) | 944 local canShow = TQ_IsActive(self.questID) |
933 | 945 |
934 if db.canTargetQuests then | |
935 self:EnableMouse(false) | |
936 if not IsQuestIDValidSpellTarget(self.questID) then | |
937 self.hideReason = "Not a valid spell target." | |
938 self:SetShown(false) | |
939 return | |
940 end | |
941 else | |
942 self:EnableMouse(true) | |
943 end | |
944 | 946 |
945 if qType == LE_QUEST_TAG_TYPE_PROFESSION then | 947 if qType == LE_QUEST_TAG_TYPE_PROFESSION then |
946 if not(self.isKnownProfession or db.Config.ShowAllProfessionQuests) then | 948 if not(self.isKnownProfession or db.Config.ShowAllProfessionQuests) then |
947 canShow = nil | 949 canShow = nil |
948 end | 950 end |