Mercurial > wow > worldplan
diff 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 |
line wrap: on
line diff
--- a/QuestPOI.lua Sun Dec 25 15:48:24 2016 -0500 +++ b/QuestPOI.lua Mon Dec 26 10:20:52 2016 -0500 @@ -398,20 +398,16 @@ end function QuestPOI:OnShow () - -- pop this on principle - if self.isNew or self.isStale then self:Refresh() end - - -- is it a new quest? if self.isNew then qprint('|cFFFFFF00'..tostring(self:GetName())..':OnShow()|r update:', self.isStale, 'new:', self.isNew, 'animation:', self.isAnimating) --qprint('|cFFFFFF00popping new pin handler') self:OnNew() elseif not self.isAnimating then - self:SetAlpha(1) + self:SetAlpha(1) -- fix stuck alpha end self.Overlay:SetShown(true) @@ -556,22 +552,21 @@ local trackingBorder = self.HighlightBorder local icon = self.icon local count = self.count - --WorldPlan:print(tostring(self.title), "|T"..tostring(self.itemTexture)..":16:16|t", tostring(self.itemName)) if self.itemName then - --wqprint('filtered:', self.filtered, 'showNumber:', self.showNumber) - if self.itemNumber and self.itemNumber >= 1000 then - local numeral = floor(self.itemNumber/1000) - local decimal = mod(self.itemNumber, 1000) - local numberString = numeral - if decimal > 100 then - numberString = numberString .. '.' .. tostring(floor(decimal/100)) - end - numberString = numberString .. 'k' - self.count:SetText(numberString) - else - self.count:SetText(self.itemNumber) + + if self.itemNumber and self.itemNumber >= 1000 then + local numeral = floor(self.itemNumber/1000) + local decimal = mod(self.itemNumber, 1000) + local numberString = numeral + if decimal > 100 then + numberString = numberString .. '.' .. tostring(floor(decimal/100)) end + numberString = numberString .. 'k' + self.count:SetText(numberString) + else + self.count:SetText(self.itemNumber) + end end @@ -674,10 +669,6 @@ return self.used end -function QuestPOI:UpdateTimer (timeLeft, timeType) - print('|cFF0088FFUpdatePinTimer()|r') -end - --- Fixes icons upon size update function QuestPOI:UpdateSize ()