Skip to content

Commit

Permalink
Fix bad usage of CreateTexture
Browse files Browse the repository at this point in the history
  • Loading branch information
funkydude committed Sep 11, 2022
1 parent 014fba1 commit 7f68017
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon)

frame:ClearAllPoints()
frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4])
local bg = frame:CreateTexture(nil, "PARENT")
local bg = frame:CreateTexture()
bg:SetAllPoints(frame)
bg:SetColorTexture(0, 1, 0, 0.3)
frame.bg = bg
Expand Down
2 changes: 1 addition & 1 deletion Core_BCC.lua
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon)

frame:ClearAllPoints()
frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4])
local bg = frame:CreateTexture(nil, "PARENT")
local bg = frame:CreateTexture()
bg:SetAllPoints(frame)
bg:SetColorTexture(0, 1, 0, 0.3)
frame.bg = bg
Expand Down
2 changes: 1 addition & 1 deletion Core_Vanilla.lua
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ function core:ADDON_LOADED(addon)

frame:ClearAllPoints()
frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4])
local bg = frame:CreateTexture(nil, "PARENT")
local bg = frame:CreateTexture()
bg:SetAllPoints(frame)
bg:SetColorTexture(0, 1, 0, 0.3)
frame.bg = bg
Expand Down
2 changes: 1 addition & 1 deletion Core_Wrath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ function core:ADDON_LOADED(addon)

frame:ClearAllPoints()
frame:SetPoint(db.profile.position[1], UIParent, db.profile.position[2], db.profile.position[3], db.profile.position[4])
local bg = frame:CreateTexture(nil, "PARENT")
local bg = frame:CreateTexture()
bg:SetAllPoints(frame)
bg:SetColorTexture(0, 1, 0, 0.3)
frame.bg = bg
Expand Down

0 comments on commit 7f68017

Please sign in to comment.