Compare commits

...

11 Commits

Author SHA1 Message Date
31360bf695 Merge branch 'hotfix/v1.19-hotfix' into main 2021-07-27 16:55:27 +02:00
599fde6581 minor fix healthbar 2021-07-27 16:55:00 +02:00
582ca88b59 Merge branch 'release/v1.19' into main 2021-07-27 16:35:55 +02:00
aa53bfc241 bump version + readme 2021-07-27 16:35:23 +02:00
bd2c15088d fix range check Warrior intercept 2021-07-27 16:33:04 +02:00
d2da0a22ae Revert "fix entering arena in combat bug"
This reverts commit 755a3e52b5.
2021-07-27 16:32:37 +02:00
915c213eb5 Merge tag 'v1.18' into develop
v1.18-Beta
2021-07-26 18:20:04 +02:00
0cfba040f1 Merge branch 'hotfix/v1.18' into main 2021-07-26 18:19:56 +02:00
2a5a0fa394 bump version + readme 2021-07-26 18:19:29 +02:00
a1387f8ecd castbarfont hotfix 2021-07-26 18:17:37 +02:00
e7a83d61f3 Merge tag 'v1.17' into develop
v1.17-Beta
2021-07-26 17:47:31 +02:00
7 changed files with 83 additions and 34 deletions

View File

@ -110,7 +110,7 @@ function Gladdy:CreateFrame()
self.anchor:Hide()
end
self.frame:SetAlpha(0)
self.frame:Hide()
end
function Gladdy:UpdateFrame()
@ -279,7 +279,13 @@ end
function Gladdy:HideFrame()
if (self.frame) then
self.frame:SetAlpha(0)
if InCombatLockdown() then
self.startTest = nil
self.hideFrame = true
else
self.frame:Hide()
end
self.frame.testing = nil
end
end
@ -304,8 +310,14 @@ function Gladdy:ToggleFrame(i)
self:Reset()
self.curBracket = i
self:UpdateFrame()
self:Test()
self.frame:SetAlpha(1)
if InCombatLockdown() then
Gladdy:Print("Gladdy frames show as soon as you leave combat")
self.showFrame = true
self.startTest = true
else
self:Test()
self.frame:Show()
end
end
end

View File

@ -25,7 +25,7 @@ local MAJOR, MINOR = "Gladdy", 4
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
local L
Gladdy.version_major_num = 1
Gladdy.version_minor_num = 0.17
Gladdy.version_minor_num = 0.19
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
Gladdy.version_releaseType = RELEASE_TYPES.beta
Gladdy.version = PREFIX .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
@ -250,16 +250,13 @@ end
function Gladdy:OnEnable()
self:RegisterEvent("UPDATE_BATTLEFIELD_STATUS")
self:RegisterEvent("PLAYER_ENTERING_WORLD")
self:CreateFrame()
for i = 1, 5 do
self:CreateButton(i)
end
self.curBracket = 5
self:UpdateFrame()
self:Reset()
self:RegisterEvent("PLAYER_REGEN_ENABLED")
if (IsAddOnLoaded("Clique")) then
for i = 1, 5 do
self:CreateButton(i)
end
ClickCastFrames = ClickCastFrames or {}
ClickCastFrames[self.buttons.arena1.secure] = true
ClickCastFrames[self.buttons.arena2.secure] = true
@ -301,22 +298,24 @@ end
function Gladdy:Test()
self.frame.testing = true
for i = 1, self.curBracket do
local unit = "arena" .. i
if (not self.buttons[unit]) then
self:CreateButton(i)
end
local button = self.buttons[unit]
if self.curBracket then
for i = 1, self.curBracket do
local unit = "arena" .. i
if (not self.buttons[unit]) then
self:CreateButton(i)
end
local button = self.buttons[unit]
for k, v in pairs(self.testData[unit]) do
button[k] = v
end
for k, v in pairs(self.testData[unit]) do
button[k] = v
end
for k, v in self:IterModules() do
self:Call(v, "Test", unit)
end
for k, v in self:IterModules() do
self:Call(v, "Test", unit)
end
button:SetAlpha(1)
button:SetAlpha(1)
end
end
end
@ -351,6 +350,23 @@ function Gladdy:UPDATE_BATTLEFIELD_STATUS(_, index)
end
end
function Gladdy:PLAYER_REGEN_ENABLED()
if self.showFrame then
self:UpdateFrame()
if self.startTest then
self:Test()
self.startTest = nil
end
self.frame:Show()
self.showFrame = nil
end
if self.hideFrame then
self:Reset()
self.frame:Hide()
self.hideFrame = nil
end
end
---------------------------
-- RESET FUNCTIONS (ARENA LEAVE)
@ -428,8 +444,20 @@ function Gladdy:JoinedArena()
self.curBracket = 2
end
Gladdy:SendMessage("JOINED_ARENA")
self.frame:SetAlpha(1)
for i = 1, self.curBracket do
if (not self.buttons["arena" .. i]) then
self:CreateButton(i)
end
end
self:SendMessage("JOINED_ARENA")
if InCombatLockdown() then
Gladdy:Print("Gladdy frames show as soon as you leave combat")
self.showFrame = true
else
self:UpdateFrame()
self.frame:Show()
end
for i=1, self.curBracket do
self.buttons["arena" .. i]:SetAlpha(1)
end

