mirror of
https://github.com/Blaststar/Questie-Octo-Vanilla.git
synced 2026-10-21 12:50:50 +00:00
Tweaks, fixes, and a few new features
This commit is contained in:
+22
@@ -800,6 +800,9 @@ function M:Finish(generation,doPrune)
|
||||
self.syncNodeRevision=nil
|
||||
self.syncing=false
|
||||
|
||||
-- Re-apply the tracker-hover dim/highlight to the freshly rendered pins.
|
||||
self:ApplyHighlight()
|
||||
|
||||
if self.resync then
|
||||
local p=self.prune
|
||||
self.resync=false
|
||||
@@ -808,6 +811,25 @@ function M:Finish(generation,doPrune)
|
||||
end
|
||||
end
|
||||
|
||||
function M:ApplyHighlight()
|
||||
local hq=QuestieOcto.MapHighlight and QuestieOcto.MapHighlight.questID
|
||||
local V=QuestieOcto.Visuals
|
||||
if not V then return end
|
||||
for _,pin in pairs(self.activeFrames or {}) do
|
||||
if pin then
|
||||
if not hq then
|
||||
V:SetHighlight(pin,false)
|
||||
V:SetAlpha(pin,1)
|
||||
elseif tonumber(pin.questID)==hq and V:IsObjectiveRole(pin.role) then
|
||||
V:SetHighlight(pin,true)
|
||||
else
|
||||
V:SetHighlight(pin,false)
|
||||
V:SetAlpha(pin,0.25)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function M:RenderPreparedDescriptor(desc,generation,renderItemStarts)
|
||||
if desc.type=="itemStartArea" then
|
||||
if renderItemStarts then M:RenderItemStartArea(desc.area,generation) end
|
||||
|
||||
Reference in New Issue
Block a user