Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.25' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumsebrum committed Sep 29, 2023
2 parents 47bc4d4 + 5f8807a commit 6be69bc
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 18 deletions.
4 changes: 2 additions & 2 deletions Gladdy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ local LibStub = LibStub

---------------------------

local MAJOR, MINOR = "Gladdy", 12
local MAJOR, MINOR = "Gladdy", 13
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
local L
Gladdy.version_major_num = 2
Gladdy.version_minor_num = 0.24
Gladdy.version_minor_num = 0.25
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
Gladdy.version_releaseType = RELEASE_TYPES.release
Gladdy.version = PREFIX .. string.format("%.2f", Gladdy.version_num) .. "-" .. Gladdy.version_releaseType
Expand Down
2 changes: 1 addition & 1 deletion Gladdy.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Title: Gladdy |cFFFF0000 game client not supported|r
## Version: 2.24-Release
## Version: 2.25-Release
## Notes: The most powerful arena AddOn for WoW Classic TBC/WotLK
## Author: XiconQoo, DnB_Junkee, Knall
## X-Email: contact me on discord Knall#1751
Expand Down
2 changes: 1 addition & 1 deletion Gladdy_BCC.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 20504
## Title: Gladdy - TBC
## Version: 2.24-Release
## Version: 2.25-Release
## Notes: The most powerful arena AddOn for WoW 2.5.4
## Author: XiconQoo, DnB_Junkee, Knall
## X-Email: contact me on discord Knall#1751
Expand Down
2 changes: 1 addition & 1 deletion Gladdy_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Interface: 30402
## Title: Gladdy - WotLK
## Version: 2.24-Release
## Version: 2.25-Release
## Notes: The most powerful arena AddOn for WoW 3.4.2
## Author: XiconQoo, DnB_Junkee, Knall
## X-Email: contact me on discord Knall#1751
Expand Down
26 changes: 14 additions & 12 deletions Modules/TotemPlates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,13 @@ end
function TotemPlates:NAME_PLATE_UNIT_REMOVED(unitID)
local nameplate = C_NamePlate.GetNamePlateForUnit(unitID)
self.activeTotemNameplates[unitID] = nil
--self:ToggleAddon(nameplate, true)
if nameplate.gladdyTotemFrame then
nameplate.gladdyTotemFrame:Hide()
nameplate.gladdyTotemFrame:SetParent(nil)
tinsert(self.totemPlateCache, nameplate.gladdyTotemFrame)
nameplate.gladdyTotemFrame = nil
end
self:ToggleAddon(nameplate, true)
end

---------------------------------------------------
Expand Down Expand Up @@ -373,23 +373,25 @@ function TotemPlates:ToggleAddon(nameplate, show)
local addonFrames = { self:GetAddonFrame(nameplate) }
if addonFrames and #addonFrames > 0 then
if show then
for _,v in ipairs(addonFrames) do
if nameplate.unitFrame and nameplate.unitFrame.UpdateAllElements then
for _, frame in ipairs(addonFrames) do
if frame.UpdateAllElements then
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_ADDED - nameplate.unitFrame:UpdateAllElements")
nameplate.unitFrame:UpdateAllElements("NAME_PLATE_UNIT_ADDED")
frame:Show()
frame:UpdateAllElements("NAME_PLATE_UNIT_ADDED")
else
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_ADDED - Show")
v:Show()
frame:Show()
end
end
else
for _,v in ipairs(addonFrames) do
if nameplate.unitFrame and nameplate.unitFrame.UpdateAllElements then
for _, frame in ipairs(addonFrames) do
if frame.UpdateAllElements then
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_REMOVED - nameplate.unitFrame:UpdateAllElements")
nameplate.unitFrame:UpdateAllElements("NAME_PLATE_UNIT_REMOVED")
frame:UpdateAllElements("NAME_PLATE_UNIT_REMOVED")
frame:Hide()
else
Gladdy:Debug("INFO", "TotemPlates:ToggleAddon - NAME_PLATE_UNIT_REMOVED - Hide")
v:Hide()
frame:Hide()
end
end
end
Expand All @@ -402,7 +404,7 @@ function TotemPlates.OnUpdate(self)
else
self.selectionHighlight:SetAlpha(0)
end
if (TotemPlates.addon == "Plater" or TotemPlates.addon == "Tukui" or TotemPlates.addon == "ElvUI") and self.parent and self.parent.unitFrame then
if (TotemPlates.addon == "Plater" or TotemPlates.addon == "Tukui") and self.parent and self.parent.unitFrame then
self.parent.unitFrame:Hide()
end
end
Expand Down Expand Up @@ -454,7 +456,7 @@ function TotemPlates:OnUnitEvent(unitID)
nameplate.gladdyTotemFrame.parent = nameplate
nameplate.gladdyTotemFrame:Show()
TotemPlates:SetTotemAlpha(nameplate.gladdyTotemFrame, unitID)
self:ToggleAddon(nameplate)
self:ToggleAddon(nameplate, false)
self.activeTotemNameplates[unitID] = nameplate
elseif totemDataEntry and not Gladdy.db.npTotemColors["totem" .. totemDataEntry.id].enabled and Gladdy.db.npTotemsHideDisabledTotems then
if nameplate.gladdyTotemFrame then
Expand All @@ -463,7 +465,7 @@ function TotemPlates:OnUnitEvent(unitID)
tinsert(self.totemPlateCache, nameplate.gladdyTotemFrame)
nameplate.gladdyTotemFrame = nil
end
self:ToggleAddon(nameplate)
self:ToggleAddon(nameplate, false)
else
self:ToggleAddon(nameplate, true)
end
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

---

## [v2.24-Release Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v2.24-Release/Gladdy_Classic_v2.24-Release.zip)
## [v2.25-Release Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v2.25-Release/Gladdy_Classic_v2.25-Release.zip)

###### <a target="_blank" rel="noopener noreferrer" href="https://www.paypal.me/xiconqoo/10"><img src="https://raw.githubusercontent.com/XiconQoo/Gladdy/readme-media/Paypal-Donate.png" height="30" style="margin-top:-30px;position:relative;top:20px;"></a> Please consider donating if you like my work

Expand Down Expand Up @@ -61,6 +61,7 @@ The goal is to make Gladdy highly configurable in it's appearance. Everything ca
- [dfherr](https://github.com/dfherr)
- [miraage](https://github.com/miraage)
- [veiz](https://github.com/veiz)
- [Flamanis](https://github.com/Flamanis)

Thank you!

Expand All @@ -80,6 +81,9 @@ Thank you!

### Changes

### v2.25-Release
- fix TotemPlates interfering with ElvUI (thanks [Flamanis](https://github.com/Flamanis))

### v2.24-Release
- fix for WotLK v30402 (update libs)
- update DRList
Expand Down

0 comments on commit 6be69bc

Please sign in to comment.