View File

@ -1,6 +1,6 @@
## Interface: 20501
## Title: Gladdy - TBC
## Version: 1.17-Beta
## Version: 1.19-Beta
## Notes: The most powerful arena AddOn for WoW 2.5.1
## Author: XiconQoo, DnB_Junkee, Knall
## X-Email: contact me on discord Knall#1751

View File

@ -184,10 +184,10 @@ function Castbar:UpdateFrame(unit)
end
end
castBar.spellText:SetFont(Gladdy.LSM:Fetch("font", Gladdy.db.auraFont), Gladdy.db.castBarFontSize)
castBar.spellText:SetFont(Gladdy.LSM:Fetch("font", Gladdy.db.castBarFont), Gladdy.db.castBarFontSize)
castBar.spellText:SetTextColor(Gladdy.db.castBarFontColor.r, Gladdy.db.castBarFontColor.g, Gladdy.db.castBarFontColor.b, Gladdy.db.castBarFontColor.a)
castBar.timeText:SetFont(Gladdy.LSM:Fetch("font", Gladdy.db.auraFont), Gladdy.db.castBarFontSize)
castBar.timeText:SetFont(Gladdy.LSM:Fetch("font", Gladdy.db.castBarFont), Gladdy.db.castBarFontSize)
castBar.timeText:SetTextColor(Gladdy.db.castBarFontColor.r, Gladdy.db.castBarFontColor.g, Gladdy.db.castBarFontColor.b, Gladdy.db.castBarFontColor.a)
castBar.icon.texture.overlay:SetTexture(Gladdy.db.castBarIconStyle)

View File

@ -257,7 +257,9 @@ function Healthbar:ENEMY_SPOTTED(unit)
healthBar.nameText:SetText(button.name)
end
healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1)
if button.class then
healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1)
end
end
function Healthbar:UNIT_HEALTH(unit, health, healthMax)

View File

@ -25,7 +25,7 @@ local classSpells = {
["SHAMAN"] = 10414,
["PALADIN"] = 10308,
["WARLOCK"] = 5782,
["WARRIOR"] = 20252,
["WARRIOR"] = 25275,
["HUNTER"] = 27018,
["ROGUE"] = 36554,
}

View File

@ -1,7 +1,7 @@
# Gladdy - TBC
### The most powerful arena addon for WoW TBC 2.5.1
## [v1.17-Beta Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v1.17-Beta/Gladdy_TBC-Classic_v1.17-Beta.zip)
## [v1.19-Beta Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v1.19-Beta/Gladdy_TBC-Classic_v1.19-Beta.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
@ -62,6 +62,13 @@ The goal is to make Gladdy highly configurable in it's appearance. Everything ca
### Changes
### v1.19-Beta
- fix gladdy frames not showing v2
- minor bug fixes
### v1.18-Beta
- castbar font now working properly
### v1.17-Beta
- option TimerFormat added (seconds or seconds + milliseconds) (General > Cooldown General > Timer Format)
- hide blizzard arena frames without cvars