More 10.2

- Added more trinkets ids.
- Added 'On Use' trinkets amount of uses on Breakdown Window.
- Added Details.GetItemSpellInfo(spellId): return information about an item added as a custom spell (usually trinkets).
This commit is contained in:
Tercio Jose
2023-09-23 10:39:38 -03:00
parent ea7027c2a0
commit 387ed90807
8 changed files with 64 additions and 31 deletions
+8 -4
View File
@@ -270,10 +270,14 @@ local OnUpdateFunc = function(self, deltaTime)
if (not self.dontShowSpark) then
if (self.direction == "right") then
local pct = abs((timeNow - endTime) / (endTime - startTime))
pct = abs(1 - pct)
spark:SetPoint("left", self, "left", (self:GetWidth() * pct) - 16, 0)
spark:Show()
if (endTime - startTime > 0) then
local pct = abs((timeNow - endTime) / (endTime - startTime))
pct = abs(1 - pct)
spark:SetPoint("left", self, "left", (self:GetWidth() * pct) - 16, 0)
spark:Show()
else
spark:Hide()
end
else
spark:SetPoint("right", self, "right", self:GetWidth() * (timeNow/self.endTime), 0)
end