From e8f2d3b5f640506a32de9789501bd087f19f156a Mon Sep 17 00:00:00 2001 From: Aleksi Blinnikka Date: Sun, 4 Feb 2018 20:50:12 +0200 Subject: [PATCH 1/1] Change bar texture, explicitly hide focus spell bar --- OmaRF/RaidFrame.lua | 13 ++++++++----- OmaRF/images/minimalist.tga | Bin 0 -> 1304 bytes 2 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 OmaRF/images/minimalist.tga diff --git a/OmaRF/RaidFrame.lua b/OmaRF/RaidFrame.lua index f8ca89f..3cde21c 100644 --- a/OmaRF/RaidFrame.lua +++ b/OmaRF/RaidFrame.lua @@ -29,6 +29,7 @@ local attributes = {}; local CFrame = CreateFrame("Frame", "OmaRFFrame", UIParent); local inheritedFrames = "SecureUnitButtonTemplate,SecureHandlerStateTemplate"; +local barTexture = "Interface\\AddOns\\OmaRF\\images\\minimalist"; local class = nil; local party = {}; local raid = {}; @@ -91,7 +92,7 @@ local function setupFrame(frame, secure, unit) frame.background:SetPoint("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -1, 1); frame.background:SetColorTexture(unpack(bgColor)); frame.health = frame:CreateTexture(nil, "BORDER"); - frame.health:SetTexture("Interface\\RaidFrame\\Raid-Bar-Hp-Fill"); + frame.health:SetTexture(barTexture); frame.health:SetPoint("TOPLEFT", frame.background, "TOPLEFT"); frame.health:SetPoint("BOTTOMLEFT", frame.background, "BOTTOMLEFT"); frame.health:SetVertexColor(unpack(healthColor)); @@ -103,7 +104,8 @@ local function setupFrame(frame, secure, unit) frame.shield = frame:CreateTexture(nil, "BORDER"); frame.shield:SetPoint("TOPLEFT", frame.health, "TOPRIGHT"); frame.shield:SetPoint("BOTTOMLEFT", frame.health, "BOTTOMRIGHT"); - frame.shield:SetColorTexture(unpack(shieldColor)); + frame.shield:SetTexture(barTexture); + frame.shield:SetVertexColor(unpack(shieldColor)); frame.shield:Hide(); frame.shieldhl = frame:CreateTexture(nil, "ARTWORK"); frame.shieldhl:SetPoint("TOPLEFT", frame.background, "TOPRIGHT", -1, 0); @@ -276,6 +278,7 @@ local function initialize() _, class = UnitClass("player"); anchorX, anchorY = Settings.Character.AnchorX, Settings.Character.AnchorY; attributes = Settings.Character.Clickheal; + CFrame:SetFrameStrata("LOW"); CFrame:SetPoint("CENTER", nil, "CENTER", anchorX, anchorY); CFrame:SetHeight((height+2)*8); CFrame:SetWidth((width+2)*5); @@ -320,10 +323,10 @@ local function hideBlizzardRaid() hideBlizzardRaidButton(); -- hide focus frame - for _, frame in pairs({FocusFrame, FocusFrameToT}) do + for _, frame in pairs({FocusFrame, FocusFrameToT, FocusFrameSpellBar}) do frame:UnregisterAllEvents(); - frame.healthbar:UnregisterAllEvents(); - frame.manabar:UnregisterAllEvents(); + if frame.healthbar then frame.healthbar:UnregisterAllEvents() end + if frame.manabar then frame.manabar:UnregisterAllEvents() end if frame.spellbar then frame.spellbar:UnregisterAllEvents() end if frame.powerBarAlt then frame.powerBarAlt:UnregisterAllEvents() end frame:Hide(); diff --git a/OmaRF/images/minimalist.tga b/OmaRF/images/minimalist.tga new file mode 100644 index 0000000000000000000000000000000000000000..030bc83d81c45574cece01ca0bc8af9c03849933 GIT binary patch literal 1304 zcmZwHSx&-G7>40`XIupv&|P3cVl;7zD_|c*pxBAd^FRlN#c;2?`Q_`uV?zFO@#Q&h z+uJJ2jUvz0NEuzzbULNW(RH0@7{f4#Fk90!NwF-82>QX)xGrtm7E+}?8O@otKua;^ zdc79Xq`nyGOf%4YjORFxkR`QdbV}#<{-3&N!)J->xy<DW^jUuIq>}{ppap-EIk_Z;XO# zh0%7qozP5b&S=53C0c^9_WQliN=j#BFwI2sF#h3i5VEBlMlRDlG&&xSm-F}MdwqTz SzfWE!Pmi}B_mhY5o$?DAgJ4(y literal 0 HcmV?d00001 -- 2.39.5