Skip to content

Commit

Permalink
Merge pull request #167 from Vapok/tbc_prep
Browse files Browse the repository at this point in the history
Tbc prep
  • Loading branch information
Taidtuskecyh authored May 20, 2021
2 parents fc2d4a7 + 26d31fc commit 387213a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
25 changes: 13 additions & 12 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ for class,friendlyClass in pairs(API_CLASSES) do
-- There appears to be no WoW API that lists out specific classes to a single faction
-- Nor is there an API that identifies a specific class to a specific faction.
-- I'd love to not hard code this though, but I seem to be out of luck.

if core.faction == "Horde" then
if class ~= "PALADIN" then
addColor = true;
end
end

if core.faction == "Alliance" then
if class ~= "SHAMAN" then
addColor = true;
end
end

-- if core.faction == "Horde" then
-- if class ~= "PALADIN" then
-- addColor = true;
-- end
-- end

-- if core.faction == "Alliance" then
-- if class ~= "SHAMAN" then
-- addColor = true;
-- end
-- end
addColor = true;

if addColor then
colorTable.class = friendlyClass;
Expand Down
6 changes: 3 additions & 3 deletions Modules/Sync.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function CommDKP_Profile_Create(player, dkp, gained, spent, teamIndex)
end

local function CommDKP_BroadcastFull_Status_Create()
local f = CreateFrame("Frame", "CommDKP_FullBroadcastStatus", UIParent, "ShadowOverlaySmallTemplate");
local f = CreateFrame("Frame", "CommDKP_FullBroadcastStatus", UIParent, BackdropTemplateMixin and "BackdropTemplate" or nil);

f:SetPoint("TOP", UIParent, "TOP", 0, -10);
f:SetSize(300, 85);
Expand All @@ -89,7 +89,7 @@ local function CommDKP_BroadcastFull_Status_Create()
f.bcastHeader:SetPoint("TOPLEFT", f, "TOPLEFT", 15, -15);
f.bcastHeader:SetScale(0.8)

f.status = CreateFrame("StatusBar", nil, f)
f.status = CreateFrame("StatusBar", nil, f, BackdropTemplateMixin and "BackdropTemplate" or nil)
f.status:SetSize(200, 15)
f.status:SetBackdrop({
bgFile = "Interface\\ChatFrame\\ChatFrameBackground", tile = true,
Expand All @@ -103,7 +103,7 @@ local function CommDKP_BroadcastFull_Status_Create()
f.status.percentage:SetPoint("TOP", f.status, "BOTTOM", 0, -9);
f.status.percentage:SetScale(0.6)

f.status.border = CreateFrame("Frame", nil, f.status);
f.status.border = CreateFrame("Frame", nil, f.status, BackdropTemplateMixin and "BackdropTemplate" or nil);
f.status.border:SetPoint("CENTER", f.status, "CENTER");
f.status.border:SetFrameStrata("DIALOG")
f.status.border:SetFrameLevel(19)
Expand Down

0 comments on commit 387213a

Please sign in to comment.