Skip to content

Commit

Permalink
fix: #2228 - Cooldown bling appearing on groups with 0% opacity.
Browse files Browse the repository at this point in the history
  • Loading branch information
ascott18 committed Sep 15, 2024
1 parent e2ff3d9 commit c352e9b
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v11.0.10
* Fix: #2228 - Cooldown bling appearing on groups with 0% opacity.

## v11.0.9
* Fix various Lua errors.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function CooldownSweep:OnNewInstance(icon)
end
end
hooksecurefunc(icon, "SetAlpha", function(icon, alpha)
iconShown = alpha > 0
iconShown = alpha > 0 and icon:GetEffectiveAlpha() > 0
if not iconShown and blingShown then
self.cooldown:SetDrawBling(false)
elseif iconShown and not blingShown and self.shouldShowBling then
Expand Down
3 changes: 3 additions & 0 deletions Options/CHANGELOG.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ if not TMW then return end
TMW.CHANGELOG_LASTVER="10.0.0"

TMW.CHANGELOG = [==[
## v11.0.10
* Fix: #2228 - Cooldown bling appearing on groups with 0% opacity.
## v11.0.9
* Fix various Lua errors.
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Cata.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.9
## Version: 11.0.10
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen-Classic.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.9
## Version: 11.0.10
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down
14 changes: 6 additions & 8 deletions TellMeWhen.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,20 @@ end
TELLMEWHEN_VERSION_FULL = TELLMEWHEN_VERSION .. " " .. TELLMEWHEN_VERSION_MINOR

local REVISION = 1
if #TELLMEWHEN_VERSION > 6 or REVISION >= 100 then
if #TELLMEWHEN_VERSION > 7 or REVISION >= 100 then
return error("TELLMEWHEN: UNEXPECTEDLY HIGH VERSION/REVISION")
end

-- This number is used for running migrations, showing the last changelog version,
-- and communicating new versions to other players.
-- For a TOC version 10.2.3 and a REVISION=45, it'll be `102345`.
TELLMEWHEN_VERSIONNUMBER = tonumber(TELLMEWHEN_VERSION:gsub("%.", "") .. ("%02d"):format(REVISION))
-- For a TOC version 10.2.3 and a REVISION=45, it'll be `10020345`.
TELLMEWHEN_VERSIONNUMBER = tonumber(
TELLMEWHEN_VERSION:gsub("%.(%d+)", function(x) return ("%02d"):format(tonumber(x)) end) ..
("%02d"):format(REVISION)
)

TELLMEWHEN_FORCECHANGELOG = 86005 -- if the user hasn't seen the changelog until at least this version, show it to them.


if TELLMEWHEN_VERSION_MINOR == "dev" and not strfind(TELLMEWHEN_VERSIONNUMBER, TELLMEWHEN_VERSION:gsub("%.", ""), nil) then
return error("TELLMEWHEN: TELLMEWHEN_VERSION DOESN'T AGREE WITH TELLMEWHEN_VERSIONNUMBER")
end

TELLMEWHEN_MAXROWS = 20

-- Put required libs here: (If they fail to load, all of TMW should fail to load)
Expand Down
2 changes: 1 addition & 1 deletion TellMeWhen.toc
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
## X-WoWI-ID: 10855
## X-Wago-ID: ZQ6aZqKW

## Version: 11.0.9
## Version: 11.0.10
## Author: Cybeloras of Aerie Peak
## IconTexture: Interface\Addons\TellMeWhen\Textures\LDB Icon
## AddonCompartmentFunc: TellMeWhen_OnAddonCompartmentClick
Expand Down

0 comments on commit c352e9b

Please sign in to comment.