mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +00:00
update Skins
This commit is contained in:
@@ -10,7 +10,7 @@ local pairs = pairs
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.auctionhouse ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.auctionhouse ~= true then return end
|
||||
|
||||
E:StripTextures(AuctionFrame, true)
|
||||
E:CreateBackdrop(AuctionFrame, "Transparent")
|
||||
|
||||
@@ -9,7 +9,7 @@ local split = string.split
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgscore ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgscore ~= true then return end
|
||||
|
||||
E:CreateBackdrop(WorldStateScoreFrame, "Transparent")
|
||||
WorldStateScoreFrame.backdrop:SetPoint("TOPLEFT", 10, -15)
|
||||
|
||||
@@ -51,7 +51,7 @@ function S:BankFrameItemButton_OnUpdate()
|
||||
end
|
||||
|
||||
local function LoadSkin()
|
||||
-- if not E.private.skins.blizzard.enable and E.private.skins.blizzard.bags and not E.private.bags.enable then return end
|
||||
if not E.private.skins.blizzard.enable and E.private.skins.blizzard.bags and not E.private.bags.enable then return end
|
||||
|
||||
-- ContainerFrame
|
||||
local containerFrame, containerFrameClose
|
||||
|
||||
@@ -2,6 +2,8 @@ local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, Profi
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.battlefield ~= true then return end
|
||||
|
||||
E:StripTextures(BattlefieldFrame)
|
||||
|
||||
E:CreateBackdrop(BattlefieldFrame, "Transparent")
|
||||
|
||||
@@ -7,7 +7,7 @@ local _G = _G
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.binding ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.binding ~= true then return end
|
||||
|
||||
E:StripTextures(KeyBindingFrame)
|
||||
E:CreateBackdrop(KeyBindingFrame, "Transparent")
|
||||
|
||||
@@ -16,6 +16,7 @@ local NUM_FACTIONS_DISPLAYED = NUM_FACTIONS_DISPLAYED
|
||||
local CHARACTERFRAME_SUBFRAMES = CHARACTERFRAME_SUBFRAMES
|
||||
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.character ~= true then return end
|
||||
|
||||
-- Character Frame
|
||||
E:StripTextures(CharacterFrame, true)
|
||||
|
||||
@@ -14,7 +14,7 @@ local GetCraftItemLink = GetCraftItemLink
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or not E.private.skins.blizzard.craft ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or not E.private.skins.blizzard.craft ~= true then return end
|
||||
|
||||
E:StripTextures(CraftFrame, true)
|
||||
E:CreateBackdrop(CraftFrame, "Transparent")
|
||||
|
||||
@@ -10,7 +10,7 @@ local getn = table.getn
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.debug ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.debug ~= true then return end
|
||||
|
||||
-- ScriptErrorsFrame:SetParent(E.UIParent)
|
||||
ScriptErrorsFrame:SetScale(UIParent:GetScale())
|
||||
|
||||
@@ -7,7 +7,7 @@ local S = E:GetModule("Skins");
|
||||
local SetDressUpBackground = SetDressUpBackground
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.dressingroom ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.dressingroom ~= true then return end
|
||||
|
||||
E:StripTextures(DressUpFrame)
|
||||
E:CreateBackdrop(DressUpFrame, "Transparent")
|
||||
|
||||
@@ -15,7 +15,7 @@ local CUSTOM_CLASS_COLORS = CUSTOM_CLASS_COLORS
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.friends ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.friends ~= true then return end
|
||||
|
||||
-- Friends Frame
|
||||
E:StripTextures(FriendsFrame, true)
|
||||
|
||||
@@ -8,7 +8,7 @@ local _G = _G
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.gossip ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.gossip ~= true then return end
|
||||
|
||||
E:StripTextures(ItemTextFrame, true)
|
||||
E:StripTextures(ItemTextScrollFrame)
|
||||
|
||||
@@ -9,7 +9,7 @@ local find, gsub = string.find, string.gsub
|
||||
local HookScript = HookScript
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.greeting ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.greeting ~= true then return end
|
||||
|
||||
HookScript(QuestFrameGreetingPanel, "OnShow", function()
|
||||
E:StripTextures(QuestFrameGreetingPanel)
|
||||
|
||||
@@ -7,7 +7,7 @@ local _G = _G
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.guildregistrar ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.guildregistrar ~= true then return end
|
||||
|
||||
E:StripTextures(GuildRegistrarFrame, true)
|
||||
E:CreateBackdrop(GuildRegistrarFrame, "Transparent")
|
||||
|
||||
@@ -8,7 +8,7 @@ local getn = table.getn
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.help ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.help ~= true then return end
|
||||
|
||||
local helpFrameButtons = {
|
||||
"GeneralBack",
|
||||
|
||||
@@ -14,7 +14,7 @@ local GetItemQualityColor = GetItemQualityColor
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.inspect then return end
|
||||
if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.inspect then return end
|
||||
|
||||
E:StripTextures(InspectFrame, true)
|
||||
E:CreateBackdrop(InspectFrame, "Transparent")
|
||||
|
||||
@@ -16,8 +16,8 @@ local NUM_GROUP_LOOT_FRAMES = NUM_GROUP_LOOT_FRAMES
|
||||
local LOOT = LOOT
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.general.loot then return end
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.loot ~= true then return end
|
||||
if E.private.general.loot then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.loot ~= true then return end
|
||||
|
||||
E:StripTextures(LootFrame)
|
||||
|
||||
@@ -92,8 +92,8 @@ local function LoadSkin()
|
||||
end
|
||||
|
||||
local function LoadRollSkin()
|
||||
-- if E.private.general.lootRoll then return end
|
||||
-- if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lootRoll then return end
|
||||
if E.private.general.lootRoll then return end
|
||||
if not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lootRoll then return end
|
||||
|
||||
local function OnShow(self)
|
||||
E:SetTemplate(self, "Transparent")
|
||||
|
||||
@@ -9,7 +9,7 @@ local getn = table.getn
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.macro ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.macro ~= true then return end
|
||||
|
||||
E:StripTextures(MacroFrame)
|
||||
E:CreateBackdrop(MacroFrame, "Transparent")
|
||||
|
||||
@@ -14,7 +14,7 @@ local hooksecurefunc = hooksecurefunc
|
||||
local INBOXITEMS_TO_DISPLAY = INBOXITEMS_TO_DISPLAY
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.mail ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.mail ~= true then return end
|
||||
|
||||
-- Inbox Frame
|
||||
E:StripTextures(MailFrame, true)
|
||||
|
||||
@@ -15,7 +15,7 @@ local GetItemLinkByName = GetItemLinkByName
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.merchant ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.merchant ~= true then return end
|
||||
|
||||
E:StripTextures(MerchantFrame, true)
|
||||
E:CreateBackdrop(MerchantFrame, "Transparent")
|
||||
|
||||
@@ -9,7 +9,7 @@ local floor, format = math.floor, string.format
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.mirrorTimers ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.mirrorTimers ~= true then return end
|
||||
|
||||
hooksecurefunc("MirrorTimerFrame_OnUpdate", function(frame, elapsed)
|
||||
if frame.paused then
|
||||
|
||||
@@ -12,7 +12,8 @@ local UnitIsUnit = UnitIsUnit
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.misc ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.misc ~= true then return end
|
||||
|
||||
-- Blizzard frame we want to reskin
|
||||
local skins = {
|
||||
"GameMenuFrame",
|
||||
|
||||
@@ -7,7 +7,7 @@ local _G = _G
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.petition ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.petition ~= true then return end
|
||||
|
||||
E:StripTextures(PetitionFrame, true)
|
||||
E:CreateBackdrop(PetitionFrame, "Transparent")
|
||||
|
||||
@@ -13,7 +13,7 @@ local GetItemQualityColor = GetItemQualityColor
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.quest ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.quest ~= true then return end
|
||||
|
||||
local QuestStrip = {
|
||||
"QuestFrame",
|
||||
|
||||
@@ -7,7 +7,7 @@ local S = E:GetModule("Skins");
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.questtimer ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.questtimers ~= true then return end
|
||||
|
||||
E:StripTextures(QuestTimerFrame)
|
||||
E:SetTemplate(QuestTimerFrame, "Transparent")
|
||||
|
||||
@@ -10,7 +10,7 @@ local pairs = pairs
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.raid ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.raid ~= true then return end
|
||||
|
||||
-- RaidFrame
|
||||
local StripAllTextures = {
|
||||
|
||||
@@ -8,7 +8,7 @@ local unpack = unpack
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.spellbook ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.spellbook ~= true then return end
|
||||
|
||||
E:StripTextures(SpellBookFrame, true)
|
||||
E:CreateBackdrop(SpellBookFrame, "Transparent")
|
||||
|
||||
@@ -11,7 +11,7 @@ local hooksecurefunc = hooksecurefunc
|
||||
local UnitExists = UnitExists
|
||||
|
||||
function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.stable ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.stable ~= true then return end
|
||||
|
||||
E:StripTextures(PetStableFrame)
|
||||
E:Kill(PetStableFramePortrait)
|
||||
|
||||
@@ -8,7 +8,7 @@ local _G = _G
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tabard ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tabard ~= true then return end
|
||||
|
||||
E:StripTextures(TabardFrame)
|
||||
E:Kill(TabardFramePortrait)
|
||||
|
||||
@@ -8,7 +8,7 @@ local unpack = unpack
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.talent ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.talent ~= true then return end
|
||||
|
||||
E:StripTextures(TalentFrame)
|
||||
E:CreateBackdrop(TalentFrame, "Transparent")
|
||||
|
||||
@@ -2,7 +2,7 @@ local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, Profi
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.taxi ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.taxi ~= true then return end
|
||||
|
||||
E:CreateBackdrop(TaxiFrame, "Transparent")
|
||||
TaxiFrame.backdrop:SetPoint("TOPLEFT", 11, -12)
|
||||
|
||||
@@ -9,6 +9,8 @@ local pairs = pairs
|
||||
--WoW API / Variables
|
||||
|
||||
local function LoadSkin()
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tooltip ~= true then return end
|
||||
|
||||
S:HandleCloseButton(ItemRefCloseButton)
|
||||
|
||||
local GameTooltip = _G["GameTooltip"]
|
||||
|
||||
@@ -12,7 +12,7 @@ local GetTradeTargetItemInfo = GetTradeTargetItemInfo
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trade ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trade ~= true then return end
|
||||
|
||||
E:StripTextures(TradeFrame, true)
|
||||
TradeFrame:SetWidth(400)
|
||||
|
||||
@@ -15,7 +15,7 @@ local GetTradeSkillReagentItemLink = GetTradeSkillReagentItemLink
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tradeskill ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tradeskill ~= true then return end
|
||||
|
||||
E:StripTextures(TradeSkillFrame, true)
|
||||
E:CreateBackdrop(TradeSkillFrame, "Transparent")
|
||||
|
||||
@@ -10,7 +10,7 @@ local find = string.find
|
||||
local hooksecurefunc = hooksecurefunc
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trainer ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.trainer ~= true then return end
|
||||
|
||||
E:CreateBackdrop(ClassTrainerFrame, "Transparent")
|
||||
ClassTrainerFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
|
||||
|
||||
@@ -8,7 +8,7 @@ local _G = _G
|
||||
local MAX_TUTORIAL_ALERTS = MAX_TUTORIAL_ALERTS
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tutorial ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.tutorial ~= true then return end
|
||||
|
||||
for i = 1, MAX_TUTORIAL_ALERTS do
|
||||
local button = _G["TutorialFrameAlertButton"..i]
|
||||
|
||||
@@ -2,7 +2,7 @@ local E, L, V, P, G = unpack(ElvUI); --Import: Engine, Locales, PrivateDB, Profi
|
||||
local S = E:GetModule("Skins");
|
||||
|
||||
local function LoadSkin()
|
||||
-- if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.worldmap ~= true then return end
|
||||
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.worldmap ~= true then return end
|
||||
|
||||
E:StripTextures(WorldMapFrame)
|
||||
E:CreateBackdrop(WorldMapPositioningGuide, "Transparent")
|
||||
|
||||
Reference in New Issue
Block a user