Merge branch 'release/v1.07-Beta' into main
This commit is contained in:
commit
cf804546c2
38
Bindings.xml
38
Bindings.xml
@ -1,38 +0,0 @@
|
|||||||
<Bindings>
|
|
||||||
<Binding name="GLADDYBUTTON1_LEFT" header="GLADDY" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON2_LEFT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON3_LEFT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON4_LEFT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON5_LEFT" category="ADDONS"/>
|
|
||||||
|
|
||||||
<Binding name="GLADDYBUTTON1_RIGHT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON2_RIGHT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON3_RIGHT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON4_RIGHT" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON5_RIGHT" category="ADDONS"/>
|
|
||||||
|
|
||||||
<Binding name="GLADDYBUTTON1_MIDDLE" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON2_MIDDLE" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON3_MIDDLE" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON4_MIDDLE" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON5_MIDDLE" category="ADDONS"/>
|
|
||||||
|
|
||||||
<Binding name="GLADDYBUTTON1_BUTTON4" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON2_BUTTON4" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON3_BUTTON4" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON4_BUTTON4" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON5_BUTTON4" category="ADDONS"/>
|
|
||||||
|
|
||||||
<Binding name="GLADDYBUTTON1_BUTTON5" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON2_BUTTON5" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON3_BUTTON5" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON4_BUTTON5" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYBUTTON5_BUTTON5" category="ADDONS"/>
|
|
||||||
|
|
||||||
|
|
||||||
<Binding header="GLADDYTRINKET" name="GLADDYTRINKET1" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYTRINKET2" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYTRINKET3" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYTRINKET4" category="ADDONS"/>
|
|
||||||
<Binding name="GLADDYTRINKET5" category="ADDONS"/>
|
|
||||||
</Bindings>
|
|
@ -366,6 +366,13 @@ function Gladdy:GetImportantAuras()
|
|||||||
priority = 10,
|
priority = 10,
|
||||||
spellID = 1044,
|
spellID = 1044,
|
||||||
},
|
},
|
||||||
|
-- Blessing of Sacrifice
|
||||||
|
[GetSpellInfo(6940)] = {
|
||||||
|
track = AURA_TYPE_BUFF,
|
||||||
|
duration = 30,
|
||||||
|
priority = 12,
|
||||||
|
spellID = 6940,
|
||||||
|
},
|
||||||
-- Divine Shield
|
-- Divine Shield
|
||||||
[GetSpellInfo(642)] = {
|
[GetSpellInfo(642)] = {
|
||||||
track = AURA_TYPE_BUFF,
|
track = AURA_TYPE_BUFF,
|
||||||
@ -599,6 +606,14 @@ function Gladdy:GetImportantAuras()
|
|||||||
priority = 20,
|
priority = 20,
|
||||||
spellID = 8178
|
spellID = 8178
|
||||||
},
|
},
|
||||||
|
--Intervene
|
||||||
|
[GetSpellInfo(3411)] = {
|
||||||
|
track = AURA_TYPE_BUFF,
|
||||||
|
duration = 10,
|
||||||
|
priority = 10,
|
||||||
|
spellSchool = "physical",
|
||||||
|
spellID = 3411,
|
||||||
|
},
|
||||||
|
|
||||||
|
|
||||||
-- War Stomp
|
-- War Stomp
|
||||||
|
28
Frame.lua
28
Frame.lua
@ -32,7 +32,7 @@ function Gladdy:CreateFrame()
|
|||||||
self.frame = CreateFrame("Frame", "GladdyFrame", UIParent)
|
self.frame = CreateFrame("Frame", "GladdyFrame", UIParent)
|
||||||
|
|
||||||
self.frame:SetClampedToScreen(true)
|
self.frame:SetClampedToScreen(true)
|
||||||
self.frame:EnableMouse(true)
|
self.frame:EnableMouse(false)
|
||||||
self.frame:SetMovable(true)
|
self.frame:SetMovable(true)
|
||||||
self.frame:RegisterForDrag("LeftButton")
|
self.frame:RegisterForDrag("LeftButton")
|
||||||
|
|
||||||
@ -187,7 +187,7 @@ function Gladdy:UpdateFrame()
|
|||||||
local button = self.buttons["arena" .. i]
|
local button = self.buttons["arena" .. i]
|
||||||
button:SetWidth(self.db.barWidth + extraBarWidth)
|
button:SetWidth(self.db.barWidth + extraBarWidth)
|
||||||
button:SetHeight(self.db.healthBarHeight)
|
button:SetHeight(self.db.healthBarHeight)
|
||||||
button.secure:SetWidth(self.db.barWidth + extraBarWidth)
|
button.secure:SetWidth(self.db.barWidth)
|
||||||
button.secure:SetHeight(self.db.healthBarHeight + extraBarHeight)
|
button.secure:SetHeight(self.db.healthBarHeight + extraBarHeight)
|
||||||
|
|
||||||
button:ClearAllPoints()
|
button:ClearAllPoints()
|
||||||
@ -195,27 +195,27 @@ function Gladdy:UpdateFrame()
|
|||||||
if (self.db.growUp) then
|
if (self.db.growUp) then
|
||||||
if (i == 1) then
|
if (i == 1) then
|
||||||
button:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", self.db.padding + 2, 0)
|
button:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", self.db.padding + 2, 0)
|
||||||
button.secure:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT", self.db.padding + 2, 0)
|
button.secure:SetPoint("TOPLEFT", button.healthBar, "TOPLEFT")
|
||||||
else
|
else
|
||||||
button:SetPoint("BOTTOMLEFT", self.buttons["arena" .. (i - 1)], "TOPLEFT", 0, margin + self.db.bottomMargin)
|
button:SetPoint("BOTTOMLEFT", self.buttons["arena" .. (i - 1)], "TOPLEFT", 0, margin + self.db.bottomMargin)
|
||||||
button.secure:SetPoint("BOTTOMLEFT", self.buttons["arena" .. (i - 1)], "TOPLEFT", 0, margin + self.db.bottomMargin)
|
button.secure:SetPoint("TOPLEFT", button.healthBar, "TOPLEFT")
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if (i == 1) then
|
if (i == 1) then
|
||||||
button:SetPoint("TOPLEFT", self.frame, "TOPLEFT", self.db.padding + 2, 0)
|
button:SetPoint("TOPLEFT", self.frame, "TOPLEFT", self.db.padding + 2, 0)
|
||||||
button.secure:SetPoint("TOPLEFT", self.frame, "TOPLEFT", self.db.padding + 2, 0)
|
button.secure:SetPoint("TOPLEFT", button.healthBar, "TOPLEFT")
|
||||||
else
|
else
|
||||||
button:SetPoint("TOPLEFT", self.buttons["arena" .. (i - 1)], "BOTTOMLEFT", 0, -margin - self.db.bottomMargin)
|
button:SetPoint("TOPLEFT", self.buttons["arena" .. (i - 1)], "BOTTOMLEFT", 0, -margin - self.db.bottomMargin)
|
||||||
button.secure:SetPoint("TOPLEFT", self.buttons["arena" .. (i - 1)], "BOTTOMLEFT", 0, -margin - self.db.bottomMargin)
|
button.secure:SetPoint("TOPLEFT", button.healthBar, "TOPLEFT")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
for k, v in self:IterModules() do
|
for _, v in self:IterModules() do
|
||||||
self:Call(v, "UpdateFrame", button.unit)
|
self:Call(v, "UpdateFrame", button.unit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
for k, v in self:IterModules() do
|
for _, v in self:IterModules() do
|
||||||
self:Call(v, "UpdateFrameOnce")
|
self:Call(v, "UpdateFrameOnce")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -257,6 +257,7 @@ function Gladdy:CreateButton(i)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local button = CreateFrame("Frame", "GladdyButtonFrame" .. i, self.frame)
|
local button = CreateFrame("Frame", "GladdyButtonFrame" .. i, self.frame)
|
||||||
|
button:EnableMouse(false)
|
||||||
button:SetAlpha(0)
|
button:SetAlpha(0)
|
||||||
|
|
||||||
local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate")
|
local secure = CreateFrame("Button", "GladdyButton" .. i, button, "SecureActionButtonTemplate")
|
||||||
@ -265,12 +266,9 @@ function Gladdy:CreateButton(i)
|
|||||||
secure:SetAttribute("*type1", "target")
|
secure:SetAttribute("*type1", "target")
|
||||||
secure:SetAttribute("*type2", "focus")
|
secure:SetAttribute("*type2", "focus")
|
||||||
secure:SetAttribute("unit", "arena" .. i)
|
secure:SetAttribute("unit", "arena" .. i)
|
||||||
|
--secure.texture = secure:CreateTexture(nil, "OVERLAY")
|
||||||
button:RegisterEvent("UNIT_NAME_UPDATE")
|
--secure.texture:SetAllPoints(secure)
|
||||||
button:RegisterEvent("ARENA_OPPONENT_UPDATE")
|
--secure.texture:SetTexture("Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp")
|
||||||
button:RegisterEvent("ARENA_COOLDOWNS_UPDATE")
|
|
||||||
button:RegisterEvent("ARENA_CROWD_CONTROL_SPELL_UPDATE")
|
|
||||||
button:RegisterUnitEvent("UNIT_CONNECTION", "arena" .. i)
|
|
||||||
|
|
||||||
button.id = i
|
button.id = i
|
||||||
button.unit = "arena" .. i
|
button.unit = "arena" .. i
|
||||||
@ -281,7 +279,7 @@ function Gladdy:CreateButton(i)
|
|||||||
|
|
||||||
self.buttons[button.unit] = button
|
self.buttons[button.unit] = button
|
||||||
|
|
||||||
for k, v in self:IterModules() do
|
for _, v in self:IterModules() do
|
||||||
self:Call(v, "CreateFrame", button.unit)
|
self:Call(v, "CreateFrame", button.unit)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -25,7 +25,7 @@ local MAJOR, MINOR = "Gladdy", 4
|
|||||||
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
|
local Gladdy = LibStub:NewLibrary(MAJOR, MINOR)
|
||||||
local L
|
local L
|
||||||
Gladdy.version_major_num = 1
|
Gladdy.version_major_num = 1
|
||||||
Gladdy.version_minor_num = 0.06
|
Gladdy.version_minor_num = 0.07
|
||||||
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
|
Gladdy.version_num = Gladdy.version_major_num + Gladdy.version_minor_num
|
||||||
Gladdy.version_releaseType = RELEASE_TYPES.beta
|
Gladdy.version_releaseType = RELEASE_TYPES.beta
|
||||||
Gladdy.version = PREFIX .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
|
Gladdy.version = PREFIX .. Gladdy.version_num .. "-" .. Gladdy.version_releaseType
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
## Interface: 20501
|
## Interface: 20501
|
||||||
## Title: Gladdy - TBC
|
## Title: Gladdy - TBC
|
||||||
## Version: 1.06-Beta
|
## Version: 1.07-Beta
|
||||||
## Notes: The most powerful arena AddOn for WoW 2.5.1
|
## Notes: The most powerful arena AddOn for WoW 2.5.1
|
||||||
## Author: XiconQoo, DnB_Junkee, Knall
|
## Author: XiconQoo, DnB_Junkee, Knall
|
||||||
## X-Email: contact me on discord Knall#1751
|
## X-Email: contact me on discord Knall#1751
|
||||||
@ -34,4 +34,5 @@ Modules\VersionCheck.lua
|
|||||||
Modules\XiconProfiles.lua
|
Modules\XiconProfiles.lua
|
||||||
Modules\Pets.lua
|
Modules\Pets.lua
|
||||||
Modules\ExportImport.lua
|
Modules\ExportImport.lua
|
||||||
|
Modules\CombatIndicator.lua
|
||||||
EventListener.lua
|
EventListener.lua
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Images/mask.blp
Normal file
BIN
Images/mask.blp
Normal file
Binary file not shown.
@ -1,13 +1,13 @@
|
|||||||
local Gladdy = LibStub("Gladdy")
|
local Gladdy = LibStub("Gladdy")
|
||||||
|
|
||||||
function Gladdy:GetKlimpProfile()
|
function Gladdy:GetKlimpProfile()
|
||||||
return "4XzRBL1CBBKe(xKvn3hpAzhz7QIL1gQu7Uv5IoqKqICnjGwaW1r5H8BF7z6EWbVaKLEiMqaZ0tp910FDpzoF(TZND3U7VV(YW)8PfLf3KTC56IhMFnN(s4LZw)x5ZVwO6p43U5XvzZVsRykj3R1cNsP9M53)gTC(Sfz1nxMvDzz1Y8Q3vUPSkSuzizNFnB(ShI)Bv4FBMpBjmOYnll)rbs32LFVxZUWnFwXJ3wLVTS6QYIM)9xGbL3ej2YQ3VUo7Un5VBD1In5ZVRJpEOppWUqDCUGg9hZx)WkGKIWNYwSoBZVuei7Y5xoF2J5nFmpBtZQEd0WImvzt(2B2K1KJcN3U5hzpvFBw1d5nWCVJ2rZwv(J3URk795X)m8ECrUPSE(SF7tF4J3g2k)Z1lBwDv2IgGTVMFbitxLw2BZ)ZMDv5ZN951fR3MTzDDucgehWwa24bP3ss4pR5j4nZ(urtE19zlY)6BxU8lf1F9dBan9tF9tBZEiV(R4y)2h2uwdmXkyBTjU12BdFknjVtgUQt4eEiYurZhURV5tsV(HQYF8(1v5lAwxw0U9rI85S)miD6RUNp79LvRRV5gGfcYW913aZ2Ar8gPDFRBYqwMEFN55N2UDxr(WT2fEpAHCbte3G8Egji3Cv16)6V)J)XUSLvznz)9FCBYH6F1ZU8XYFKxDtE1I8IgqAheQDSv7atw8dv8bfz7qEJ9qg)QYQTN23cCxcS8MS64()a)XR0AWV1i1oMZ5H)J8FpQ3bPYsc4RScM2Q9kM06fwqyD)BuEuX8ty7vvURyz(YVD3MhhiKjRhrqsC0iu92ub)QXeg9MZZI)Q)V7YQs8xuL2lcGnzZounNgw3(aCcYkkGT6I8TW4QdCBt16IVN38B5zlFkyex)y(IWSZlY3gFbnGFVgdbHRu4dlZdU(pMv18eSfZR3vrEs1HXTmmT6UzC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||||||
|
|
||||||
function Gladdy:GetClassicProfile()
|
function Gladdy:GetClassicProfile()
|
||||||
return "4XzRB12CBBJe(x05H4DGpg3uNKzAs9v5oxVzYOuAjABErI0hj1L6(H(B)wGDbjeLOOCQYhmPiawS7I91hYSKT8ULlw3CDDZ6IMFOEtDJ)b5l)eB5I7d)9XWFB8)TdE2UhEO9dRQRwu(Nfl)exqp6A)FEZMNFcx6Q82URZNKSzbYMfiBMNSRHjvVzD93QiAKDLLO8XgO657Ak2w3CtDv3)(NHjv0fi36M3w2MF)MIFOSz1MIL3VCXZ1FRO5nR62LVz51lx01uw91IUdMwt(QY8n)yL)PR9t85IU3xKVP7jqmEFr5Jpb7GolS11DfBVDtExbkWVzZ3YFP9U8Mhl6G1EpX3lEQ(BVzxt(Blc)CytUTUD5IF5dV79bn))QCD3t3KVQRoOIx8uCtVR4p621uSCXhlRk3MVPSnON8ImOEbUgufUHZUfDVapBXhQ6kAEiFvXNFZ61)Cv7NF3M81RF5ZFyB(JfTFgN7xA)V7YBkw)L738mSJGWTjiG3psLh40F6hV5Ue2cvkbUiybW4PwaXv(UM6V92YMIvDL1v7tJpM)hE9B6r4YfVTUPS92BbteVg7GZWIHt5)HEptUbtrMl(8bJUpSD7UQI9n9UY5qRVRY4d21KblYn30u(N)1V)p3LVUjVl)V(97UBF7HJE0em0UTOzvrvhOR98nzR06L3aRn(WEDZV1lxSdz)BQB2oTFd4i4z8n5TbTWe(A3OvANtzyzcPYYeQLp8pucpDMAKMPgXVB05B)XbldpZ(7AeMO)hSRw34fSBH1wwHHHgRH8oyZPHswZ3p)foDtcfW0dhVEp9FSQy7lH4g0e7LKBugPntyLwzMZLzYaLPembZRQQ3vTQylyV06Lbk00VuKV(fV1t7ZfR8xlcK(((j8RTyek0DYpW6IGbyEt3lGGx0URH88cwER9lRDyf39emLNGZri8Di4BGLj3Y)xrtlSWVSn))u38LQDBXO)HaxJCvt9ioW47gqM1go3kDwTYWTKXfyqQ4CJjZyZ4gftlKdgKtms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dz0YzoakialvgUTkHt(r1(Z6lDjKi(B54lN75roo60pg8BOC41hSfNEZYL))BOyvch"
|
||||||
end
|
end
|
||||||
|
|
||||||
function Gladdy:GetKnallProfile()
|
function Gladdy:GetKnallProfile()
|
||||||
return "4XzRA12CBJJd(xuZW3j1hBA302z2(YTo7CBNPJ7QyRe7R2s5KKVUz)W(B)ajaLPKJIuA9xIvKabbabbEaixYxE9YfRRVSQEDr9RQ2vv7Fr(YpWxU4MWFVl83A)FBxUyvv1U1vFVC2d4Md3EBZL()8YD3VbPBvEt7L5JoPSapybEW88ynqeoTipUYizAMmtzDsUZKPxE7l0sGV7YBAE3QQYpv1SCXV(lxbCT8(RRl2xvFvvz7N)iigfTbEVU(1BBYVzxXR2wVAxXYBwU4(QVxu)YvThY3T8YoP8TfBVBdmgHbeO8vBZ39lL(XT2tZ9fTVTiFx7MecnSWSw1wS)t7YBlqf)L7(E(dnxNxFxrlm2BilZInvF)LhQZFDr4F9VhNKGk8BV7nV9AsW8u(B5Rk8t7M4CEDXF1EOUy5If7RQA3KiqFQOEvrzB(DHbexHx0(aORlExzBr9TaZ(YlxV(JLnF5n7YxV(HV8U9a9nFbP9RVzxvdieBa1Axq1UKe64QrqgV(JFkrGWj3BSxS9VlGvurQlqCGVPU67VEBDXQ2TvLDQjYK3N)xERq662YfVUQEBZNGjk3BRozHR44s7l0CKQFDBt7RlUn)WUwV3LXAz(Flsw8Q3cST9HLFqfCZeoRCCA4ApnCHuRNGpCMK5MIgNsmoFW5sYng(K8XONAUKCHqnkncIgo3oH8iYabACAq5jd2yoLmRvUjNllZnUEjr(yYSztrJWXgNgAD3K5MIpcMwnfFKsz24RPK8yTJBcjZJCsVqxMBCJCuGZgFnhNiyzyksukMA8LQOjwKjMABdtn(u155yhFQqXXzut6CjCIPSWoqKNATuzEcLc3ZWvYj9T4mHDC)yuZfAHDQfcbeUy85IIxOuzt55iScXKMqhO8tTG6uzpHEH0KjDtTuyytfnvluprqhnfiyYfuHmtmUXrJtL1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f1TDgPeBFcM8I4Pu664I3A(8c9gIhuVH1NhgpYYXK9dhYQQYQov9fxxKxbXuofEmTm0MrcgFKBtFtTN3Mkwy3mq7J9mKcwU(AN)nW7Rzt1M4AS7yogryO9xBuJBkER)C9)u7LXUJG6ZP3NV(ufIfLtGA3laYpzYLo1g(Wqnl0vsVYHNH8yD(jQ95OsHRQtRpuDBuDexrRx7FJS69V2nrfXs)vWiukBNRRaVxnfdlLAyV6VKSfyKKEIas(nCevD)3hygi(jOSqMbs3aLIPuq)0qV6qzHQJlRT7Dd6DqqX7Hnxwy6cvBZYE0)qN7J2DfLRZ82bElRC)3xXLqsnm8CD52Q6d7NZAGkedPFl3Vz2lXzqY8qkExVMAbgF72Wc(r1CGwisc15wToTgmGM3A46WUyde7X3(B9CwKXFmW(fTEwqZvHtZ)US0Y5aV)yzccwW1zoWRDkhPiEbljeIOm7r)fbA)6SzTQeCvBktVh6f92YSuW3Eglurc5dPZbATFqEE5vzw2FMvxMoltyTtQ8RkF3JWBMLIPXC8P1Bl2plrGHh4TM8qn3Bk3GizZWdVPw7orK7ovKUv93EtaNrj)DG(eDomKT7vp1WGwB60pI)sF1wnceMniCwCu5BbG1D(pnkmCPFjCL4Izi73uVh2i7r0IfdygpQvs6UA4v98vKYyqC0J6W2)rVi75nzkQxT6))I8c73a"
|
||||||
end
|
end
|
@ -6,8 +6,6 @@ assert(LibStub, string.format("%s requires LibStub.", major))
|
|||||||
local Data = LibStub:NewLibrary(major, minor)
|
local Data = LibStub:NewLibrary(major, minor)
|
||||||
if( not Data ) then return end
|
if( not Data ) then return end
|
||||||
|
|
||||||
if( IS_WRATH_BUILD == nil ) then IS_WRATH_BUILD = (select(4, GetBuildInfo()) >= 30000) end
|
|
||||||
|
|
||||||
-- How long before DR resets
|
-- How long before DR resets
|
||||||
Data.RESET_TIME = 18
|
Data.RESET_TIME = 18
|
||||||
|
|
||||||
@ -234,42 +232,6 @@ Data.spells = {
|
|||||||
[10912] = "charm",
|
[10912] = "charm",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Add WoTLK spells
|
|
||||||
if( IS_WRATH_BUILD ) then
|
|
||||||
-- Death Coil
|
|
||||||
Data.spells[47859] = "dc"
|
|
||||||
Data.spells[47860] = "dc"
|
|
||||||
|
|
||||||
-- Wyvern Sting
|
|
||||||
Data.spells[49011] = "sleep"
|
|
||||||
Data.spells[49012] = "sleep"
|
|
||||||
|
|
||||||
-- Entangling Roots
|
|
||||||
Data.spells[53308] = "root"
|
|
||||||
|
|
||||||
-- Frost Nova
|
|
||||||
Data.spells[42917] = "root"
|
|
||||||
|
|
||||||
-- Intercept (Remove all except this one come WoTLK)
|
|
||||||
Data.spells[20252] = "ctrlstun"
|
|
||||||
|
|
||||||
-- Pounce
|
|
||||||
Data.spells[49803] = "ctrlstun"
|
|
||||||
|
|
||||||
-- Polymorph
|
|
||||||
Data.spells[61305] = "disorient"
|
|
||||||
Data.spells[61025] = "disorient"
|
|
||||||
|
|
||||||
-- Sap
|
|
||||||
Data.spells[51724] = "disorient"
|
|
||||||
|
|
||||||
-- Maim
|
|
||||||
Data.spells[49802] = "disorient"
|
|
||||||
|
|
||||||
-- Hex (Guessing)
|
|
||||||
Data.spells[51514] = "disorient"
|
|
||||||
end
|
|
||||||
|
|
||||||
-- DR Category names
|
-- DR Category names
|
||||||
Data.typeNames = {
|
Data.typeNames = {
|
||||||
["disorient"] = "Disorients",
|
["disorient"] = "Disorients",
|
||||||
|
@ -59,41 +59,107 @@ Buff({ 33891 }, { buffType = "form"}, "DRUID") -- Tree of Life
|
|||||||
Buff({ 16864 }, { buffType = "magic"}, "DRUID") -- Omen of Clarity
|
Buff({ 16864 }, { buffType = "magic"}, "DRUID") -- Omen of Clarity
|
||||||
Buff({ 16689, 16810, 16811, 16812, 16813, 17329, 27009 }, { buffType = "magic"}, "DRUID") -- Nature's Grasp
|
Buff({ 16689, 16810, 16811, 16812, 16813, 17329, 27009 }, { buffType = "magic"}, "DRUID") -- Nature's Grasp
|
||||||
Buff({ 45281, 45282, 45283 }, { buffType = "magic"}, "DRUID") -- Natural Perfection
|
Buff({ 45281, 45282, 45283 }, { buffType = "magic"}, "DRUID") -- Natural Perfection
|
||||||
Buff({ 16188 }, { buffType = "magic"}, "DRUID") -- Nature's Swiftness
|
Buff({ 17116 }, { buffType = "magic"}, "DRUID") -- Nature's Swiftness
|
||||||
Buff({ 17007 }, { buffType = "aura"}, "DRUID") -- Leader of the Pack
|
Buff({ 17007 }, { buffType = "aura"}, "DRUID") -- Leader of the Pack
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
-- WARRIOR
|
-- WARRIOR -- TODO
|
||||||
-------------
|
-------------
|
||||||
--Buff({ 29703 }, { buffType = "physical"}, "WARRIOR") -- Dazed
|
Buff({ 29838 }, { buffType = "physical"}, "WARRIOR") -- Second Wind
|
||||||
|
Buff({ 12292 }, { buffType = "physical"}, "WARRIOR") -- Death Wish
|
||||||
|
Buff({ 6673 }, { buffType = "physical"}, "WARRIOR") -- Battle Shout
|
||||||
|
Buff({ 469 }, { buffType = "physical"}, "WARRIOR") -- Commanding Shout
|
||||||
|
Buff({ 12328 }, { buffType = "physical"}, "WARRIOR") -- Sweeping Strikes
|
||||||
|
Buff({ 30032 }, { buffType = "physical"}, "WARRIOR") -- Rampage
|
||||||
|
Buff({ 2687 }, { buffType = "physical"}, "WARRIOR") -- Blood Rage
|
||||||
|
Buff({ 20230 }, { buffType = "physical"}, "WARRIOR") -- Retaliation
|
||||||
|
Buff({ 871 }, { buffType = "physical"}, "WARRIOR") -- Shield Wall
|
||||||
|
Buff({ 18499 }, { buffType = "physical"}, "WARRIOR") -- Berserker Rage
|
||||||
|
Buff({ 23885 }, { buffType = "physical"}, "WARRIOR") -- Bloodthirst
|
||||||
|
Buff({ 3411 }, { buffType = "physical"}, "WARRIOR") -- Intervene
|
||||||
|
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
-- ROGUE
|
-- ROGUE -- TODO
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
Buff({ 2983 }, { buffType = "physical" }, "ROGUE") -- Sprint
|
Buff({ 2983 }, { buffType = "physical" }, "ROGUE") -- Sprint
|
||||||
Buff({ 5277 }, { buffType = "physical" }, "ROGUE") -- Evasion
|
Buff({ 5277 }, { buffType = "physical" }, "ROGUE") -- Evasion
|
||||||
|
Buff({ 31224 }, { buffType = "physical" }, "ROGUE") -- Cloak of Shadows
|
||||||
|
Buff({ 14278 }, { buffType = "physical" }, "ROGUE") -- Ghostly Strike
|
||||||
|
|
||||||
|
|
||||||
------------
|
------------
|
||||||
-- WARLOCK
|
-- WARLOCK --TODO
|
||||||
------------
|
------------
|
||||||
Buff({ 19028 }, { buffType = "immune"}, "WARLOCK") -- Soul Link
|
Buff({ 19028 }, { buffType = "aura"}, "WARLOCK") -- Soul Link
|
||||||
Buff({ 23759 }, { buffType = "immune"}, "WARLOCK") -- Master Demonologist
|
Buff({ 696 }, { buffType = "aura"}, "WARLOCK") -- Demon Skin
|
||||||
|
Buff({ 706 }, { buffType = "aura"}, "WARLOCK") -- Demon Armor
|
||||||
|
Buff({ 28176 }, { buffType = "aura"}, "WARLOCK") -- Fel Armor
|
||||||
|
Buff({ 23759 }, { buffType = "aura"}, "WARLOCK") -- Master Demonologist
|
||||||
|
Buff({ 34936 }, { buffType = "magic"}, "WARLOCK") -- Backlash
|
||||||
|
Buff({ 5697 }, { buffType = "magic"}, "WARLOCK") -- Unending Breath
|
||||||
|
Buff({ 132 }, { buffType = "magic"}, "WARLOCK") -- Detect Invisibility
|
||||||
|
Buff({ 1949 }, { buffType = "aura"}, "WARLOCK") -- Hellfire
|
||||||
|
Buff({ 6229 }, { buffType = "magic"}, "WARLOCK") -- Shadow Ward
|
||||||
|
Buff({ 19480 }, { buffType = "magic"}, "WARLOCK") -- Paranoia
|
||||||
|
Buff({ 7812 }, { buffType = "magic"}, "WARLOCK") -- Sacrifice
|
||||||
|
Buff({ 2947 }, { buffType = "magic"}, "WARLOCK") -- Fire Shield
|
||||||
|
|
||||||
|
|
||||||
---------------
|
---------------
|
||||||
-- SHAMAN
|
-- SHAMAN
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
Buff({ 8178 } ,{ buffType = "magic" }, "SHAMAN") -- Grounding Totem Effect
|
Buff({ 8178 } ,{ buffType = "magic" }, "SHAMAN") -- Grounding Totem Effect
|
||||||
|
Buff({ 30823 } ,{ buffType = "magic" }, "SHAMAN") -- Shamanistic Rage
|
||||||
|
Buff({ 32182 } ,{ buffType = "magic" }, "SHAMAN") -- Heroism
|
||||||
|
Buff({ 2825 } ,{ buffType = "magic" }, "SHAMAN") -- Bloodlust
|
||||||
|
Buff({ 974 } ,{ buffType = "magic" }, "SHAMAN") -- Earth Shield
|
||||||
|
Buff({ 24398 } ,{ buffType = "magic" }, "SHAMAN") -- Water Shield
|
||||||
|
Buff({ 324 } ,{ buffType = "magic" }, "SHAMAN") -- Lightning Shield
|
||||||
|
Buff({ 16188 } ,{ buffType = "magic" }, "SHAMAN") -- Nature's Swiftness
|
||||||
|
Buff({ 16166 } ,{ buffType = "magic" }, "SHAMAN") -- Elemental Mastery
|
||||||
|
|
||||||
--------------
|
--------------
|
||||||
-- PALADIN
|
-- PALADIN --TODO
|
||||||
--------------
|
--------------
|
||||||
|
--Blessings
|
||||||
--Buff( { 25771 }, { buffType = "immune"}, "PALADIN") -- Forbearance
|
Buff( { 1022, 5599, 10278 }, { buffType = "magic"}, "PALADIN") -- Blessing of Protection
|
||||||
|
Buff( { 6940 }, { buffType = "magic"}, "PALADIN") -- Blessing of Sacrifice
|
||||||
|
Buff( { 1044 }, { buffType = "magic"}, "PALADIN") -- Blessing of Freedom
|
||||||
|
Buff( { 19740, 19834, 19835, 19836, 19837, 19838, 25291, 27140 }, { buffType = "magic"}, "PALADIN") -- Blessing of Might
|
||||||
|
Buff( { 19742 }, { buffType = "magic"}, "PALADIN") -- Blessing of Wisdom
|
||||||
|
Buff( { 20217 }, { buffType = "magic"}, "PALADIN") -- Blessing of Kings
|
||||||
|
Buff( { 19977 }, { buffType = "magic"}, "PALADIN") -- Blessing of Light
|
||||||
|
Buff( { 1038 }, { buffType = "magic"}, "PALADIN") -- Blessing of Salvation
|
||||||
|
Buff( { 20911 }, { buffType = "magic"}, "PALADIN") -- Blessing of Sanctuary
|
||||||
|
Buff( { 25898 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Kings
|
||||||
|
Buff( { 25890 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Light
|
||||||
|
Buff( { 25782 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Might
|
||||||
|
Buff( { 25895 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Salvation
|
||||||
|
Buff( { 25899 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Sanctuary
|
||||||
|
Buff( { 25894 }, { buffType = "magic"}, "PALADIN") -- Greater Blessing of Wisdom
|
||||||
|
Buff( { 642 }, { buffType = "magic"}, "PALADIN") -- Divine Shield
|
||||||
|
--Auras
|
||||||
|
Buff( { 465, 10290, 643, 10291, 1032, 10292, 10293, 27149 }, { buffType = "aura"}, "PALADIN") -- Devotion Aura
|
||||||
|
Buff( { 7294 }, { buffType = "aura"}, "PALADIN") -- Retribution Aura
|
||||||
|
Buff( { 19746 }, { buffType = "aura"}, "PALADIN") -- Concentration Aura
|
||||||
|
Buff( { 19876 }, { buffType = "aura"}, "PALADIN") -- Shadow Resistance Aura
|
||||||
|
Buff( { 20218 }, { buffType = "aura"}, "PALADIN") -- Sanctity Aura
|
||||||
|
Buff( { 19888 }, { buffType = "aura"}, "PALADIN") -- Frost Resistance Aura
|
||||||
|
Buff( { 19891 }, { buffType = "aura"}, "PALADIN") -- Fire Resistance Aura
|
||||||
|
Buff( { 32223 }, { buffType = "aura"}, "PALADIN") -- Crusader Aura
|
||||||
|
--Seals
|
||||||
|
Buff( { 20154, 20287, 20288, 20289, 20290, 20291, 20292, 20293, 27155 }, { buffType = "magic"}, "PALADIN") -- Seal of Righteousness
|
||||||
|
Buff( { 31892 }, { buffType = "magic"}, "PALADIN") -- Seal of Blood
|
||||||
|
Buff( { 20375 }, { buffType = "magic"}, "PALADIN") -- Seal of Command
|
||||||
|
Buff( { 20164 }, { buffType = "magic"}, "PALADIN") -- Seal of Justice
|
||||||
|
Buff( { 20165 }, { buffType = "magic"}, "PALADIN") -- Seal of Light
|
||||||
|
Buff( { 15277 }, { buffType = "magic"}, "PALADIN") -- Seal of Reckoning
|
||||||
|
Buff( { 31801 }, { buffType = "magic"}, "PALADIN") -- Seal of Vengeance
|
||||||
|
Buff( { 20166 }, { buffType = "magic"}, "PALADIN") -- Seal of Wisdom
|
||||||
|
Buff( { 21082 }, { buffType = "magic"}, "PALADIN") -- Seal of the Crusade
|
||||||
|
|
||||||
|
|
||||||
-------------
|
-------------
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
local select, floor, str_len, tostring, str_sub, str_find = select, math.floor, string.len, tostring, string.sub, string.find
|
local floor, str_len, tostring, str_sub, str_find = math.floor, string.len, tostring, string.sub, string.find
|
||||||
local IsInInstance = IsInInstance
|
local CreateFrame = CreateFrame
|
||||||
|
|
||||||
local Gladdy = LibStub("Gladdy")
|
local Gladdy = LibStub("Gladdy")
|
||||||
local L = Gladdy.L
|
local L = Gladdy.L
|
||||||
@ -8,87 +8,88 @@ local ACDFrame = Gladdy:NewModule("Countdown", nil, {
|
|||||||
arenaCountdownSize = 256
|
arenaCountdownSize = 256
|
||||||
})
|
})
|
||||||
|
|
||||||
|
function ACDFrame:OnEvent(event, ...)
|
||||||
|
self[event](self, ...)
|
||||||
|
end
|
||||||
|
|
||||||
function ACDFrame:Initialize()
|
function ACDFrame:Initialize()
|
||||||
self.hidden = false
|
self.hidden = false
|
||||||
self.countdown = -1
|
self.countdown = -1
|
||||||
self.texturePath = "Interface\\AddOns\\Gladdy\\Images\\Countdown\\";
|
self.texturePath = "Interface\\AddOns\\Gladdy\\Images\\Countdown\\";
|
||||||
ACDFrame:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
|
|
||||||
ACDFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
|
local ACDNumFrame = CreateFrame("Frame", "ACDNumFrame", UIParent)
|
||||||
|
ACDNumFrame:EnableMouse(false)
|
||||||
|
ACDNumFrame:SetHeight(256)
|
||||||
|
ACDNumFrame:SetWidth(256)
|
||||||
|
ACDNumFrame:SetPoint("CENTER", 0, 128)
|
||||||
|
ACDNumFrame:Show()
|
||||||
|
self.ACDNumFrame = ACDNumFrame
|
||||||
|
|
||||||
|
local ACDNumTens = ACDNumFrame:CreateTexture("ACDNumTens", "HIGH")
|
||||||
|
ACDNumTens:SetWidth(256)
|
||||||
|
ACDNumTens:SetHeight(128)
|
||||||
|
ACDNumTens:SetPoint("CENTER", ACDNumFrame, "CENTER", -48, 0)
|
||||||
|
self.ACDNumTens = ACDNumTens
|
||||||
|
|
||||||
|
local ACDNumOnes = ACDNumFrame:CreateTexture("ACDNumOnes", "HIGH")
|
||||||
|
ACDNumOnes:SetWidth(256)
|
||||||
|
ACDNumOnes:SetHeight(128)
|
||||||
|
ACDNumOnes:SetPoint("CENTER", ACDNumFrame, "CENTER", 48, 0)
|
||||||
|
self.ACDNumOnes = ACDNumOnes
|
||||||
|
|
||||||
|
local ACDNumOne = ACDNumFrame:CreateTexture("ACDNumOne", "HIGH")
|
||||||
|
ACDNumOne:SetWidth(256)
|
||||||
|
ACDNumOne:SetHeight(128)
|
||||||
|
ACDNumOne:SetPoint("CENTER", ACDNumFrame, "CENTER", 0, 0)
|
||||||
|
self.ACDNumOne = ACDNumOne
|
||||||
|
|
||||||
|
self:RegisterMessage("JOINED_ARENA")
|
||||||
end
|
end
|
||||||
|
|
||||||
function ACDFrame:OnEvent(event, ...)
|
function ACDFrame.OnUpdate(self, elapse)
|
||||||
-- functions created in "object:method"-style have an implicit first parameter of "self", which points to object
|
if (self.countdown > 0 and Gladdy.db.countdown) then
|
||||||
self[event](self, ...) -- route event parameters to LoseControl:event methods
|
self.hidden = false;
|
||||||
end
|
|
||||||
ACDFrame:SetScript("OnEvent", ACDFrame.OnEvent)
|
|
||||||
|
|
||||||
|
if ((floor(self.countdown) ~= floor(self.countdown - elapse)) and (floor(self.countdown - elapse) >= 0)) then
|
||||||
|
local str = tostring(floor(self.countdown - elapse));
|
||||||
|
|
||||||
local ACDNumFrame = CreateFrame("Frame", "ACDNumFrame", UIParent)
|
if (floor(self.countdown - elapse) == 0) then
|
||||||
ACDNumFrame:SetHeight(256)
|
self.ACDNumTens:Hide();
|
||||||
ACDNumFrame:SetWidth(256)
|
self.ACDNumOnes:Hide();
|
||||||
ACDNumFrame:SetPoint("CENTER", 0, 128)
|
self.ACDNumOne:Hide();
|
||||||
ACDNumFrame:Show()
|
elseif (str_len(str) == 2) then
|
||||||
|
-- Display has 2 digits
|
||||||
|
self.ACDNumOne:Hide();
|
||||||
|
self.ACDNumTens:Show();
|
||||||
|
self.ACDNumOnes:Show();
|
||||||
|
|
||||||
local ACDNumTens = ACDNumFrame:CreateTexture("ACDNumTens", "HIGH")
|
self.ACDNumTens:SetTexture(self.texturePath .. str_sub(str, 0, 1));
|
||||||
ACDNumTens:SetWidth(256)
|
self.ACDNumOnes:SetTexture(self.texturePath .. str_sub(str, 2, 2));
|
||||||
ACDNumTens:SetHeight(128)
|
self.ACDNumFrame:SetScale(0.7)
|
||||||
ACDNumTens:SetPoint("CENTER", ACDNumFrame, "CENTER", -48, 0)
|
elseif (str_len(str) == 1) then
|
||||||
|
-- Display has 1 digit
|
||||||
local ACDNumOnes = ACDNumFrame:CreateTexture("ACDNumOnes", "HIGH")
|
self.ACDNumOne:Show();
|
||||||
ACDNumOnes:SetWidth(256)
|
self.ACDNumOne:SetTexture(self.texturePath .. str_sub(str, 0, 1));
|
||||||
ACDNumOnes:SetHeight(128)
|
self.ACDNumOnes:Hide();
|
||||||
ACDNumOnes:SetPoint("CENTER", ACDNumFrame, "CENTER", 48, 0)
|
self.ACDNumTens:Hide();
|
||||||
|
self.ACDNumFrame:SetScale(1.0)
|
||||||
local ACDNumOne = ACDNumFrame:CreateTexture("ACDNumOne", "HIGH")
|
|
||||||
ACDNumOne:SetWidth(256)
|
|
||||||
ACDNumOne:SetHeight(128)
|
|
||||||
ACDNumOne:SetPoint("CENTER", ACDNumFrame, "CENTER", 0, 0)
|
|
||||||
|
|
||||||
function ACDFrame:PLAYER_ENTERING_WORLD()
|
|
||||||
|
|
||||||
local instanceType = select(2, IsInInstance())
|
|
||||||
if (( instanceType == "arena" )) then
|
|
||||||
ACDFrame:SetScript("OnUpdate", function(self, elapse)
|
|
||||||
if (self.countdown > 0 and Gladdy.db.countdown) then
|
|
||||||
self.hidden = false;
|
|
||||||
|
|
||||||
if ((floor(self.countdown) ~= floor(self.countdown - elapse)) and (floor(self.countdown - elapse) >= 0)) then
|
|
||||||
local str = tostring(floor(self.countdown - elapse));
|
|
||||||
|
|
||||||
if (floor(self.countdown - elapse) == 0) then
|
|
||||||
ACDNumTens:Hide();
|
|
||||||
ACDNumOnes:Hide();
|
|
||||||
ACDNumOne:Hide();
|
|
||||||
elseif (str_len(str) == 2) then
|
|
||||||
-- Display has 2 digits
|
|
||||||
ACDNumOne:Hide();
|
|
||||||
ACDNumTens:Show();
|
|
||||||
ACDNumOnes:Show();
|
|
||||||
|
|
||||||
ACDNumTens:SetTexture(self.texturePath .. str_sub(str, 0, 1));
|
|
||||||
ACDNumOnes:SetTexture(self.texturePath .. str_sub(str, 2, 2));
|
|
||||||
ACDNumFrame:SetScale(0.7)
|
|
||||||
elseif (str_len(str) == 1) then
|
|
||||||
-- Display has 1 digit
|
|
||||||
ACDNumOne:Show();
|
|
||||||
ACDNumOne:SetTexture(self.texturePath .. str_sub(str, 0, 1));
|
|
||||||
ACDNumOnes:Hide();
|
|
||||||
ACDNumTens:Hide();
|
|
||||||
ACDNumFrame:SetScale(1.0)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
self.countdown = self.countdown - elapse;
|
|
||||||
else
|
|
||||||
self.hidden = true;
|
|
||||||
ACDNumTens:Hide();
|
|
||||||
ACDNumOnes:Hide();
|
|
||||||
ACDNumOne:Hide();
|
|
||||||
end
|
end
|
||||||
|
end
|
||||||
end)
|
self.countdown = self.countdown - elapse;
|
||||||
|
else
|
||||||
|
self.hidden = true;
|
||||||
|
self.ACDNumTens:Hide();
|
||||||
|
self.ACDNumOnes:Hide();
|
||||||
|
self.ACDNumOne:Hide();
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function ACDFrame:JOINED_ARENA()
|
||||||
|
self:RegisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
|
||||||
|
self:SetScript("OnEvent", ACDFrame.OnEvent)
|
||||||
|
self:SetScript("OnUpdate", ACDFrame.OnUpdate)
|
||||||
|
end
|
||||||
|
|
||||||
function ACDFrame:CHAT_MSG_BG_SYSTEM_NEUTRAL(msg)
|
function ACDFrame:CHAT_MSG_BG_SYSTEM_NEUTRAL(msg)
|
||||||
if (str_find(msg, "L'ar\195\168ne ouvre ses portes dans 60 secondes !")) then
|
if (str_find(msg, "L'ar\195\168ne ouvre ses portes dans 60 secondes !")) then
|
||||||
self.countdown = 61
|
self.countdown = 61
|
||||||
@ -129,29 +130,36 @@ function ACDFrame:CHAT_MSG_BG_SYSTEM_NEUTRAL(msg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function ACDFrame:UpdateFrame()
|
function ACDFrame:UpdateFrame()
|
||||||
ACDNumFrame:SetHeight(Gladdy.db.arenaCountdownSize)
|
self.ACDNumFrame:SetHeight(Gladdy.db.arenaCountdownSize)
|
||||||
ACDNumFrame:SetWidth(Gladdy.db.arenaCountdownSize)
|
self.ACDNumFrame:SetWidth(Gladdy.db.arenaCountdownSize)
|
||||||
ACDNumFrame:SetPoint("CENTER", 0, 128)
|
self.ACDNumFrame:SetPoint("CENTER", 0, 128)
|
||||||
|
|
||||||
ACDNumTens:SetWidth(Gladdy.db.arenaCountdownSize)
|
self.ACDNumTens:SetWidth(Gladdy.db.arenaCountdownSize)
|
||||||
ACDNumTens:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
self.ACDNumTens:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
||||||
ACDNumTens:SetPoint("CENTER", ACDNumFrame, "CENTER", -(Gladdy.db.arenaCountdownSize/8 + Gladdy.db.arenaCountdownSize/8/2), 0)
|
self.ACDNumTens:SetPoint("CENTER", self.ACDNumFrame, "CENTER", -(Gladdy.db.arenaCountdownSize/8 + Gladdy.db.arenaCountdownSize/8/2), 0)
|
||||||
|
|
||||||
ACDNumOnes:SetWidth(Gladdy.db.arenaCountdownSize)
|
self.ACDNumOnes:SetWidth(Gladdy.db.arenaCountdownSize)
|
||||||
ACDNumOnes:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
self.ACDNumOnes:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
||||||
ACDNumOnes:SetPoint("CENTER", ACDNumFrame, "CENTER", (Gladdy.db.arenaCountdownSize/8 + Gladdy.db.arenaCountdownSize/8/2), 0)
|
self.ACDNumOnes:SetPoint("CENTER", self.ACDNumFrame, "CENTER", (Gladdy.db.arenaCountdownSize/8 + Gladdy.db.arenaCountdownSize/8/2), 0)
|
||||||
|
|
||||||
ACDNumOne:SetWidth(Gladdy.db.arenaCountdownSize)
|
self.ACDNumOne:SetWidth(Gladdy.db.arenaCountdownSize)
|
||||||
ACDNumOne:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
self.ACDNumOne:SetHeight(Gladdy.db.arenaCountdownSize/2)
|
||||||
ACDNumOne:SetPoint("CENTER", ACDNumFrame, "CENTER", 0, 0)
|
self.ACDNumOne:SetPoint("CENTER", self.ACDNumFrame, "CENTER", 0, 0)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ACDFrame:Test()
|
function ACDFrame:Test()
|
||||||
self.countdown = 30
|
self.countdown = 30
|
||||||
|
self:JOINED_ARENA()
|
||||||
end
|
end
|
||||||
|
|
||||||
function ACDFrame:Reset()
|
function ACDFrame:Reset()
|
||||||
self.countdown = 0
|
self.countdown = 0
|
||||||
|
self:UnregisterEvent("CHAT_MSG_BG_SYSTEM_NEUTRAL")
|
||||||
|
self:SetScript("OnUpdate", nil)
|
||||||
|
self.hidden = true;
|
||||||
|
self.ACDNumTens:Hide();
|
||||||
|
self.ACDNumOnes:Hide();
|
||||||
|
self.ACDNumOne:Hide();
|
||||||
end
|
end
|
||||||
|
|
||||||
function ACDFrame:GetOptions()
|
function ACDFrame:GetOptions()
|
||||||
|
@ -42,6 +42,7 @@ end
|
|||||||
|
|
||||||
function Auras:CreateFrame(unit)
|
function Auras:CreateFrame(unit)
|
||||||
local auraFrame = CreateFrame("Frame", nil, Gladdy.modules.Classicon.frames[unit])
|
local auraFrame = CreateFrame("Frame", nil, Gladdy.modules.Classicon.frames[unit])
|
||||||
|
auraFrame:EnableMouse(false)
|
||||||
auraFrame:SetFrameStrata("MEDIUM")
|
auraFrame:SetFrameStrata("MEDIUM")
|
||||||
auraFrame:SetFrameLevel(3)
|
auraFrame:SetFrameLevel(3)
|
||||||
|
|
||||||
@ -59,6 +60,7 @@ function Auras:CreateFrame(unit)
|
|||||||
auraFrame.cooldownFrame:SetFrameLevel(5)
|
auraFrame.cooldownFrame:SetFrameLevel(5)
|
||||||
|
|
||||||
auraFrame.icon = auraFrame:CreateTexture(nil, "BACKGROUND")
|
auraFrame.icon = auraFrame:CreateTexture(nil, "BACKGROUND")
|
||||||
|
auraFrame.icon:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
auraFrame.icon:SetAllPoints(auraFrame)
|
auraFrame.icon:SetAllPoints(auraFrame)
|
||||||
|
|
||||||
auraFrame.icon.overlay = auraFrame.cooldownFrame:CreateTexture(nil, "OVERLAY")
|
auraFrame.icon.overlay = auraFrame.cooldownFrame:CreateTexture(nil, "OVERLAY")
|
||||||
|
@ -506,8 +506,10 @@ function BuffsDebuffs:AddAura(unit, spellID, auraType, duration, timeLeft, stack
|
|||||||
aura = tremove(self.framePool, #self.framePool)
|
aura = tremove(self.framePool, #self.framePool)
|
||||||
else
|
else
|
||||||
aura = CreateFrame("Frame")
|
aura = CreateFrame("Frame")
|
||||||
|
aura:EnableMouse(false)
|
||||||
aura:SetFrameLevel(3)
|
aura:SetFrameLevel(3)
|
||||||
aura.texture = aura:CreateTexture(nil, "BACKGROUND")
|
aura.texture = aura:CreateTexture(nil, "BACKGROUND")
|
||||||
|
aura.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
aura.texture:SetAllPoints(aura)
|
aura.texture:SetAllPoints(aura)
|
||||||
aura.cooldowncircle = CreateFrame("Cooldown", nil, aura, "CooldownFrameTemplate")
|
aura.cooldowncircle = CreateFrame("Cooldown", nil, aura, "CooldownFrameTemplate")
|
||||||
aura.cooldowncircle:SetFrameLevel(4)
|
aura.cooldowncircle:SetFrameLevel(4)
|
||||||
|
@ -57,6 +57,7 @@ end
|
|||||||
|
|
||||||
function Castbar:CreateFrame(unit)
|
function Castbar:CreateFrame(unit)
|
||||||
local castBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
local castBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
||||||
|
castBar:EnableMouse(false)
|
||||||
castBar.unit = unit
|
castBar.unit = unit
|
||||||
|
|
||||||
castBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.castBarBorderStyle),
|
castBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.castBarBorderStyle),
|
||||||
@ -85,6 +86,7 @@ function Castbar:CreateFrame(unit)
|
|||||||
|
|
||||||
castBar.icon = CreateFrame("Frame", nil, castBar)
|
castBar.icon = CreateFrame("Frame", nil, castBar)
|
||||||
castBar.icon.texture = castBar.icon:CreateTexture(nil, "BACKGROUND")
|
castBar.icon.texture = castBar.icon:CreateTexture(nil, "BACKGROUND")
|
||||||
|
castBar.icon.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
castBar.icon.texture:SetAllPoints(castBar.icon)
|
castBar.icon.texture:SetAllPoints(castBar.icon)
|
||||||
castBar.icon.texture.overlay = castBar.icon:CreateTexture(nil, "BORDER")
|
castBar.icon.texture.overlay = castBar.icon:CreateTexture(nil, "BORDER")
|
||||||
castBar.icon.texture.overlay:SetAllPoints(castBar.icon.texture)
|
castBar.icon.texture.overlay:SetAllPoints(castBar.icon.texture)
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
local select = select
|
||||||
|
|
||||||
local Gladdy = LibStub("Gladdy")
|
local Gladdy = LibStub("Gladdy")
|
||||||
local CreateFrame = CreateFrame
|
local CreateFrame = CreateFrame
|
||||||
|
local GetSpellInfo = GetSpellInfo
|
||||||
local L = Gladdy.L
|
local L = Gladdy.L
|
||||||
local Classicon = Gladdy:NewModule("Classicon", 80, {
|
local Classicon = Gladdy:NewModule("Classicon", 80, {
|
||||||
classIconPos = "LEFT",
|
classIconPos = "LEFT",
|
||||||
@ -7,21 +10,87 @@ local Classicon = Gladdy:NewModule("Classicon", 80, {
|
|||||||
classIconWidthFactor = 0.9,
|
classIconWidthFactor = 0.9,
|
||||||
classIconBorderStyle = "Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp",
|
classIconBorderStyle = "Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp",
|
||||||
classIconBorderColor = { r = 0, g = 0, b = 0, a = 1 },
|
classIconBorderColor = { r = 0, g = 0, b = 0, a = 1 },
|
||||||
|
classIconSpecIcon = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local classIconPath = "Interface\\Addons\\Gladdy\\Images\\Classes\\"
|
||||||
|
local classIcons = {
|
||||||
|
["DRUID"] = classIconPath .. "inv_misc_monsterclaw_04",
|
||||||
|
["HUNTER"] = classIconPath .. "inv_weapon_bow_07",
|
||||||
|
["MAGE"] = classIconPath .. "inv_staff_13",
|
||||||
|
["PALADIN"] = classIconPath .. "inv_hammer_01",
|
||||||
|
["PRIEST"] = classIconPath .. "inv_staff_30",
|
||||||
|
["ROGUE"] = classIconPath .. "inv_throwingknife_04",
|
||||||
|
["SHAMAN"] = classIconPath .. "inv_jewelry_talisman_04",
|
||||||
|
["WARLOCK"] = classIconPath .. "spell_nature_drowsy",
|
||||||
|
["WARRIOR"] = classIconPath .. "inv_sword_27",
|
||||||
|
}
|
||||||
|
|
||||||
|
local specIcons = {
|
||||||
|
--DRUID
|
||||||
|
["DRUID"] = {
|
||||||
|
[L["Balance"]] = select(3, GetSpellInfo(8921)), -- Moonfire
|
||||||
|
[L["Feral"]] = select(3, GetSpellInfo(27545)), -- Cat Form
|
||||||
|
[L["Restoration"]] = select(3, GetSpellInfo(5185)), -- Healing Touch
|
||||||
|
},
|
||||||
|
["HUNTER"] = {
|
||||||
|
[L["Beast Mastery"]] = select(3, GetSpellInfo(1515)), -- Tame Beast
|
||||||
|
[L["Marksmanship"]] = select(3, GetSpellInfo(42243)), -- Volley
|
||||||
|
[L["Survival"]] = select(3, GetSpellInfo(1495)), -- Mongoose Bite
|
||||||
|
},
|
||||||
|
["MAGE"] = {
|
||||||
|
[L["Arcane"]] = select(3, GetSpellInfo(1459)), -- Arcane Intellect
|
||||||
|
[L["Fire"]] = select(3, GetSpellInfo(133)), -- Fireball
|
||||||
|
[L["Frost"]] = select(3, GetSpellInfo(116)), -- Frostbolt
|
||||||
|
},
|
||||||
|
["PALADIN"] = {
|
||||||
|
[L["Holy"]] = select(3, GetSpellInfo(635)), -- Holy Light
|
||||||
|
[L["Retribution"]] = select(3, GetSpellInfo(7294)), -- Retribution Aura
|
||||||
|
[L["Protection"]] = select(3, GetSpellInfo(32828)), -- Protection Aura
|
||||||
|
},
|
||||||
|
["PRIEST"] = {
|
||||||
|
[L["Discipline"]] = select(3, GetSpellInfo(1243)), -- Power Word: Fortitude
|
||||||
|
[L["Shadow"]] = select(3, GetSpellInfo(589)), -- Shadow Word: Pain
|
||||||
|
[L["Holy"]] = select(3, GetSpellInfo(635)), -- Holy Light
|
||||||
|
},
|
||||||
|
["ROGUE"] = {
|
||||||
|
[L["Assassination"]] = select(3, GetSpellInfo(1329)), -- Mutilate (Eviscerate? 2098)
|
||||||
|
[L["Combat"]] = select(3, GetSpellInfo(53)), -- Backstab
|
||||||
|
[L["Subtlety"]] = select(3, GetSpellInfo(1784)), -- Stealth
|
||||||
|
},
|
||||||
|
["SHAMAN"] = {
|
||||||
|
[L["Elemental"]] = select(3, GetSpellInfo(403)), -- Lightning Bolt
|
||||||
|
[L["Enhancement"]] = select(3, GetSpellInfo(324)), -- Lightning Shield
|
||||||
|
[L["Restoration"]] = select(3, GetSpellInfo(331)), -- Healing Wave
|
||||||
|
},
|
||||||
|
["WARLOCK"] = {
|
||||||
|
[L["Affliction"]] = select(3, GetSpellInfo(6789)), -- Affliction
|
||||||
|
[L["Demonology"]] = select(3, GetSpellInfo(5500)), -- Sense Demons
|
||||||
|
[L["Destruction"]] = select(3, GetSpellInfo(5740)), -- Rain of Fire
|
||||||
|
},
|
||||||
|
["WARRIOR"] = {
|
||||||
|
[L["Arms"]] = select(3, GetSpellInfo(12294)), -- Mortal Strike
|
||||||
|
[L["Fury"]] = select(3, GetSpellInfo(12325)), -- Inner Rage
|
||||||
|
[L["Protection"]] = select(3, GetSpellInfo(71)), -- Defensive Stance
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
function Classicon:Initialize()
|
function Classicon:Initialize()
|
||||||
self.frames = {}
|
self.frames = {}
|
||||||
|
|
||||||
self:RegisterMessage("ENEMY_SPOTTED")
|
self:RegisterMessage("ENEMY_SPOTTED")
|
||||||
self:RegisterMessage("UNIT_DEATH")
|
self:RegisterMessage("UNIT_DEATH")
|
||||||
|
self:RegisterMessage("UNIT_SPEC")
|
||||||
end
|
end
|
||||||
|
|
||||||
function Classicon:CreateFrame(unit)
|
function Classicon:CreateFrame(unit)
|
||||||
local classIcon = CreateFrame("Frame", nil, Gladdy.buttons[unit])
|
local classIcon = CreateFrame("Frame", nil, Gladdy.buttons[unit])
|
||||||
|
classIcon:EnableMouse(false)
|
||||||
classIcon:SetFrameStrata("MEDIUM")
|
classIcon:SetFrameStrata("MEDIUM")
|
||||||
classIcon:SetFrameLevel(1)
|
classIcon:SetFrameLevel(1)
|
||||||
classIcon.texture = classIcon:CreateTexture(nil, "BACKGROUND")
|
classIcon.texture = classIcon:CreateTexture(nil, "BACKGROUND")
|
||||||
classIcon.texture:SetAllPoints(classIcon)
|
classIcon.texture:SetAllPoints(classIcon)
|
||||||
|
classIcon.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
|
|
||||||
classIcon.texture.overlay = classIcon:CreateTexture(nil, "BORDER")
|
classIcon.texture.overlay = classIcon:CreateTexture(nil, "BORDER")
|
||||||
classIcon.texture.overlay:SetAllPoints(classIcon)
|
classIcon.texture.overlay:SetAllPoints(classIcon)
|
||||||
@ -65,6 +134,25 @@ function Classicon:UpdateFrame(unit)
|
|||||||
classIcon.texture.overlay:SetVertexColor(Gladdy.db.classIconBorderColor.r, Gladdy.db.classIconBorderColor.g, Gladdy.db.classIconBorderColor.b, Gladdy.db.classIconBorderColor.a)
|
classIcon.texture.overlay:SetVertexColor(Gladdy.db.classIconBorderColor.r, Gladdy.db.classIconBorderColor.g, Gladdy.db.classIconBorderColor.b, Gladdy.db.classIconBorderColor.a)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Classicon:ENEMY_SPOTTED(unit)
|
||||||
|
local classIcon = self.frames[unit]
|
||||||
|
if (not classIcon) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
classIcon.texture:SetTexture(classIcons[Gladdy.buttons[unit].class])
|
||||||
|
--classIcon.texture:SetTexCoord(unpack(CLASS_BUTTONS[Gladdy.buttons[unit].class]))
|
||||||
|
classIcon.texture:SetAllPoints(classIcon)
|
||||||
|
end
|
||||||
|
|
||||||
|
function Classicon:UNIT_SPEC(unit, spec)
|
||||||
|
local classIcon = self.frames[unit]
|
||||||
|
if (not Gladdy.db.classIconSpecIcon or not classIcon) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
classIcon.texture:SetTexture(specIcons[Gladdy.buttons[unit].class][spec])
|
||||||
|
end
|
||||||
|
|
||||||
function Classicon:Test(unit)
|
function Classicon:Test(unit)
|
||||||
self:ENEMY_SPOTTED(unit)
|
self:ENEMY_SPOTTED(unit)
|
||||||
end
|
end
|
||||||
@ -85,11 +173,30 @@ function Classicon:GetOptions()
|
|||||||
name = L["Class Icon"],
|
name = L["Class Icon"],
|
||||||
order = 2,
|
order = 2,
|
||||||
},
|
},
|
||||||
|
classIconSpecIcon = {
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Show Spec Icon"],
|
||||||
|
desc = L["Shows Spec Icon once spec is detected"],
|
||||||
|
order = 3,
|
||||||
|
get = function(info) return Gladdy.db.classIconSpecIcon end,
|
||||||
|
set = function(info, value)
|
||||||
|
Gladdy.db.classIconSpecIcon = value
|
||||||
|
if Gladdy.curBracket and Gladdy.curBracket > 0 then
|
||||||
|
for i=1,Gladdy.curBracket do
|
||||||
|
local unit = "arena" .. i
|
||||||
|
if (Gladdy.buttons[unit] and Gladdy.buttons[unit].spec) then
|
||||||
|
self:ENEMY_SPOTTED(unit)
|
||||||
|
self:UNIT_SPEC(unit, Gladdy.buttons[unit].spec)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
},
|
||||||
group = {
|
group = {
|
||||||
type = "group",
|
type = "group",
|
||||||
childGroups = "tree",
|
childGroups = "tree",
|
||||||
name = "Frame",
|
name = "Frame",
|
||||||
order = 3,
|
order = 4,
|
||||||
args = {
|
args = {
|
||||||
size = {
|
size = {
|
||||||
type = "group",
|
type = "group",
|
||||||
@ -165,38 +272,3 @@ function Classicon:GetOptions()
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
local function getClassIcon(class)
|
|
||||||
-- see https://wow.gamepedia.com/Class_icon
|
|
||||||
local classIcon = "Interface\\Addons\\Gladdy\\Images\\Classes\\"
|
|
||||||
if class == "DRUID" then
|
|
||||||
return classIcon .. "inv_misc_monsterclaw_04"
|
|
||||||
elseif class == "HUNTER" then
|
|
||||||
return classIcon .. "inv_weapon_bow_07"
|
|
||||||
elseif class == "MAGE" then
|
|
||||||
return classIcon .. "inv_staff_13"
|
|
||||||
elseif class == "PALADIN" then
|
|
||||||
return classIcon .. "inv_hammer_01"
|
|
||||||
elseif class == "PRIEST" then
|
|
||||||
return classIcon .. "inv_staff_30"
|
|
||||||
elseif class == "ROGUE" then
|
|
||||||
return classIcon .. "inv_throwingknife_04"
|
|
||||||
elseif class == "SHAMAN" then
|
|
||||||
return classIcon .. "inv_jewelry_talisman_04"
|
|
||||||
elseif class == "WARLOCK" then
|
|
||||||
return classIcon .. "spell_nature_drowsy"
|
|
||||||
elseif class == "WARRIOR" then
|
|
||||||
return classIcon .. "inv_sword_27"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
function Classicon:ENEMY_SPOTTED(unit)
|
|
||||||
local classIcon = self.frames[unit]
|
|
||||||
if (not classIcon) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
classIcon.texture:SetTexture(getClassIcon(Gladdy.buttons[unit].class))
|
|
||||||
--classIcon.texture:SetTexCoord(unpack(CLASS_BUTTONS[Gladdy.buttons[unit].class]))
|
|
||||||
classIcon.texture:SetAllPoints(classIcon)
|
|
||||||
end
|
|
242
Modules/CombatIndicator.lua
Normal file
242
Modules/CombatIndicator.lua
Normal file
@ -0,0 +1,242 @@
|
|||||||
|
local select = select
|
||||||
|
local UnitExists, UnitAffectingCombat, GetSpellInfo = UnitExists, UnitAffectingCombat, GetSpellInfo
|
||||||
|
local CreateFrame = CreateFrame
|
||||||
|
local ANCHORS = { ["LEFT"] = "RIGHT", ["RIGHT"] = "LEFT", ["BOTTOM"] = "TOP", ["TOP"] = "BOTTOM"}
|
||||||
|
|
||||||
|
local Gladdy = LibStub("Gladdy")
|
||||||
|
local L = Gladdy.L
|
||||||
|
|
||||||
|
local CombatIndicator = Gladdy:NewModule("CombatIndicator", nil, {
|
||||||
|
ciEnabled = true,
|
||||||
|
ciSize = 20,
|
||||||
|
ciAlpha = 1,
|
||||||
|
ciWidthFactor = 1,
|
||||||
|
ciAnchor = "healthBar",
|
||||||
|
ciPos = "TOP",
|
||||||
|
ciXOffset = 0,
|
||||||
|
ciYOffset = -31,
|
||||||
|
ciBorderStyle = "Interface\\AddOns\\Gladdy\\Images\\Border_rounded_blp",
|
||||||
|
ciBorderColor = { r = 0, g = 0, b = 0, a = 1 },
|
||||||
|
})
|
||||||
|
|
||||||
|
function CombatIndicator:Initialize()
|
||||||
|
self.frames = {}
|
||||||
|
self:RegisterMessage("JOINED_ARENA")
|
||||||
|
self.updateInterval = 0.05
|
||||||
|
self.combatIndicatorIcon = select(3, GetSpellInfo(674))
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:JOINED_ARENA()
|
||||||
|
self:SetScript("OnUpdate", CombatIndicator.OnEvent)
|
||||||
|
self.lastTimeUpdated = 0
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:CreateFrame(unit)
|
||||||
|
local button = Gladdy.buttons[unit]
|
||||||
|
if not button then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local ciFrame = CreateFrame("Frame", "GladdyCombatindicator" .. unit, button)
|
||||||
|
ciFrame:EnableMouse(false)
|
||||||
|
ciFrame:SetFrameStrata("HIGH")
|
||||||
|
ciFrame:SetHeight(Gladdy.db.ciSize)
|
||||||
|
ciFrame:SetWidth(Gladdy.db.ciSize * Gladdy.db.ciWidthFactor)
|
||||||
|
|
||||||
|
ciFrame.texture = ciFrame:CreateTexture(nil, "OVERLAY")
|
||||||
|
ciFrame.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
|
ciFrame.texture:SetTexture(self.combatIndicatorIcon)
|
||||||
|
ciFrame.texture:SetAllPoints(ciFrame)
|
||||||
|
|
||||||
|
ciFrame.border = ciFrame:CreateTexture(nil, "OVERLAY")
|
||||||
|
ciFrame.border:SetAllPoints(ciFrame)
|
||||||
|
ciFrame.border:SetTexture(Gladdy.db.ciBorderStyle)
|
||||||
|
ciFrame.border:SetVertexColor(Gladdy.db.ciBorderColor.r, Gladdy.db.ciBorderColor.g, Gladdy.db.ciBorderColor.b, Gladdy.db.ciBorderColor.a)
|
||||||
|
|
||||||
|
self.frames[unit] = ciFrame
|
||||||
|
button.ciFrame = ciFrame
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:UpdateFrame(unit)
|
||||||
|
local button = Gladdy.buttons[unit]
|
||||||
|
local ciFrame = self.frames[unit]
|
||||||
|
if (not button or not ciFrame) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
ciFrame:SetHeight(Gladdy.db.ciSize)
|
||||||
|
ciFrame:SetWidth(Gladdy.db.ciSize * Gladdy.db.ciWidthFactor)
|
||||||
|
ciFrame.border:SetVertexColor(Gladdy.db.ciBorderColor.r, Gladdy.db.ciBorderColor.g, Gladdy.db.ciBorderColor.b, Gladdy.db.ciBorderColor.a)
|
||||||
|
|
||||||
|
ciFrame:ClearAllPoints()
|
||||||
|
ciFrame:SetPoint(ANCHORS[Gladdy.db.ciPos], Gladdy.buttons[unit][Gladdy.db.ciAnchor], Gladdy.db.ciPos, Gladdy.db.ciXOffset, Gladdy.db.ciYOffset)
|
||||||
|
|
||||||
|
ciFrame:SetAlpha(Gladdy.db.ciAlpha)
|
||||||
|
|
||||||
|
if (Gladdy.db.ciEnabled == false) then
|
||||||
|
ciFrame:Hide()
|
||||||
|
else
|
||||||
|
ciFrame:Show()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:Test()
|
||||||
|
self.test = true
|
||||||
|
self:JOINED_ARENA()
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:Reset()
|
||||||
|
self:SetScript("OnUpdate", nil)
|
||||||
|
self.test = false
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator.OnEvent(self, elapsed)
|
||||||
|
self.lastTimeUpdated = self.lastTimeUpdated + elapsed
|
||||||
|
|
||||||
|
if (self.lastTimeUpdated > self.updateInterval) then
|
||||||
|
for i=1,Gladdy.curBracket do
|
||||||
|
local unit = "arena" .. i
|
||||||
|
if CombatIndicator.test or (UnitExists(unit) and UnitAffectingCombat(unit)) then
|
||||||
|
CombatIndicator.frames[unit]:Show()
|
||||||
|
else
|
||||||
|
CombatIndicator.frames[unit]:Hide()
|
||||||
|
end
|
||||||
|
end
|
||||||
|
self.lastTimeUpdated = 0
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function CombatIndicator:GetOptions()
|
||||||
|
return {
|
||||||
|
headerTrinket = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Racial"],
|
||||||
|
order = 2,
|
||||||
|
},
|
||||||
|
ciEnabled = Gladdy:option({
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Enabled"],
|
||||||
|
desc = L["Enable ci icon"],
|
||||||
|
order = 3,
|
||||||
|
}),
|
||||||
|
group = {
|
||||||
|
type = "group",
|
||||||
|
childGroups = "tree",
|
||||||
|
name = "Frame",
|
||||||
|
order = 4,
|
||||||
|
args = {
|
||||||
|
general = {
|
||||||
|
type = "group",
|
||||||
|
name = L["Frame"],
|
||||||
|
order = 1,
|
||||||
|
args = {
|
||||||
|
header = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Frame"],
|
||||||
|
order = 1,
|
||||||
|
},
|
||||||
|
ciSize = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Icon size"],
|
||||||
|
min = 5,
|
||||||
|
max = 100,
|
||||||
|
step = 1,
|
||||||
|
order = 2,
|
||||||
|
}),
|
||||||
|
ciWidthFactor = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Icon width factor"],
|
||||||
|
min = 0.5,
|
||||||
|
max = 2,
|
||||||
|
step = 0.05,
|
||||||
|
order = 3,
|
||||||
|
}),
|
||||||
|
ciAlpha = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Alpha"],
|
||||||
|
min = 0,
|
||||||
|
max = 1,
|
||||||
|
step = 0.05,
|
||||||
|
order = 4,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
position = {
|
||||||
|
type = "group",
|
||||||
|
name = L["Position"],
|
||||||
|
order = 4,
|
||||||
|
args = {
|
||||||
|
header = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Position"],
|
||||||
|
order = 4,
|
||||||
|
},
|
||||||
|
ciAnchor = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Anchor"],
|
||||||
|
desc = L["This changes the anchor of the ci icon"],
|
||||||
|
order = 20,
|
||||||
|
values = {
|
||||||
|
["trinket"] = L["Trinket"],
|
||||||
|
["classIcon"] = L["Class Icon"],
|
||||||
|
["healthBar"] = L["Health Bar"],
|
||||||
|
["powerBar"] = L["Power Bar"],
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
ciPos = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Position"],
|
||||||
|
desc = L["This changes position relative to its anchor of the ci icon"],
|
||||||
|
order = 21,
|
||||||
|
values = {
|
||||||
|
["LEFT"] = L["Left"],
|
||||||
|
["RIGHT"] = L["Right"],
|
||||||
|
["TOP"] = L["Top"],
|
||||||
|
["BOTTOM"] = L["Bottom"],
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
ciXOffset = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Horizontal offset"],
|
||||||
|
order = 23,
|
||||||
|
min = -400,
|
||||||
|
max = 400,
|
||||||
|
step = 0.1,
|
||||||
|
}),
|
||||||
|
ciYOffset = Gladdy:option({
|
||||||
|
type = "range",
|
||||||
|
name = L["Vertical offset"],
|
||||||
|
order = 24,
|
||||||
|
min = -400,
|
||||||
|
max = 400,
|
||||||
|
step = 0.1,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
border = {
|
||||||
|
type = "group",
|
||||||
|
name = L["Border"],
|
||||||
|
order = 4,
|
||||||
|
args = {
|
||||||
|
header = {
|
||||||
|
type = "header",
|
||||||
|
name = L["Border"],
|
||||||
|
order = 4,
|
||||||
|
},
|
||||||
|
ciBorderStyle = Gladdy:option({
|
||||||
|
type = "select",
|
||||||
|
name = L["Border style"],
|
||||||
|
order = 31,
|
||||||
|
values = Gladdy:GetIconStyles()
|
||||||
|
}),
|
||||||
|
ciBorderColor = Gladdy:colorOption({
|
||||||
|
type = "color",
|
||||||
|
name = L["Border color"],
|
||||||
|
desc = L["Color of the border"],
|
||||||
|
order = 32,
|
||||||
|
hasAlpha = true,
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
@ -93,11 +93,13 @@ function Cooldowns:CreateFrame(unit)
|
|||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
-- Cooldown frame
|
-- Cooldown frame
|
||||||
local spellCooldownFrame = CreateFrame("Frame", nil, button)
|
local spellCooldownFrame = CreateFrame("Frame", nil, button)
|
||||||
|
spellCooldownFrame:EnableMouse(false)
|
||||||
for x = 1, 14 do
|
for x = 1, 14 do
|
||||||
local icon = CreateFrame("Frame", nil, spellCooldownFrame)
|
local icon = CreateFrame("Frame", nil, spellCooldownFrame)
|
||||||
icon:EnableMouse(false)
|
icon:EnableMouse(false)
|
||||||
icon:SetFrameLevel(3)
|
icon:SetFrameLevel(3)
|
||||||
icon.texture = icon:CreateTexture(nil, "BACKGROUND")
|
icon.texture = icon:CreateTexture(nil, "BACKGROUND")
|
||||||
|
icon.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
icon.texture:SetAllPoints(icon)
|
icon.texture:SetAllPoints(icon)
|
||||||
|
|
||||||
icon.cooldown = CreateFrame("Cooldown", nil, icon, "CooldownFrameTemplate")
|
icon.cooldown = CreateFrame("Cooldown", nil, icon, "CooldownFrameTemplate")
|
||||||
|
@ -67,6 +67,7 @@ end
|
|||||||
|
|
||||||
function Diminishings:CreateFrame(unit)
|
function Diminishings:CreateFrame(unit)
|
||||||
local drFrame = CreateFrame("Frame", nil, Gladdy.buttons[unit])
|
local drFrame = CreateFrame("Frame", nil, Gladdy.buttons[unit])
|
||||||
|
drFrame:EnableMouse(false)
|
||||||
|
|
||||||
for i = 1, 16 do
|
for i = 1, 16 do
|
||||||
local icon = CreateFrame("Frame", "GladdyDr" .. unit .. "Icon" .. i, drFrame)
|
local icon = CreateFrame("Frame", "GladdyDr" .. unit .. "Icon" .. i, drFrame)
|
||||||
@ -74,6 +75,7 @@ function Diminishings:CreateFrame(unit)
|
|||||||
icon:EnableMouse(false)
|
icon:EnableMouse(false)
|
||||||
icon:SetFrameLevel(3)
|
icon:SetFrameLevel(3)
|
||||||
icon.texture = icon:CreateTexture(nil, "BACKGROUND")
|
icon.texture = icon:CreateTexture(nil, "BACKGROUND")
|
||||||
|
icon.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
icon.texture:SetAllPoints(icon)
|
icon.texture:SetAllPoints(icon)
|
||||||
icon:SetScript("OnUpdate", function(self, elapsed)
|
icon:SetScript("OnUpdate", function(self, elapsed)
|
||||||
if (self.active) then
|
if (self.active) then
|
||||||
@ -229,9 +231,9 @@ function Diminishings:UpdateFrame(unit)
|
|||||||
icon.border:SetTexture(Gladdy.db.drBorderStyle)
|
icon.border:SetTexture(Gladdy.db.drBorderStyle)
|
||||||
end
|
end
|
||||||
|
|
||||||
icon.texture:SetTexCoord(.1, .9, .1, .9)
|
--icon.texture:SetTexCoord(.1, .9, .1, .9)
|
||||||
icon.texture:SetPoint("TOPLEFT", icon, "TOPLEFT", 2, -2)
|
--icon.texture:SetPoint("TOPLEFT", icon, "TOPLEFT", 2, -2)
|
||||||
icon.texture:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", -2, 2)
|
--icon.texture:SetPoint("BOTTOMRIGHT", icon, "BOTTOMRIGHT", -2, 2)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@ local Healthbar = Gladdy:NewModule("Healthbar", 100, {
|
|||||||
healthBarFontColor = { r = 1, g = 1, b = 1, a = 1 },
|
healthBarFontColor = { r = 1, g = 1, b = 1, a = 1 },
|
||||||
healthBarNameFontSize = 12,
|
healthBarNameFontSize = 12,
|
||||||
healthBarHealthFontSize = 12,
|
healthBarHealthFontSize = 12,
|
||||||
|
healthNameToArenaId = false,
|
||||||
healthName = true,
|
healthName = true,
|
||||||
healthActual = false,
|
healthActual = false,
|
||||||
healthMax = true,
|
healthMax = true,
|
||||||
@ -27,6 +28,7 @@ local Healthbar = Gladdy:NewModule("Healthbar", 100, {
|
|||||||
|
|
||||||
function Healthbar:Initialize()
|
function Healthbar:Initialize()
|
||||||
self.frames = {}
|
self.frames = {}
|
||||||
|
self:RegisterMessage("JOINED_ARENA")
|
||||||
self:RegisterMessage("ENEMY_SPOTTED")
|
self:RegisterMessage("ENEMY_SPOTTED")
|
||||||
self:RegisterMessage("UNIT_DESTROYED")
|
self:RegisterMessage("UNIT_DESTROYED")
|
||||||
self:RegisterMessage("UNIT_DEATH")
|
self:RegisterMessage("UNIT_DEATH")
|
||||||
@ -36,6 +38,7 @@ function Healthbar:CreateFrame(unit)
|
|||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
|
|
||||||
local healthBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
local healthBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
||||||
|
healthBar:EnableMouse(false)
|
||||||
healthBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.healthBarBorderStyle),
|
healthBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.healthBarBorderStyle),
|
||||||
edgeSize = Gladdy.db.healthBarBorderSize })
|
edgeSize = Gladdy.db.healthBarBorderSize })
|
||||||
healthBar:SetBackdropBorderColor(Gladdy.db.healthBarBorderColor.r, Gladdy.db.healthBarBorderColor.g, Gladdy.db.healthBarBorderColor.b, Gladdy.db.healthBarBorderColor.a)
|
healthBar:SetBackdropBorderColor(Gladdy.db.healthBarBorderColor.r, Gladdy.db.healthBarBorderColor.g, Gladdy.db.healthBarBorderColor.b, Gladdy.db.healthBarBorderColor.a)
|
||||||
@ -210,10 +213,20 @@ function Healthbar:Test(unit)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self:JOINED_ARENA()
|
||||||
self:ENEMY_SPOTTED(unit)
|
self:ENEMY_SPOTTED(unit)
|
||||||
self:UNIT_HEALTH(unit, button.health, button.healthMax)
|
self:UNIT_HEALTH(unit, button.health, button.healthMax)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Healthbar:JOINED_ARENA()
|
||||||
|
if Gladdy.db.healthNameToArenaId and Gladdy.db.healthName then
|
||||||
|
for i=1,Gladdy.curBracket do
|
||||||
|
local healthBar = self.frames["arena" .. i]
|
||||||
|
healthBar.nameText:SetText("Arena" .. i)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
function Healthbar:ENEMY_SPOTTED(unit)
|
function Healthbar:ENEMY_SPOTTED(unit)
|
||||||
local healthBar = self.frames[unit]
|
local healthBar = self.frames[unit]
|
||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
@ -228,7 +241,10 @@ function Healthbar:ENEMY_SPOTTED(unit)
|
|||||||
healthBar.hp:SetValue(health)
|
healthBar.hp:SetValue(health)
|
||||||
Healthbar:SetHealthText(healthBar, health, healthMax)
|
Healthbar:SetHealthText(healthBar, health, healthMax)
|
||||||
end
|
end
|
||||||
healthBar.nameText:SetText(button.name)
|
if Gladdy.db.healthName and not Gladdy.db.healthNameToArenaId then
|
||||||
|
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)
|
healthBar.hp:SetStatusBarColor(RAID_CLASS_COLORS[button.class].r, RAID_CLASS_COLORS[button.class].g, RAID_CLASS_COLORS[button.class].b, 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -459,27 +475,34 @@ function Healthbar:GetOptions()
|
|||||||
},
|
},
|
||||||
healthName = option({
|
healthName = option({
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Show the name"],
|
name = L["Show name text"],
|
||||||
desc = L["Show the units name"],
|
desc = L["Show the units name"],
|
||||||
order = 30,
|
order = 2,
|
||||||
|
}),
|
||||||
|
healthNameToArenaId = option({
|
||||||
|
type = "toggle",
|
||||||
|
name = L["Show ArenaX"],
|
||||||
|
desc = L["Show Arena1-5 as name instead"],
|
||||||
|
order = 3,
|
||||||
|
disabled = function() return not Gladdy.db.healthName end
|
||||||
}),
|
}),
|
||||||
healthActual = option({
|
healthActual = option({
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Show the actual health"],
|
name = L["Show the actual health"],
|
||||||
desc = L["Show the actual health on the health bar"],
|
desc = L["Show the actual health on the health bar"],
|
||||||
order = 31,
|
order = 4,
|
||||||
}),
|
}),
|
||||||
healthMax = option({
|
healthMax = option({
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Show max health"],
|
name = L["Show max health"],
|
||||||
desc = L["Show max health on the health bar"],
|
desc = L["Show max health on the health bar"],
|
||||||
order = 32,
|
order = 5,
|
||||||
}),
|
}),
|
||||||
healthPercentage = option({
|
healthPercentage = option({
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
name = L["Show health percentage"],
|
name = L["Show health percentage"],
|
||||||
desc = L["Show health percentage on the health bar"],
|
desc = L["Show health percentage on the health bar"],
|
||||||
order = 33,
|
order = 6,
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -54,17 +54,17 @@ function Highlight:CreateFrame(unit)
|
|||||||
|
|
||||||
local targetBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
local targetBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
||||||
targetBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
targetBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
||||||
targetBorder:SetFrameStrata("HIGH")
|
--targetBorder:SetFrameStrata("MEDIUM")
|
||||||
targetBorder:Hide()
|
targetBorder:Hide()
|
||||||
|
|
||||||
local focusBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
local focusBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
||||||
focusBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
focusBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
||||||
focusBorder:SetFrameStrata("LOW")
|
--focusBorder:SetFrameStrata("MEDIUM")
|
||||||
focusBorder:Hide()
|
focusBorder:Hide()
|
||||||
|
|
||||||
local leaderBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
local leaderBorder = CreateFrame("Frame", nil, button, BackdropTemplateMixin and "BackdropTemplate")
|
||||||
leaderBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
leaderBorder:SetBackdrop({ edgeFile = "Interface\\ChatFrame\\ChatFrameBackground", edgeSize = Gladdy.db.highlightBorderSize })
|
||||||
leaderBorder:SetFrameStrata("MEDIUM")
|
--leaderBorder:SetFrameStrata("MEDIUM")
|
||||||
leaderBorder:Hide()
|
leaderBorder:Hide()
|
||||||
|
|
||||||
local highlight = healthBar:CreateTexture(nil, "OVERLAY")
|
local highlight = healthBar:CreateTexture(nil, "OVERLAY")
|
||||||
|
@ -36,6 +36,7 @@ function Powerbar:CreateFrame(unit)
|
|||||||
local button = Gladdy.buttons[unit]
|
local button = Gladdy.buttons[unit]
|
||||||
|
|
||||||
local powerBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
local powerBar = CreateFrame("Frame", nil, Gladdy.buttons[unit], BackdropTemplateMixin and "BackdropTemplate")
|
||||||
|
powerBar:EnableMouse(false)
|
||||||
powerBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.powerBarBorderStyle),
|
powerBar:SetBackdrop({ edgeFile = Gladdy.LSM:Fetch("border", Gladdy.db.powerBarBorderStyle),
|
||||||
edgeSize = Gladdy.db.powerBarBorderSize })
|
edgeSize = Gladdy.db.powerBarBorderSize })
|
||||||
powerBar:SetBackdropBorderColor(Gladdy.db.powerBarBorderColor.r, Gladdy.db.powerBarBorderColor.g, Gladdy.db.powerBarBorderColor.b, Gladdy.db.powerBarBorderColor.a)
|
powerBar:SetBackdropBorderColor(Gladdy.db.powerBarBorderColor.r, Gladdy.db.powerBarBorderColor.g, Gladdy.db.powerBarBorderColor.b, Gladdy.db.powerBarBorderColor.a)
|
||||||
@ -206,8 +207,13 @@ function Powerbar:UNIT_SPEC(unit, spec)
|
|||||||
if (not powerBar or not button) then
|
if (not powerBar or not button) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
local raceText = Gladdy.db.powerShowRace and button.raceLoc or ""
|
||||||
|
|
||||||
powerBar.raceText:SetText(spec .. " " .. button.raceLoc)
|
if (button.spec and Gladdy.db.powerShowSpec) then
|
||||||
|
raceText = spec .. " " .. raceText
|
||||||
|
end
|
||||||
|
|
||||||
|
powerBar.raceText:SetText(raceText)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Powerbar:UNIT_POWER(unit, power, powerMax, powerType)
|
function Powerbar:UNIT_POWER(unit, power, powerMax, powerType)
|
||||||
|
@ -77,8 +77,10 @@ end
|
|||||||
|
|
||||||
function Racial:CreateFrame(unit)
|
function Racial:CreateFrame(unit)
|
||||||
local racial = CreateFrame("Button", "GladdyTrinketButton" .. unit, Gladdy.buttons[unit])
|
local racial = CreateFrame("Button", "GladdyTrinketButton" .. unit, Gladdy.buttons[unit])
|
||||||
|
racial:EnableMouse(false)
|
||||||
racial.texture = racial:CreateTexture(nil, "BACKGROUND")
|
racial.texture = racial:CreateTexture(nil, "BACKGROUND")
|
||||||
racial.texture:SetAllPoints(racial)
|
racial.texture:SetAllPoints(racial)
|
||||||
|
racial.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
--racial.texture:SetTexture("Interface\\Icons\\INV_Jewelry_TrinketPVP_02")
|
--racial.texture:SetTexture("Interface\\Icons\\INV_Jewelry_TrinketPVP_02")
|
||||||
|
|
||||||
racial.cooldown = CreateFrame("Cooldown", nil, racial, "CooldownFrameTemplate")
|
racial.cooldown = CreateFrame("Cooldown", nil, racial, "CooldownFrameTemplate")
|
||||||
|
@ -26,7 +26,7 @@ local totemData = {
|
|||||||
[string_lower("Disease Cleansing Totem")] = {id = 8170,texture = select(3, GetSpellInfo(8170)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Disease Cleansing Totem
|
[string_lower("Disease Cleansing Totem")] = {id = 8170,texture = select(3, GetSpellInfo(8170)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Disease Cleansing Totem
|
||||||
[string_lower("Healing Stream Totem")] = {id = 5394,texture = select(3, GetSpellInfo(5394)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Healing Stream Totem
|
[string_lower("Healing Stream Totem")] = {id = 5394,texture = select(3, GetSpellInfo(5394)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Healing Stream Totem
|
||||||
[string_lower("Mana Tide Totem")] = {id = 16190,texture = select(3, GetSpellInfo(16190)), color = {r = 0.078, g = 0.9, b = 0.16, a = 1}, enabled = true, priority = 3}, -- Mana Tide Totem
|
[string_lower("Mana Tide Totem")] = {id = 16190,texture = select(3, GetSpellInfo(16190)), color = {r = 0.078, g = 0.9, b = 0.16, a = 1}, enabled = true, priority = 3}, -- Mana Tide Totem
|
||||||
[string_lower("Mana Spring Totem")] = {id = 5675,texture = "Interface\\AddOns\\Gladdy\\Images\\Totems\\Spell_Nature_ManaRegenTotem_edit", color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 1}, -- Mana Spring Totem
|
[string_lower("Mana Spring Totem")] = {id = 5675,texture = select(3, GetSpellInfo(5675)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 1}, -- Mana Spring Totem
|
||||||
-- Earth
|
-- Earth
|
||||||
[string_lower("Earthbind Totem")] = {id = 2484,texture = select(3, GetSpellInfo(2484)), color = {r = 0.5, g = 0.5, b = 0.5, a = 1}, enabled = true, priority = 1}, -- Earthbind Totem
|
[string_lower("Earthbind Totem")] = {id = 2484,texture = select(3, GetSpellInfo(2484)), color = {r = 0.5, g = 0.5, b = 0.5, a = 1}, enabled = true, priority = 1}, -- Earthbind Totem
|
||||||
[string_lower("Stoneclaw Totem")] = {id = 5730,texture = select(3, GetSpellInfo(5730)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Stoneclaw Totem
|
[string_lower("Stoneclaw Totem")] = {id = 5730,texture = select(3, GetSpellInfo(5730)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Stoneclaw Totem
|
||||||
@ -36,13 +36,13 @@ local totemData = {
|
|||||||
[string_lower("Tremor Totem")] = {id = 8143,texture = select(3, GetSpellInfo(8143)), color = {r = 1, g = 0.9, b = 0.1, a = 1}, enabled = true, priority = 3}, -- Tremor Totem
|
[string_lower("Tremor Totem")] = {id = 8143,texture = select(3, GetSpellInfo(8143)), color = {r = 1, g = 0.9, b = 0.1, a = 1}, enabled = true, priority = 3}, -- Tremor Totem
|
||||||
-- Air
|
-- Air
|
||||||
[string_lower("Grounding Totem")] = {id = 8177,texture = select(3, GetSpellInfo(8177)), color = {r = 0, g = 0.53, b = 0.92, a = 1}, enabled = true, priority = 3}, -- Grounding Totem
|
[string_lower("Grounding Totem")] = {id = 8177,texture = select(3, GetSpellInfo(8177)), color = {r = 0, g = 0.53, b = 0.92, a = 1}, enabled = true, priority = 3}, -- Grounding Totem
|
||||||
[string_lower("Grace of Air Totem")] = {id = 8835,texture = "Interface\\AddOns\\Gladdy\\Images\\Totems\\Spell_Nature_InvisibilityTotem_edit", color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Grace of Air Totem
|
[string_lower("Grace of Air Totem")] = {id = 8835,texture = select(3, GetSpellInfo(8835)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Grace of Air Totem
|
||||||
[string_lower("Nature Resistance Totem")] = {id = 10595,texture = select(3, GetSpellInfo(10595)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Nature Resistance Totem
|
[string_lower("Nature Resistance Totem")] = {id = 10595,texture = select(3, GetSpellInfo(10595)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Nature Resistance Totem
|
||||||
[string_lower("Windfury Totem")] = {id = 8512,texture = "Interface\\AddOns\\Gladdy\\Images\\Totems\\Spell_Nature_Windfury_edit", color = {r = 0.96, g = 0, b = 0.07, a = 1}, enabled = true, priority = 2}, -- Windfury Totem
|
[string_lower("Windfury Totem")] = {id = 8512,texture = select(3, GetSpellInfo(8512)), color = {r = 0.96, g = 0, b = 0.07, a = 1}, enabled = true, priority = 2}, -- Windfury Totem
|
||||||
[string_lower("Sentry Totem")] = {id = 6495, texture = "Interface\\AddOns\\Gladdy\\Images\\Totems\\Spell_Nature_RemoveCurse_edit", color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Sentry Totem
|
[string_lower("Sentry Totem")] = {id = 6495, texture = select(3, GetSpellInfo(6495)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Sentry Totem
|
||||||
[string_lower("Windwall Totem")] = {id = 15107,texture = select(3, GetSpellInfo(15107)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Windwall Totem
|
[string_lower("Windwall Totem")] = {id = 15107,texture = select(3, GetSpellInfo(15107)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Windwall Totem
|
||||||
[string_lower("Wrath of Air Totem")] = {id = 3738,texture = "Interface\\AddOns\\Gladdy\\Images\\Totems\\Spell_Nature_SlowingTotem_edit", color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Wrath of Air Totem
|
[string_lower("Wrath of Air Totem")] = {id = 3738,texture = select(3, GetSpellInfo(3738)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Wrath of Air Totem
|
||||||
[string_lower("Tranquil Air Totem")] = {id = 25908,texture = "Interface\\Icons\\INV_Staff_07", color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Tranquil Air Totem
|
[string_lower("Tranquil Air Totem")] = {id = 25908,texture = select(3, GetSpellInfo(25908)), color = {r = 0, g = 0, b = 0, a = 1}, enabled = true, priority = 0}, -- Tranquil Air Totem
|
||||||
}
|
}
|
||||||
local localizedTotemData = {
|
local localizedTotemData = {
|
||||||
["default"] = {
|
["default"] = {
|
||||||
@ -77,38 +77,6 @@ local localizedTotemData = {
|
|||||||
[string_lower(select(1, GetSpellInfo(3738)))] = totemData[string_lower("Wrath of Air Totem")], -- Wrath of Air Totem
|
[string_lower(select(1, GetSpellInfo(3738)))] = totemData[string_lower("Wrath of Air Totem")], -- Wrath of Air Totem
|
||||||
[string_lower(select(1, GetSpellInfo(25908)))] = totemData[string_lower("Tranquil Air Totem")], -- Tranquil Air Totem
|
[string_lower(select(1, GetSpellInfo(25908)))] = totemData[string_lower("Tranquil Air Totem")], -- Tranquil Air Totem
|
||||||
},
|
},
|
||||||
["frFR"] = {
|
|
||||||
[string_lower("Totem incendiaire")] = totemData[string_lower("Searing Totem")],
|
|
||||||
[string_lower("Totem Langue de feu")] = totemData[string_lower("Flametongue Totem")],
|
|
||||||
[string_lower("Totem de lien terrestre")] = totemData[string_lower("Earthbind Totem")],
|
|
||||||
[string_lower("Totem de Griffes de pierre")] = totemData[string_lower("Stoneclaw Totem")],
|
|
||||||
[string_lower("Totem Nova de feu")] = totemData[string_lower("Fire Nova Totem")],
|
|
||||||
[string_lower("Totem de Magma")] = totemData[string_lower("Magma Totem")],
|
|
||||||
[string_lower("Totem de courroux")] = totemData[string_lower("Totem of Wrath")],
|
|
||||||
[string_lower("Totem d'\195\169lementaire de feu")] = totemData[string_lower("Fire Elemental Totem")],
|
|
||||||
[string_lower("Totem d'\195\169l\195\169mentaire de feu")] = totemData[string_lower("Fire Elemental Totem")],
|
|
||||||
[string_lower("Totem de Peau de pierre")] = totemData[string_lower("Stoneskin Totem")],
|
|
||||||
[string_lower("Totem d'\195\169lementaire de terre")] = totemData[string_lower("Earth Elemental Totem")],
|
|
||||||
[string_lower("Totem d'\195\169l\195\169mentaire de terre")] = totemData[string_lower("Earth Elemental Totem")],
|
|
||||||
[string_lower("Totem de Force de la Terre")] = totemData[string_lower("Strength of Earth Totem")],
|
|
||||||
[string_lower("Totem de r\195\169sistance au Givre")] = totemData[string_lower("Frost Resistance Totem")],
|
|
||||||
[string_lower("Totem de r\195\169sistance au Feu")] = totemData[string_lower("Fire Resistance Totem")],
|
|
||||||
[string_lower("Totem de Gl\195\168be")] = totemData[string_lower("Grounding Totem")],
|
|
||||||
[string_lower("Totem de Gr\195\162ce a\195\169rienne")] = totemData[string_lower("Grace of Air Totem")],
|
|
||||||
[string_lower("Totem de R\195\169sistance \195\160 la Nature")] = totemData[string_lower("Nature Resistance Totem")],
|
|
||||||
[string_lower("Totem Furie-des-vents")] = totemData[string_lower("Windfury Totem")],
|
|
||||||
[string_lower("Totem Sentinelle")] = totemData[string_lower("Sentry Totem")],
|
|
||||||
[string_lower("Totem de Mur des vents")] = totemData[string_lower("Windwall Totem")],
|
|
||||||
[string_lower("Totem de courroux de l'air")] = totemData[string_lower("Wrath of Air Totem")],
|
|
||||||
[string_lower("Totem de S\195\169isme")] = totemData[string_lower("Tremor Totem")],
|
|
||||||
[string_lower("Totem gu\195\169risseur")] = totemData[string_lower("Healing Stream Totem")],
|
|
||||||
[string_lower("Totem de Purification du poison")] = totemData[string_lower("Poison Cleansing Totem")],
|
|
||||||
[string_lower("Totem Fontaine de mana")] = totemData[string_lower("Mana Spring Totem")],
|
|
||||||
[string_lower("Totem de Purification des maladies")] = totemData[string_lower("Disease Cleansing Totem")],
|
|
||||||
[string_lower("Totem de purification")] = totemData[string_lower("Disease Cleansing Totem")],
|
|
||||||
[string_lower("Totem de Vague de mana")] = totemData[string_lower("Mana Tide Totem")],
|
|
||||||
[string_lower("Totem de Tranquillit\195\169 de l'air")] = totemData[string_lower("Tranquil Air Totem")],
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
local function GetTotemColorDefaultOptions()
|
local function GetTotemColorDefaultOptions()
|
||||||
@ -329,6 +297,7 @@ function TotemPlates:NAME_PLATE_UNIT_ADDED(...)
|
|||||||
nameplate.gladdyTotemFrame:SetWidth(Gladdy.db.npTotemPlatesSize * Gladdy.db.npTotemPlatesWidthFactor)
|
nameplate.gladdyTotemFrame:SetWidth(Gladdy.db.npTotemPlatesSize * Gladdy.db.npTotemPlatesWidthFactor)
|
||||||
nameplate.gladdyTotemFrame:SetHeight(Gladdy.db.npTotemPlatesSize)
|
nameplate.gladdyTotemFrame:SetHeight(Gladdy.db.npTotemPlatesSize)
|
||||||
nameplate.gladdyTotemFrame.totemIcon = nameplate.gladdyTotemFrame:CreateTexture(nil, "BACKGROUND")
|
nameplate.gladdyTotemFrame.totemIcon = nameplate.gladdyTotemFrame:CreateTexture(nil, "BACKGROUND")
|
||||||
|
nameplate.gladdyTotemFrame.totemIcon:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
nameplate.gladdyTotemFrame.totemIcon:ClearAllPoints()
|
nameplate.gladdyTotemFrame.totemIcon:ClearAllPoints()
|
||||||
nameplate.gladdyTotemFrame.totemIcon:SetPoint("TOPLEFT", nameplate.gladdyTotemFrame, "TOPLEFT")
|
nameplate.gladdyTotemFrame.totemIcon:SetPoint("TOPLEFT", nameplate.gladdyTotemFrame, "TOPLEFT")
|
||||||
nameplate.gladdyTotemFrame.totemIcon:SetPoint("BOTTOMRIGHT", nameplate.gladdyTotemFrame, "BOTTOMRIGHT")
|
nameplate.gladdyTotemFrame.totemIcon:SetPoint("BOTTOMRIGHT", nameplate.gladdyTotemFrame, "BOTTOMRIGHT")
|
||||||
|
@ -71,9 +71,11 @@ end
|
|||||||
|
|
||||||
function Trinket:CreateFrame(unit)
|
function Trinket:CreateFrame(unit)
|
||||||
local trinket = CreateFrame("Button", "GladdyTrinketButton" .. unit, Gladdy.buttons[unit])
|
local trinket = CreateFrame("Button", "GladdyTrinketButton" .. unit, Gladdy.buttons[unit])
|
||||||
|
trinket:EnableMouse(false)
|
||||||
trinket.texture = trinket:CreateTexture(nil, "BACKGROUND")
|
trinket.texture = trinket:CreateTexture(nil, "BACKGROUND")
|
||||||
trinket.texture:SetAllPoints(trinket)
|
trinket.texture:SetAllPoints(trinket)
|
||||||
trinket.texture:SetTexture("Interface\\Icons\\INV_Jewelry_TrinketPVP_02")
|
trinket.texture:SetTexture("Interface\\Icons\\INV_Jewelry_TrinketPVP_02")
|
||||||
|
trinket.texture:SetMask("Interface\\AddOns\\Gladdy\\Images\\mask")
|
||||||
|
|
||||||
trinket.cooldown = CreateFrame("Cooldown", nil, trinket, "CooldownFrameTemplate")
|
trinket.cooldown = CreateFrame("Cooldown", nil, trinket, "CooldownFrameTemplate")
|
||||||
trinket.cooldown.noCooldownCount = true --Gladdy.db.trinketDisableOmniCC
|
trinket.cooldown.noCooldownCount = true --Gladdy.db.trinketDisableOmniCC
|
||||||
|
@ -50,8 +50,8 @@ function XiconProfiles:GetOptions()
|
|||||||
name = " ",
|
name = " ",
|
||||||
desc = "Classic Profile",
|
desc = "Classic Profile",
|
||||||
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Classic1.blp",
|
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Classic1.blp",
|
||||||
imageWidth = 256,
|
imageWidth = 350,
|
||||||
imageHeight = 128,
|
imageHeight = 175,
|
||||||
width = "full",
|
width = "full",
|
||||||
order = 3,
|
order = 3,
|
||||||
},
|
},
|
||||||
@ -69,8 +69,8 @@ function XiconProfiles:GetOptions()
|
|||||||
name = " ",
|
name = " ",
|
||||||
desc = "Knall's Profile",
|
desc = "Knall's Profile",
|
||||||
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Knall1.blp",
|
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Knall1.blp",
|
||||||
imageWidth = 256,
|
imageWidth = 350,
|
||||||
imageHeight = 128,
|
imageHeight = 175,
|
||||||
width = "full",
|
width = "full",
|
||||||
order = 5,
|
order = 5,
|
||||||
},
|
},
|
||||||
@ -86,8 +86,8 @@ function XiconProfiles:GetOptions()
|
|||||||
XiconProfiles:ApplyKlimp()
|
XiconProfiles:ApplyKlimp()
|
||||||
end,
|
end,
|
||||||
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Klimp1.blp",
|
image = "Interface\\AddOns\\Gladdy\\Images\\BasicProfiles\\Klimp1.blp",
|
||||||
imageWidth = 256,
|
imageWidth = 350,
|
||||||
imageHeight = 128,
|
imageHeight = 175,
|
||||||
name = " ",
|
name = " ",
|
||||||
desc = "Klimp's Profile",
|
desc = "Klimp's Profile",
|
||||||
width = "full",
|
width = "full",
|
||||||
|
173
Options.lua
173
Options.lua
@ -1,4 +1,4 @@
|
|||||||
local type, pairs, tinsert, tsort, tostring = type, pairs, table.insert, table.sort, tostring
|
local type, pairs, tinsert, tsort, tostring, str_match, tonumber = type, pairs, table.insert, table.sort, tostring, string.match, tonumber
|
||||||
|
|
||||||
local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame
|
local InterfaceOptionsFrame_OpenToFrame = InterfaceOptionsFrame_OpenToFrame
|
||||||
local GetSpellInfo = GetSpellInfo
|
local GetSpellInfo = GetSpellInfo
|
||||||
@ -20,21 +20,19 @@ Gladdy.defaults = {
|
|||||||
padding = 3,
|
padding = 3,
|
||||||
barWidth = 180,
|
barWidth = 180,
|
||||||
bottomMargin = 10,
|
bottomMargin = 10,
|
||||||
statusbarBorderOffset = 7,
|
statusbarBorderOffset = 6,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
SLASH_GLADDY1 = "/gladdy"
|
SLASH_GLADDY1 = "/gladdy"
|
||||||
SlashCmdList["GLADDY"] = function(msg)
|
SlashCmdList["GLADDY"] = function(msg)
|
||||||
if (msg == "test2") then
|
if (str_match(msg, "test[1-5]")) then
|
||||||
Gladdy:ToggleFrame(2)
|
local _, num = str_match(msg, "(test)([1-5])")
|
||||||
elseif (msg == "test5") then
|
Gladdy:ToggleFrame(tonumber(num))
|
||||||
Gladdy:ToggleFrame(5)
|
elseif (msg == "test") then
|
||||||
elseif (msg:find("test")) then
|
|
||||||
Gladdy:ToggleFrame(3)
|
Gladdy:ToggleFrame(3)
|
||||||
elseif (msg == "ui" or msg == "options" or msg == "config") then
|
elseif (msg == "ui" or msg == "options" or msg == "config") then
|
||||||
LibStub("AceConfigDialog-3.0"):Open("Gladdy")
|
LibStub("AceConfigDialog-3.0"):Open("Gladdy")
|
||||||
--Gladdy:ShowOptions()
|
|
||||||
elseif (msg == "reset") then
|
elseif (msg == "reset") then
|
||||||
Gladdy.dbi:ResetProfile()
|
Gladdy.dbi:ResetProfile()
|
||||||
elseif (msg == "hide") then
|
elseif (msg == "hide") then
|
||||||
@ -43,7 +41,8 @@ SlashCmdList["GLADDY"] = function(msg)
|
|||||||
else
|
else
|
||||||
Gladdy:Print(L["Valid slash commands are:"])
|
Gladdy:Print(L["Valid slash commands are:"])
|
||||||
Gladdy:Print("/gladdy ui")
|
Gladdy:Print("/gladdy ui")
|
||||||
Gladdy:Print("/gladdy test2-5")
|
Gladdy:Print("/gladdy test")
|
||||||
|
Gladdy:Print("/gladdy test1-5")
|
||||||
Gladdy:Print("/gladdy hide")
|
Gladdy:Print("/gladdy hide")
|
||||||
Gladdy:Print("/gladdy reset")
|
Gladdy:Print("/gladdy reset")
|
||||||
end
|
end
|
||||||
@ -268,7 +267,8 @@ function Gladdy:SetupOptions()
|
|||||||
local c = Gladdy.db.trinketDisableCircle
|
local c = Gladdy.db.trinketDisableCircle
|
||||||
local d = Gladdy.db.drDisableCircle
|
local d = Gladdy.db.drDisableCircle
|
||||||
local e = Gladdy.db.buffsDisableCircle
|
local e = Gladdy.db.buffsDisableCircle
|
||||||
if (a == b and a == c and a == d and a == e) then
|
local f = Gladdy.db.racialDisableCircle
|
||||||
|
if (a == b and a == c and a == d and a == e and a == f) then
|
||||||
return a
|
return a
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
@ -280,6 +280,7 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.trinketDisableCircle = value
|
Gladdy.db.trinketDisableCircle = value
|
||||||
Gladdy.db.drDisableCircle = value
|
Gladdy.db.drDisableCircle = value
|
||||||
Gladdy.db.buffsDisableCircle = value
|
Gladdy.db.buffsDisableCircle = value
|
||||||
|
Gladdy.db.racialDisableCircle = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
width= "full",
|
width= "full",
|
||||||
@ -297,7 +298,8 @@ function Gladdy:SetupOptions()
|
|||||||
local c = Gladdy.db.auraCooldownAlpha
|
local c = Gladdy.db.auraCooldownAlpha
|
||||||
local d = Gladdy.db.trinketCooldownAlpha
|
local d = Gladdy.db.trinketCooldownAlpha
|
||||||
local e = Gladdy.db.buffsCooldownAlpha
|
local e = Gladdy.db.buffsCooldownAlpha
|
||||||
if (a == b and a == c and a == d and a == e) then
|
local f = Gladdy.db.racialCooldownAlpha
|
||||||
|
if (a == b and a == c and a == d and a == e and a == f) then
|
||||||
return a
|
return a
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
@ -309,6 +311,7 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.auraCooldownAlpha = value
|
Gladdy.db.auraCooldownAlpha = value
|
||||||
Gladdy.db.trinketCooldownAlpha = value
|
Gladdy.db.trinketCooldownAlpha = value
|
||||||
Gladdy.db.buffsCooldownAlpha = value
|
Gladdy.db.buffsCooldownAlpha = value
|
||||||
|
Gladdy.db.racialCooldownAlpha = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
@ -332,33 +335,42 @@ function Gladdy:SetupOptions()
|
|||||||
dialogControl = "LSM30_Font",
|
dialogControl = "LSM30_Font",
|
||||||
values = AceGUIWidgetLSMlists.font,
|
values = AceGUIWidgetLSMlists.font,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local a = Gladdy.db.castBarFont
|
local a = Gladdy.db.auraFont
|
||||||
local b = Gladdy.db.healthBarFont
|
local b = Gladdy.db.buffsFont
|
||||||
local c = Gladdy.db.powerBarFont
|
local c = Gladdy.db.castBarFont
|
||||||
local d = Gladdy.db.cooldownFont
|
local d = Gladdy.db.cooldownFont
|
||||||
local e = Gladdy.db.drFont
|
local e = Gladdy.db.drFont
|
||||||
local f = Gladdy.db.auraFont
|
local f = Gladdy.db.healthBarFont
|
||||||
local g = Gladdy.db.buffsFont
|
local g = Gladdy.db.petHealthBarFont
|
||||||
if (a == b and a == c and a == d and a == e and a == f and a == g) then
|
local h = Gladdy.db.powerBarFont
|
||||||
|
local i = Gladdy.db.racialFont
|
||||||
|
local j = Gladdy.db.npTremorFont
|
||||||
|
local k = Gladdy.db.trinketFont
|
||||||
|
if (a == b and a == c and a == d and a == e and a == f
|
||||||
|
and a == g and a == h and a == i and a == j and a == k) then
|
||||||
return a
|
return a
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
Gladdy.db.castBarFont = value
|
|
||||||
Gladdy.db.healthBarFont = value
|
|
||||||
Gladdy.db.powerBarFont = value
|
|
||||||
Gladdy.db.cooldownFont = value
|
|
||||||
Gladdy.db.drFont = value
|
|
||||||
Gladdy.db.auraFont = value
|
Gladdy.db.auraFont = value
|
||||||
Gladdy.db.buffsFont = value
|
Gladdy.db.buffsFont = value
|
||||||
|
Gladdy.db.castBarFont = value
|
||||||
|
Gladdy.db.cooldownFont = value
|
||||||
|
Gladdy.db.drFont = value
|
||||||
|
Gladdy.db.healthBarFont = value
|
||||||
|
Gladdy.db.petHealthBarFont = value
|
||||||
|
Gladdy.db.powerBarFont = value
|
||||||
|
Gladdy.db.racialFont = value
|
||||||
|
Gladdy.db.npTremorFont = value
|
||||||
|
Gladdy.db.trinketFont = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
fontColor = {
|
fontColor = {
|
||||||
type = "color",
|
type = "color",
|
||||||
name = L["Font color"],
|
name = L["Font color text"],
|
||||||
desc = L["Color of the text"],
|
desc = L["Color of the text"],
|
||||||
order = 12,
|
order = 12,
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
@ -366,8 +378,10 @@ function Gladdy:SetupOptions()
|
|||||||
local a = Gladdy.db.healthBarFontColor
|
local a = Gladdy.db.healthBarFontColor
|
||||||
local b = Gladdy.db.powerBarFontColor
|
local b = Gladdy.db.powerBarFontColor
|
||||||
local c = Gladdy.db.castBarFontColor
|
local c = Gladdy.db.castBarFontColor
|
||||||
|
local d = Gladdy.db.petHealthBarFontColor
|
||||||
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
||||||
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a) then
|
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a
|
||||||
|
and a.r == d.r and a.g == d.g and a.b == d.b and a.a == d.a) then
|
||||||
return a.r, a.g, a.b, a.a
|
return a.r, a.g, a.b, a.a
|
||||||
else
|
else
|
||||||
return { r = 0, g = 0, b = 0, a = 0 }
|
return { r = 0, g = 0, b = 0, a = 0 }
|
||||||
@ -378,6 +392,35 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.healthBarFontColor = rgb
|
Gladdy.db.healthBarFontColor = rgb
|
||||||
Gladdy.db.powerBarFontColor = rgb
|
Gladdy.db.powerBarFontColor = rgb
|
||||||
Gladdy.db.castBarFontColor = rgb
|
Gladdy.db.castBarFontColor = rgb
|
||||||
|
Gladdy.db.petHealthBarFontColor = rgb
|
||||||
|
Gladdy:UpdateFrame()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
fontColorCD = {
|
||||||
|
type = "color",
|
||||||
|
name = L["Font color timer"],
|
||||||
|
desc = L["Color of the timers"],
|
||||||
|
order = 12,
|
||||||
|
hasAlpha = true,
|
||||||
|
get = function(info)
|
||||||
|
local a = Gladdy.db.auraFontColor
|
||||||
|
local b = Gladdy.db.buffsFontColor
|
||||||
|
local c = Gladdy.db.cooldownFontColor
|
||||||
|
local d = Gladdy.db.drFontColor
|
||||||
|
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
||||||
|
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a
|
||||||
|
and a.r == d.r and a.g == d.g and a.b == d.b and a.a == d.a) then
|
||||||
|
return a.r, a.g, a.b, a.a
|
||||||
|
else
|
||||||
|
return { r = 0, g = 0, b = 0, a = 0 }
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
set = function(info, r, g, b, a)
|
||||||
|
local rgb = {r = r, g = g, b = b, a = a}
|
||||||
|
Gladdy.db.auraFontColor = rgb
|
||||||
|
Gladdy.db.buffsFontColor = rgb
|
||||||
|
Gladdy.db.cooldownFontColor = rgb
|
||||||
|
Gladdy.db.drFontColor = rgb
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -400,27 +443,34 @@ function Gladdy:SetupOptions()
|
|||||||
order = 14,
|
order = 14,
|
||||||
values = Gladdy:GetIconStyles(),
|
values = Gladdy:GetIconStyles(),
|
||||||
get = function(info)
|
get = function(info)
|
||||||
if (Gladdy.db.classIconBorderStyle == Gladdy.db.trinketBorderStyle
|
if (Gladdy.db.auraBorderStyle == Gladdy.db.buffsBorderStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.castBarIconStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.castBarIconStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.auraBorderStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.classIconBorderStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.cooldownBorderStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.cooldownBorderStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.buffsBorderStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.ciBorderStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.drBorderStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.cooldownBorderStyle
|
||||||
and Gladdy.db.classIconBorderStyle == Gladdy.db.npTotemPlatesBorderStyle) then
|
and Gladdy.db.auraBorderStyle == Gladdy.db.drBorderStyle
|
||||||
return Gladdy.db.classIconBorderStyle
|
and Gladdy.db.auraBorderStyle == Gladdy.db.racialBorderStyle
|
||||||
|
and Gladdy.db.auraBorderStyle == Gladdy.db.npTotemPlatesBorderStyle
|
||||||
|
and Gladdy.db.auraBorderStyle == Gladdy.db.petPortraitBorderStyle
|
||||||
|
and Gladdy.db.auraBorderStyle == Gladdy.db.trinketBorderStyle) then
|
||||||
|
return Gladdy.db.auraBorderStyle
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
set = function(info, value)
|
set = function(info, value)
|
||||||
Gladdy.db.classIconBorderStyle = value
|
|
||||||
Gladdy.db.trinketBorderStyle = value
|
|
||||||
Gladdy.db.castBarIconStyle = value
|
|
||||||
Gladdy.db.auraBorderStyle = value
|
Gladdy.db.auraBorderStyle = value
|
||||||
Gladdy.db.npTotemPlatesBorderStyle = value
|
|
||||||
Gladdy.db.cooldownBorderStyle = value
|
|
||||||
Gladdy.db.buffsBorderStyle = value
|
Gladdy.db.buffsBorderStyle = value
|
||||||
|
Gladdy.db.castBarIconStyle = value
|
||||||
|
Gladdy.db.classIconBorderStyle = value
|
||||||
|
Gladdy.db.ciBorderStyle = value
|
||||||
|
Gladdy.db.cooldownBorderStyle = value
|
||||||
Gladdy.db.drBorderStyle = value
|
Gladdy.db.drBorderStyle = value
|
||||||
|
Gladdy.db.racialBorderStyle = value
|
||||||
|
Gladdy.db.npTotemPlatesBorderStyle = value
|
||||||
|
Gladdy.db.petPortraitBorderStyle = value
|
||||||
|
Gladdy.db.trinketBorderStyle = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -431,11 +481,23 @@ function Gladdy:SetupOptions()
|
|||||||
order = 15,
|
order = 15,
|
||||||
hasAlpha = true,
|
hasAlpha = true,
|
||||||
get = function(info)
|
get = function(info)
|
||||||
local a = Gladdy.db.classIconBorderColor
|
local a = Gladdy.db.auraBuffBorderColor
|
||||||
local b = Gladdy.db.trinketBorderColor
|
local b = Gladdy.db.auraDebuffBorderColor
|
||||||
local c = Gladdy.db.castBarIconColor
|
local c = Gladdy.db.buffsBorderColor
|
||||||
|
local d = Gladdy.db.castBarIconColor
|
||||||
|
local e = Gladdy.db.classIconBorderColor
|
||||||
|
local f = Gladdy.db.ciBorderColor
|
||||||
|
local g = Gladdy.db.cooldownBorderColor
|
||||||
|
local h = Gladdy.db.drBorderColor
|
||||||
|
local i = Gladdy.db.trinketBorderColor
|
||||||
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
||||||
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a) then
|
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a
|
||||||
|
and a.r == d.r and a.g == d.g and a.b == d.b and a.a == d.a
|
||||||
|
and a.r == e.r and a.g == e.g and a.b == e.b and a.a == e.a
|
||||||
|
and a.r == f.r and a.g == f.g and a.b == f.b and a.a == f.a
|
||||||
|
and a.r == g.r and a.g == g.g and a.b == g.b and a.a == g.a
|
||||||
|
and a.r == h.r and a.g == h.g and a.b == h.b and a.a == h.a
|
||||||
|
and a.r == i.r and a.g == i.g and a.b == i.b and a.a == i.a) then
|
||||||
return a.r, a.g, a.b, a.a
|
return a.r, a.g, a.b, a.a
|
||||||
else
|
else
|
||||||
return { r = 0, g = 0, b = 0, a = 0 }
|
return { r = 0, g = 0, b = 0, a = 0 }
|
||||||
@ -443,13 +505,15 @@ function Gladdy:SetupOptions()
|
|||||||
end,
|
end,
|
||||||
set = function(info, r, g, b, a)
|
set = function(info, r, g, b, a)
|
||||||
local rgb = {r = r, g = g, b = b, a = a}
|
local rgb = {r = r, g = g, b = b, a = a}
|
||||||
Gladdy.db.classIconBorderColor = rgb
|
Gladdy.db.auraBuffBorderColor = rgb
|
||||||
Gladdy.db.trinketBorderColor = rgb
|
Gladdy.db.auraDebuffBorderColor = rgb
|
||||||
Gladdy.db.castBarIconColor = rgb
|
|
||||||
Gladdy.db.npTotemPlatesBorderColor = rgb
|
|
||||||
Gladdy.db.drBorderColor = rgb
|
|
||||||
Gladdy.db.cooldownBorderColor = rgb
|
|
||||||
Gladdy.db.buffsBorderColor = rgb
|
Gladdy.db.buffsBorderColor = rgb
|
||||||
|
Gladdy.db.castBarIconColor = rgb
|
||||||
|
Gladdy.db.classIconBorderColor = rgb
|
||||||
|
Gladdy.db.ciBorderColor = rgb
|
||||||
|
Gladdy.db.cooldownBorderColor = rgb
|
||||||
|
Gladdy.db.drBorderColor = rgb
|
||||||
|
Gladdy.db.trinketBorderColor = rgb
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -476,7 +540,8 @@ function Gladdy:SetupOptions()
|
|||||||
local a = Gladdy.db.healthBarTexture
|
local a = Gladdy.db.healthBarTexture
|
||||||
local b = Gladdy.db.powerBarTexture
|
local b = Gladdy.db.powerBarTexture
|
||||||
local c = Gladdy.db.castBarTexture
|
local c = Gladdy.db.castBarTexture
|
||||||
if (a == b and a == c) then
|
local d = Gladdy.db.petHealthBarTexture
|
||||||
|
if (a == b and a == c and a == d) then
|
||||||
return a
|
return a
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
@ -486,6 +551,7 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.healthBarTexture = value
|
Gladdy.db.healthBarTexture = value
|
||||||
Gladdy.db.powerBarTexture = value
|
Gladdy.db.powerBarTexture = value
|
||||||
Gladdy.db.castBarTexture = value
|
Gladdy.db.castBarTexture = value
|
||||||
|
Gladdy.db.petHealthBarTexture = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
width= "full",
|
width= "full",
|
||||||
@ -501,7 +567,8 @@ function Gladdy:SetupOptions()
|
|||||||
local a = Gladdy.db.healthBarBorderStyle
|
local a = Gladdy.db.healthBarBorderStyle
|
||||||
local b = Gladdy.db.powerBarBorderStyle
|
local b = Gladdy.db.powerBarBorderStyle
|
||||||
local c = Gladdy.db.castBarBorderStyle
|
local c = Gladdy.db.castBarBorderStyle
|
||||||
if (a == b and a == c) then
|
local d = Gladdy.db.petHealthBarBorderStyle
|
||||||
|
if (a == b and a == c and a == d) then
|
||||||
return a
|
return a
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
@ -511,6 +578,7 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.healthBarBorderStyle = value
|
Gladdy.db.healthBarBorderStyle = value
|
||||||
Gladdy.db.powerBarBorderStyle = value
|
Gladdy.db.powerBarBorderStyle = value
|
||||||
Gladdy.db.castBarBorderStyle = value
|
Gladdy.db.castBarBorderStyle = value
|
||||||
|
Gladdy.db.petHealthBarBorderStyle = value
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -532,8 +600,10 @@ function Gladdy:SetupOptions()
|
|||||||
local a = Gladdy.db.castBarBorderColor
|
local a = Gladdy.db.castBarBorderColor
|
||||||
local b = Gladdy.db.healthBarBorderColor
|
local b = Gladdy.db.healthBarBorderColor
|
||||||
local c = Gladdy.db.powerBarBorderColor
|
local c = Gladdy.db.powerBarBorderColor
|
||||||
|
local d = Gladdy.db.petHealthBarBorderColor
|
||||||
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
if (a.r == b.r and a.g == b.g and a.b == b.b and a.a == b.a
|
||||||
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a) then
|
and a.r == c.r and a.g == c.g and a.b == c.b and a.a == c.a
|
||||||
|
and a.r == d.r and a.g == d.g and a.b == d.b and a.a == d.a) then
|
||||||
return a.r, a.g, a.b, a.a
|
return a.r, a.g, a.b, a.a
|
||||||
else
|
else
|
||||||
return { r = 0, g = 0, b = 0, a = 0 }
|
return { r = 0, g = 0, b = 0, a = 0 }
|
||||||
@ -544,6 +614,7 @@ function Gladdy:SetupOptions()
|
|||||||
Gladdy.db.castBarBorderColor = rgb
|
Gladdy.db.castBarBorderColor = rgb
|
||||||
Gladdy.db.healthBarBorderColor = rgb
|
Gladdy.db.healthBarBorderColor = rgb
|
||||||
Gladdy.db.powerBarBorderColor = rgb
|
Gladdy.db.powerBarBorderColor = rgb
|
||||||
|
Gladdy.db.petHealthBarBorderColor = rgb
|
||||||
Gladdy:UpdateFrame()
|
Gladdy:UpdateFrame()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
@ -716,7 +787,7 @@ function Gladdy:GetAuras(auraType)
|
|||||||
name = classSpells[i].name,
|
name = classSpells[i].name,
|
||||||
type = "toggle",
|
type = "toggle",
|
||||||
image = texture,
|
image = texture,
|
||||||
width = "2",
|
width = "full",
|
||||||
arg = tostring(classSpells[i].id[1])
|
arg = tostring(classSpells[i].id[1])
|
||||||
}
|
}
|
||||||
defaultDebuffs[tostring(classSpells[i].id[1])] = true
|
defaultDebuffs[tostring(classSpells[i].id[1])] = true
|
||||||
|
20
README.md
20
README.md
@ -1,7 +1,7 @@
|
|||||||
# Gladdy - TBC
|
# Gladdy - TBC
|
||||||
|
|
||||||
### The most powerful arena addon for WoW TBC 2.5.1
|
### The most powerful arena addon for WoW TBC 2.5.1
|
||||||
## [v1.06-Beta Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v1.06-Beta/Gladdy_TBC-Classic_v1.06-Beta.zip)
|
## [v1.07-Beta Download Here](https://github.com/XiconQoo/Gladdy-TBC/releases/download/v1.07-Beta/Gladdy_TBC-Classic_v1.07-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
|
###### <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
|
||||||
|
|
||||||
@ -17,11 +17,15 @@ The goal is to make Gladdy highly configurable in it's appearance. Everything ca
|
|||||||
- Announcement (drink, trinket usage, spec detection ...)
|
- Announcement (drink, trinket usage, spec detection ...)
|
||||||
- ArenaCountDown
|
- ArenaCountDown
|
||||||
- Auras (show important (de)buffs in the class icon)
|
- Auras (show important (de)buffs in the class icon)
|
||||||
|
- BuffsDebuffs (show buffs and debuffs on arena frames - can be filtered)
|
||||||
|
- ClassIcon (or specicon, once detected)
|
||||||
|
- CombatIndicator
|
||||||
- Cooldown (tracks important cooldowns)
|
- Cooldown (tracks important cooldowns)
|
||||||
- Diminishing (tracks DRs)
|
- Diminishing (tracks DRs)
|
||||||
- ExportImport (share your profile with your friends in the form of a string, which can be imported)
|
- ExportImport (share your profile with your friends in the form of a string, which can be imported)
|
||||||
- Highlight (highlights focus and target)
|
- Highlight (highlights focus and target)
|
||||||
- Pets (show arena pets)
|
- Pets (show arena pets)
|
||||||
|
- Racial Spells
|
||||||
- TotemPlates (show totem icons instead of normal nameplates)
|
- TotemPlates (show totem icons instead of normal nameplates)
|
||||||
- Trinket (tracks trinket usage)
|
- Trinket (tracks trinket usage)
|
||||||
- VersionCheck (checks if you use an older version that your teammate)
|
- VersionCheck (checks if you use an older version that your teammate)
|
||||||
@ -35,6 +39,20 @@ The goal is to make Gladdy highly configurable in it's appearance. Everything ca
|
|||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
|
#### v1.07-Beta
|
||||||
|
|
||||||
|
- CombatIndicator module added
|
||||||
|
- spec icon option added to Classicon module
|
||||||
|
- arena1-5 for name option added
|
||||||
|
- add a couple buffs to LibClassAuras
|
||||||
|
- add blessing of sacrifice and intervene to auras
|
||||||
|
- general options updated to apply font/borders/etc for all frames
|
||||||
|
- XiconProfiles updated
|
||||||
|
- /gladdy test1-5 now possible
|
||||||
|
- fix PowerBar text updates
|
||||||
|
- click through frames exept health/power bar
|
||||||
|
- add mask texture for icons
|
||||||
|
|
||||||
#### v1.06-Beta
|
#### v1.06-Beta
|
||||||
- fixed BuffsDebuff module
|
- fixed BuffsDebuff module
|
||||||
- fix racial texture reset
|
- fix racial texture reset
|
||||||
|
Loading…
Reference in New Issue
Block a user