Skip to content

Commit

Permalink
Merge pull request AlexOvares#4 from AlexOvares/dev
Browse files Browse the repository at this point in the history
Add Evoker support.
  • Loading branch information
Scryrz authored Nov 29, 2022
2 parents 8c94ba3 + 3ed9bc8 commit 18a99bc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ local defaults = {
"ROGUE",
"SHAMAN",
"WARLOCK",
"WARRIOR"
"WARRIOR",
"EVOKER",
},
categories={
L["dropDownAll"],
Expand Down
9 changes: 5 additions & 4 deletions Frame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ function PBL:showFrame()
local colorAux = self:setClassColor(v.classFile)

namelist[i] = AceGUI:Create("InteractiveLabel")
namelist[i] = PBL:createNameLabel(v, 0.30, colorAux[1], colorAux[2], colorAux[3], tabContainer)
namelist[i] = PBL:createNameLabel(v, 0.30, colorAux[1], colorAux[2], colorAux[3], tabContainer)

--if(v.classFile ~="UNSPECIFIED" and v.classFile ~= "" and v.classFile ~= nil) then
-- namelist[i]:SetImage("Interface\\GLUES\\CHARACTERCREATE\\UI-CHARACTERCREATE-CLASSES",unpack(CLASS_ICON_TCOORDS[v.classFile]))
Expand Down Expand Up @@ -559,7 +559,7 @@ end

function PBL:setClassColor(class)
-- 1-Warrior , 2-Paladin , 3-Hunter , 4-Rogue , 5-Priest , 6-Shaman, 7-Mage, 8-Warlock, 9-Monk, 10-Druid, 11-Demon Hunter, 12- Death Knight
local claColor={
local classColor={
["UNSPECIFIED"]={0.62,0.62,0.62},
["WARRIOR"]={0.78,0.61,0.43},
["PALADIN"]={0.96,0.55,0.73},
Expand All @@ -572,9 +572,10 @@ function PBL:setClassColor(class)
["MONK"]={0.00,1.00,0.59},
["DRUID"]={1.00,0.49,0.04},
["DEMONHUNTER"]={0.64,0.19,0.79},
["DEATHKNIGHT"]={0.77,0.12,0.23}
["DEATHKNIGHT"]={0.77,0.12,0.23},
["EVOKER"]={0.20, 0.58, 0.50},
}
return claColor[class]
return classColor[class]
end

function PBL:getKeysSortedByValue(tbl, sortFunction, value)
Expand Down
2 changes: 1 addition & 1 deletion PersonalBlacklist.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 100002
## Version: 3.7.5
## Version: 3.7.6
## Title: Personal Blacklist
## Notes: Tired of dealing with undesirable players in groups? Blacklist them and forget about them!

Expand Down

0 comments on commit 18a99bc

Please sign in to comment.