mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
remove temp folder structure
This commit is contained in:
@@ -0,0 +1,107 @@
|
||||
local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
--Cache global variables
|
||||
--Lua functions
|
||||
local _G = _G
|
||||
local unpack = unpack
|
||||
local pairs = pairs
|
||||
--WoW API / Variables
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.raid ~= true then return end
|
||||
|
||||
-- RaidFrame
|
||||
local StripAllTextures = {
|
||||
"RaidGroup1",
|
||||
"RaidGroup2",
|
||||
"RaidGroup3",
|
||||
"RaidGroup4",
|
||||
"RaidGroup5",
|
||||
"RaidGroup6",
|
||||
"RaidGroup7",
|
||||
"RaidGroup8"
|
||||
}
|
||||
|
||||
for _, object in pairs(StripAllTextures) do
|
||||
if _G[object] then
|
||||
E:StripTextures(_G[object])
|
||||
end
|
||||
end
|
||||
|
||||
S:HandleButton(RaidFrameAddMemberButton)
|
||||
S:HandleButton(RaidFrameReadyCheckButton)
|
||||
S:HandleButton(RaidFrameRaidInfoButton)
|
||||
|
||||
for i = 1, NUM_RAID_GROUPS*5 do
|
||||
S:HandleButton(_G["RaidGroupButton"..i], true)
|
||||
end
|
||||
|
||||
for i = 1, 8 do
|
||||
for j = 1, 5 do
|
||||
E:StripTextures(_G["RaidGroup"..i.."Slot"..j])
|
||||
E:SetTemplate(_G["RaidGroup"..i.."Slot"..j], "Transparent")
|
||||
end
|
||||
end
|
||||
|
||||
local function skinPulloutFrames()
|
||||
for i = 1, NUM_RAID_PULLOUT_FRAMES do
|
||||
local rp = _G["RaidPullout"..i]
|
||||
if not rp.backdrop then
|
||||
_G["RaidPullout"..i.."MenuBackdrop"]:SetBackdrop(nil)
|
||||
E:CreateBackdrop(rp, "Transparent")
|
||||
rp.backdrop:SetPoint("TOPLEFT", 9, -17)
|
||||
rp.backdrop:SetPoint("BOTTOMRIGHT", -7, 10)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
hooksecurefunc("RaidPullout_GetFrame", function()
|
||||
skinPulloutFrames()
|
||||
end)
|
||||
|
||||
--[[hooksecurefunc("RaidPullout_Update", function(pullOutFrame)
|
||||
local pfName = pullOutFrame:GetName()
|
||||
for i = 1, pullOutFrame.numPulloutButtons do
|
||||
local pfBName = pfName.."Button"..i
|
||||
local pfBObj = _G[pfBName]
|
||||
if not pfBObj.backdrop then
|
||||
for _, v in pairs{"HealthBar", "ManaBar", "Target", "TargetTarget"} do
|
||||
local sBar = pfBName..v
|
||||
E:StripTextures(_G[sBar])
|
||||
_G[sBar]:SetStatusBarTexture(E["media"].normTex)
|
||||
end
|
||||
|
||||
_G[pfBName.."ManaBar"]:SetPoint("TOP", "$parentHealthBar", "BOTTOM", 0, 0)
|
||||
_G[pfBName.."Target"]:SetPoint("TOP", "$parentManaBar", "BOTTOM", 0, -1)
|
||||
|
||||
E:CreateBackdrop(pfBObj, "Default")
|
||||
pfBObj.backdrop:SetPoint("TOPLEFT", E.PixelMode and 0 or -1, -(E.PixelMode and 10 or 9))
|
||||
pfBObj.backdrop:SetPoint("BOTTOMRIGHT", E.PixelMode and 0 or 1, E.PixelMode and 1 or 0)
|
||||
end
|
||||
|
||||
if not _G[pfBName.."TargetTargetFrame"].backdrop then
|
||||
E:StripTextures(_G[pfBName.."TargetTargetFrame"])
|
||||
E:CreateBackdrop(_G[pfBName.."TargetTargetFrame"], "Default")
|
||||
_G[pfBName.."TargetTargetFrame"].backdrop:SetPoint("TOPLEFT", E.PixelMode and 10 or 9, -(E.PixelMode and 15 or 14))
|
||||
_G[pfBName.."TargetTargetFrame"].backdrop:SetPoint("BOTTOMRIGHT", -(E.PixelMode and 10 or 9), E.PixelMode and 8 or 7)
|
||||
end
|
||||
end
|
||||
end)]]
|
||||
|
||||
-- ReadyCheckFrame
|
||||
E:StripTextures(ReadyCheckFrame)
|
||||
E:SetTemplate(ReadyCheckFrame, "Transparent")
|
||||
|
||||
E:Kill(ReadyCheckPortrait)
|
||||
|
||||
S:HandleButton(ReadyCheckFrameYesButton)
|
||||
S:HandleButton(ReadyCheckFrameNoButton)
|
||||
|
||||
ReadyCheckFrameYesButton:SetPoint("RIGHT", ReadyCheckFrame, "CENTER", -1, 0)
|
||||
ReadyCheckFrameNoButton:SetPoint("LEFT", ReadyCheckFrameYesButton, "RIGHT", 3, 0)
|
||||
ReadyCheckFrameText:SetPoint("TOP", ReadyCheckFrame, "TOP", 0, -18)
|
||||
end
|
||||
|
||||
S:AddCallbackForAddon("Blizzard_RaidUI", "RaidUI", LoadSkin)
|
||||
Reference in New Issue
Block a user