comparison QuestPOI.lua @ 45:db570c6a0ffb v1.0-rc12

- Fixed filter buttons losing their anchor after FlightMap interactions - Fixed flickering tooltips - Fixed a source of hangs while opening the world map, particularly in non-Broken-Isle continents. - Workaround for World Map Action Button: Temporarily activate blizzard POI buttons while a quest-targeting spell is on the cursor.
author Nenue
date Mon, 26 Dec 2016 10:20:52 -0500
parents 79e5e96e5f18
children 733785e306a3
comparison
equal deleted inserted replaced
44:59e9d66195dd 45:db570c6a0ffb
396 self.FadeIn:Play() 396 self.FadeIn:Play()
397 end 397 end
398 end 398 end
399 399
400 function QuestPOI:OnShow () 400 function QuestPOI:OnShow ()
401 -- pop this on principle
402
403 if self.isNew or self.isStale then 401 if self.isNew or self.isStale then
404 self:Refresh() 402 self:Refresh()
405 end 403 end
406 404
407
408 -- is it a new quest?
409 if self.isNew then 405 if self.isNew then
410 qprint('|cFFFFFF00'..tostring(self:GetName())..':OnShow()|r update:', self.isStale, 'new:', self.isNew, 'animation:', self.isAnimating) 406 qprint('|cFFFFFF00'..tostring(self:GetName())..':OnShow()|r update:', self.isStale, 'new:', self.isNew, 'animation:', self.isAnimating)
411 --qprint('|cFFFFFF00popping new pin handler') 407 --qprint('|cFFFFFF00popping new pin handler')
412 self:OnNew() 408 self:OnNew()
413 elseif not self.isAnimating then 409 elseif not self.isAnimating then
414 self:SetAlpha(1) 410 self:SetAlpha(1) -- fix stuck alpha
415 end 411 end
416 412
417 self.Overlay:SetShown(true) 413 self.Overlay:SetShown(true)
418 --WorldPlan:print(self:GetAlpha()) 414 --WorldPlan:print(self:GetAlpha())
419 415
554 local questID = self:GetID() 550 local questID = self:GetID()
555 local iconBorder = self.RewardBorder 551 local iconBorder = self.RewardBorder
556 local trackingBorder = self.HighlightBorder 552 local trackingBorder = self.HighlightBorder
557 local icon = self.icon 553 local icon = self.icon
558 local count = self.count 554 local count = self.count
559 --WorldPlan:print(tostring(self.title), "|T"..tostring(self.itemTexture)..":16:16|t", tostring(self.itemName))
560 555
561 if self.itemName then 556 if self.itemName then
562 --wqprint('filtered:', self.filtered, 'showNumber:', self.showNumber) 557
563 if self.itemNumber and self.itemNumber >= 1000 then 558 if self.itemNumber and self.itemNumber >= 1000 then
564 local numeral = floor(self.itemNumber/1000) 559 local numeral = floor(self.itemNumber/1000)
565 local decimal = mod(self.itemNumber, 1000) 560 local decimal = mod(self.itemNumber, 1000)
566 local numberString = numeral 561 local numberString = numeral
567 if decimal > 100 then 562 if decimal > 100 then
568 numberString = numberString .. '.' .. tostring(floor(decimal/100)) 563 numberString = numberString .. '.' .. tostring(floor(decimal/100))
569 end 564 end
570 numberString = numberString .. 'k' 565 numberString = numberString .. 'k'
571 self.count:SetText(numberString) 566 self.count:SetText(numberString)
572 else 567 else
573 self.count:SetText(self.itemNumber) 568 self.count:SetText(self.itemNumber)
574 end 569 end
575 570
576 571
577 end 572 end
578 icon:SetMask("Interface\\Minimap\\UI-Minimap-Background") 573 icon:SetMask("Interface\\Minimap\\UI-Minimap-Background")
579 if self.itemTexture then 574 if self.itemTexture then
672 end 667 end
673 print(' '..self.questID..':|cFFFFFF00IsShowable()|r ', self.used, self.title) 668 print(' '..self.questID..':|cFFFFFF00IsShowable()|r ', self.used, self.title)
674 return self.used 669 return self.used
675 end 670 end
676 671
677 function QuestPOI:UpdateTimer (timeLeft, timeType)
678 print('|cFF0088FFUpdatePinTimer()|r')
679 end
680
681 --- Fixes icons upon size update 672 --- Fixes icons upon size update
682 function QuestPOI:UpdateSize () 673 function QuestPOI:UpdateSize ()
683 674
684 qprint('|cFF00FF88'..self:GetName()..'|r:UpdateSize()', self.style, self.subStyle) 675 qprint('|cFF00FF88'..self:GetName()..'|r:UpdateSize()', self.style, self.subStyle)
685 676