diff --git a/api/unitframes.lua b/api/unitframes.lua index 38f3c2a3..62864361 100644 --- a/api/unitframes.lua +++ b/api/unitframes.lua @@ -2238,7 +2238,7 @@ function pfUI.uf:AddIcon(frame, pos, icon, timeleft, stacks, start, duration) if not frame.icon[pos] then frame.icon[pos] = CreateFrame("Frame", nil, frame.icon) frame.icon[pos]:SetParent(frame) - frame.icon[pos].tex = frame.icon[pos]:CreateTexture("OVERLAY") + frame.icon[pos].tex = frame.icon[pos]:CreateTexture(nil, "OVERLAY") frame.icon[pos].tex:SetAllPoints(frame.icon[pos]) frame.icon[pos].tex:SetTexCoord(.08, .92, .08, .92) frame.icon[pos].stacks = frame.icon[pos]:CreateFontString(nil, "OVERLAY") diff --git a/modules/autovendor.lua b/modules/autovendor.lua index 209e73e7..64ff7e4f 100644 --- a/modules/autovendor.lua +++ b/modules/autovendor.lua @@ -57,7 +57,7 @@ pfUI:RegisterModule("autovendor", function () -- Setup Autosell button autovendor.button = CreateFrame("Button", "pfMerchantAutoVendorButton", MerchantFrame) autovendor.button:SetSize(36, 36) - autovendor.button.icon = autovendor.button:CreateTexture("ARTWORK") + autovendor.button.icon = autovendor.button:CreateTexture(nil, "ARTWORK") autovendor.button.icon:SetTexture("Interface\\Icons\\Spell_Shadow_SacrificialShield") autovendor.button:SetScript("OnEnter", function() GameTooltip:SetOwner(this, "ANCHOR_RIGHT") diff --git a/modules/combopoints.lua b/modules/combopoints.lua index 2704c302..6b2c05cf 100644 --- a/modules/combopoints.lua +++ b/modules/combopoints.lua @@ -23,7 +23,7 @@ pfUI:RegisterModule("combopoints", function () pfUI.combopoints[point]:SetPoint("CENTER", UIParent, "CENTER", (point - 3) * (combo_width + border*3), 10 ) end - pfUI.combopoints[point].tex = pfUI.combopoints[point]:CreateTexture("OVERLAY") + pfUI.combopoints[point].tex = pfUI.combopoints[point]:CreateTexture(nil, "OVERLAY") pfUI.combopoints[point].tex:SetAllPoints(pfUI.combopoints[point]) if point < 3 then diff --git a/modules/gui.lua b/modules/gui.lua index 77a4326d..b568e441 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -183,7 +183,7 @@ pfUI:RegisterModule("gui", function () frame.color:SetHeight(12) CreateBackdrop(frame.color) frame.color:SetPoint("RIGHT" , -5, 1) - frame.color.prev = frame.color.backdrop:CreateTexture("OVERLAY") + frame.color.prev = frame.color.backdrop:CreateTexture(nil, "OVERLAY") frame.color.prev:SetAllPoints(frame.color) local cr, cg, cb, ca = strsplit(",", category[config]) diff --git a/modules/minimap.lua b/modules/minimap.lua index 10928c50..9beb988a 100644 --- a/modules/minimap.lua +++ b/modules/minimap.lua @@ -103,7 +103,7 @@ pfUI:RegisterModule("minimap", function () this.highlight:SetAllPoints(this) this.highlight:SetFrameLevel(this:GetFrameLevel() + 1) - this.highlight.tex = this.highlight:CreateTexture("OVERLAY") + this.highlight.tex = this.highlight:CreateTexture(nil, "OVERLAY") this.highlight.tex:SetTexture(pfUI.media["img:mail"]) this.highlight.tex:SetPoint("TOPLEFT", MiniMapMailIcon, "TOPLEFT", -2, 2) this.highlight.tex:SetPoint("BOTTOMRIGHT", MiniMapMailIcon, "BOTTOMRIGHT", 2, -2) diff --git a/modules/nameplates.lua b/modules/nameplates.lua index 91823ee1..9cc0a340 100644 --- a/modules/nameplates.lua +++ b/modules/nameplates.lua @@ -863,7 +863,7 @@ nameplates:RegisterUnitEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE", "target", "focu combopoints[i] = CreateFrame("Frame", nil, nameplate) combopoints[i]:Hide() combopoints[i]:SetFrameLevel(8) - combopoints[i].tex = combopoints[i]:CreateTexture("OVERLAY") + combopoints[i].tex = combopoints[i]:CreateTexture(nil, "OVERLAY") combopoints[i].tex:SetAllPoints() if i < 3 then diff --git a/modules/nampower.lua b/modules/nampower.lua index 87b1bafa..040db1a4 100644 --- a/modules/nampower.lua +++ b/modules/nampower.lua @@ -25,7 +25,7 @@ pfUI:RegisterModule("nampower", function () pfUI.spellqueue:SetPoint("CENTER", UIParent, "CENTER", 100, -100) end - pfUI.spellqueue.icon = pfUI.spellqueue:CreateTexture("OVERLAY") + pfUI.spellqueue.icon = pfUI.spellqueue:CreateTexture(nil, "OVERLAY") pfUI.spellqueue.icon:SetAllPoints(pfUI.spellqueue) pfUI.spellqueue.icon:SetTexCoord(.08, .92, .08, .92) diff --git a/modules/roll.lua b/modules/roll.lua index 3475555b..00e78d75 100644 --- a/modules/roll.lua +++ b/modules/roll.lua @@ -100,7 +100,7 @@ pfUI:RegisterModule("roll", function () f.icon:SetWidth(esize) f.icon:SetHeight(esize) - f.icon.tex = f.icon:CreateTexture("OVERLAY") + f.icon.tex = f.icon:CreateTexture(nil, "OVERLAY") f.icon.tex:SetTexCoord(.08, .92, .08, .92) f.icon.tex:SetAllPoints(f.icon) diff --git a/modules/tracking.lua b/modules/tracking.lua index ed5649aa..5e4e99a9 100644 --- a/modules/tracking.lua +++ b/modules/tracking.lua @@ -30,7 +30,7 @@ pfUI:RegisterModule("tracking", function () pfUI.tracking:SetWidth(size) pfUI.tracking:SetHeight(size) - pfUI.tracking.icon = pfUI.tracking:CreateTexture("BACKGROUND") + pfUI.tracking.icon = pfUI.tracking:CreateTexture(nil, "BACKGROUND") pfUI.tracking.icon:SetTexCoord(.08, .92, .08, .92) pfUI.tracking.icon:SetAllPoints(pfUI.tracking) diff --git a/skins/blizzard/petition.lua b/skins/blizzard/petition.lua index 407e1087..8ef10f0a 100644 --- a/skins/blizzard/petition.lua +++ b/skins/blizzard/petition.lua @@ -28,12 +28,12 @@ pfUI:RegisterSkin("Petition", function () local texture = "StationeryTest" if date("%m%d") == "0223" then texture = "Stationery_Val" end - local tex_Left = PetitionFrame:CreateTexture("BACKGROUND") + local tex_Left = PetitionFrame:CreateTexture(nil, "BACKGROUND") tex_Left:SetTexture("Interface\\Stationery\\"..texture.."1") tex_Left:SetPoint("TOPLEFT", 23, -81) tex_Left:SetWidth(tex_Left:GetWidth() + 10) tex_Left:SetHeight(330) - local tex_Right = PetitionFrame:CreateTexture("BACKGROUND") + local tex_Right = PetitionFrame:CreateTexture(nil, "BACKGROUND") tex_Right:SetTexture("Interface\\Stationery\\"..texture.."2") tex_Right:SetPoint("LEFT", tex_Left, "RIGHT", 0, 0) tex_Right:SetWidth(tex_Right:GetWidth() + 10)