Skip to content

Commit

Permalink
fixed broadcast percentage frame ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Taidtuskecyh authored and Taidtuskecyh committed May 19, 2021
1 parent a458882 commit c84c1dd
Showing 1 changed file with 3 additions and 3 deletions.
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 c84c1dd

Please sign in to comment.