Commit cbf69154 authored by Merathilis's avatar Merathilis

Added skin for EventTracker.

Some code adjustments.
parent b7831f3e
......@@ -542,6 +542,8 @@ L["MerathilisUI Shadows"] = "MerathilisUI Schatten"
L["Undress Button"] = "Ausziehen Taste"
L["Subpages"] = "Unterseiten"
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = "Unterseiten sind Blöcke von 10 Gegenständen pro Seite. Diese Option setzt wieviele Unterseiten angezeigt werden."
L["Enable/Disable"] = "Aktiviere/Deaktiviere"
L["decor."] = "Dekor"
-- Profiles
L["MER_PROFILE_DESC"] = [[Dieser Abschnitt erstellt Profile für einige AddOns.
......
......@@ -546,6 +546,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -544,6 +544,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -545,6 +545,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -541,6 +541,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -543,6 +543,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -542,6 +542,8 @@ L["MerathilisUI Shadows"] = "MerathilisUI 阴影"
L["Undress Button"] = "解除装备按钮"
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[这个部分将为某些插件创建配置文件.
......
......@@ -543,6 +543,8 @@ L["MerathilisUI Shadows"] = true
L["Undress Button"] = true
L["Subpages"] = true
L["Subpages are blocks of 10 items. This option set how many of subpages will be shown on a single page."] = true
L["Enable/Disable"] = true
L["decor."] = true
-- Profiles
L["MER_PROFILE_DESC"] = [[This section creates Profiles for some AddOns.
......
......@@ -70,4 +70,57 @@ function MERC:ChatFilter()
ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT", self.UpdateChatItemLevel)
ChatFrame_AddMessageEventFilter("CHAT_MSG_INSTANCE_CHAT_LEADER", self.UpdateChatItemLevel)
end
if E.db.mui.chat.filter.enable and E.db.mui.chat.filter.lootMessages then
-- Probably breaks other AddOns :> always a bad idea to replace Blizzards Globals
_G.CURRENCY_GAINED = "+ %s"
_G.CURRENCY_GAINED_MULTIPLE = "+ %sx%d"
_G.CURRENCY_GAINED_MULTIPLE_BONUS = "+ %sx%d (Bonus)"
_G.CURRENCY_LOST_FROM_DEATH = "- %sx%d"
_G.LOOT_CURRENCY_REFUND = "+ %sx%d"
_G.LOOT_DISENCHANT_CREDIT = "- %s : %s (Disenchant)"
_G.LOOT_ITEM = "+ %s : %s"
_G.LOOT_ITEM_BONUS_ROLL = "+ %s : %s (Bonus)"
_G.LOOT_ITEM_BONUS_ROLL_MULTIPLE = "+ %s : %sx%d (Bonus)"
_G.LOOT_ITEM_BONUS_ROLL_SELF = "+ %s (Bonus)"
_G.LOOT_ITEM_BONUS_ROLL_SELF_MULTIPLE = "+ %sx%d (Bonus)"
_G.LOOT_ITEM_CREATED_SELF = "+ %s (Craft)"
_G.LOOT_ITEM_CREATED_SELF_MULTIPLE = "+ %sx%d (Craft)"
_G.LOOT_ITEM_CREATED = "+ %s : %s (Craft)"
_G.LOOT_ITEM_CREATED_MULTIPLE = "+ %s : %sx%d (Craft)"
_G.LOOT_ITEM_MULTIPLE = "+ %s : %sx%d"
_G.LOOT_ITEM_PUSHED = "+ %s : %s"
_G.LOOT_ITEM_PUSHED_MULTIPLE = "+ %s : %sx%d"
_G.LOOT_ITEM_PUSHED_SELF = "+ %s"
_G.LOOT_ITEM_PUSHED_SELF_MULTIPLE = "+ %sx%d"
_G.LOOT_ITEM_REFUND = "+ %s"
_G.LOOT_ITEM_REFUND_MULTIPLE = "+ %sx%d"
_G.LOOT_ITEM_SELF = "+ %s"
_G.LOOT_ITEM_SELF_MULTIPLE = "+ %sx%d"
_G.LOOT_ITEM_WHILE_PLAYER_INELIGIBLE = "+ %s : %s"
_G.GUILD_NEWS_FORMAT4 = "+ %s : %s (Craft)"
_G.GUILD_NEWS_FORMAT8 = "+ %s : %s"
_G.CREATED_ITEM = "+ %s : %s (Craft)";
_G.CREATED_ITEM_MULTIPLE = "+ %s : %sx%d (Craft)"
_G.YOU_LOOT_MONEY = "+ %s"
_G.YOU_LOOT_MONEY_GUILD = "+ %s (%s Guild)"
_G.TRADESKILL_LOG_FIRSTPERSON = "+ %s : %s (Craft)"
_G.TRADESKILL_LOG_THIRDPERSON = "+ %s : %s (Craft)"
_G.COMBATLOG_XPGAIN_EXHAUSTION1 = "%s : +%d xp (%s bonus %s)"
_G.COMBATLOG_XPGAIN_EXHAUSTION1_GROUP = "%s : +%d xp (%s bonus %s, +%d group)"
_G.COMBATLOG_XPGAIN_EXHAUSTION1_RAID = "%s : +%d xp (%s bonus %s, -%d raid)"
_G.COMBATLOG_XPGAIN_EXHAUSTION2 = "%s : +%d xp (%s bonus %s)";
_G.COMBATLOG_XPGAIN_EXHAUSTION2_GROUP = "%s : +%d xp (%s bonus %s, +%d group)";
_G.COMBATLOG_XPGAIN_EXHAUSTION2_RAID = "%s : +%d xp (%s bonus %s, -%d raid)";
_G.COMBATLOG_XPGAIN_EXHAUSTION4 = "%s : +%d xp (%s penalty %s)";
_G.COMBATLOG_XPGAIN_EXHAUSTION4_GROUP = "%s : +%d xp (%s penalty %s, +%d group)";
_G.COMBATLOG_XPGAIN_EXHAUSTION4_RAID = "%s : +%d xp (%s xp %s, -%d raid)";
_G.COMBATLOG_XPGAIN_EXHAUSTION5 = "%s : +%d xp (%s penalty %s)";
_G.COMBATLOG_XPGAIN_EXHAUSTION5_GROUP = "%s : +%d xp (%s penalty %s, +%d group)";
_G.COMBATLOG_XPGAIN_EXHAUSTION5_RAID = "%s : +%d xp (%s penalty %s, -%d raid)";
_G.COMBATLOG_XPGAIN_FIRSTPERSON = "%s : +%d xp.";
_G.COMBATLOG_XPGAIN_FIRSTPERSON_GROUP = "%s : +%d xp (+%d group)";
_G.COMBATLOG_XPGAIN_FIRSTPERSON_RAID = "%s : +%d xp (-%d raid)";
end
end
......@@ -10,7 +10,7 @@ local function ChatTable()
E.Options.args.mui.args.modules.args.chat = {
order = 11,
type = "group",
name = L["Chat"],
name = E.NewSign..L["Chat"],
get = function(info) return E.db.mui.chat[ info[#info] ] end,
set = function(info, value) E.db.mui.chat[ info[#info] ] = value; E:StaticPopup_Show("PRIVATE_RL"); end,
args = {
......@@ -49,7 +49,7 @@ local function ChatTable()
name = L["Emotes"],
},
filter = {
order = 7,
order = 20,
type = "group",
name = L["Filter"],
guiInline = true,
......@@ -67,6 +67,13 @@ local function ChatTable()
name = L["Item Level"],
disabled = function() return not E.db.mui.chat.filter.enable end,
},
lootMessages = {
order = 2,
type = "toggle",
name = E.NewSign..L["Loot Filter"],
desc = L["Simpler and lighter Loot Messages"],
disabled = function() return not E.db.mui.chat.filter.enable end,
},
},
},
},
......
......@@ -9,7 +9,7 @@ local pairs = pairs
-- WoW API / Variables
-- GLOBALS:
local function styleActionBarProfile()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.abp ~= true then return; end
S:HandleScrollBar(_G.PaperDollActionBarProfilesPaneScrollBar, 5)
......@@ -42,4 +42,4 @@ local function styleActionBarProfile()
S:HandleCheckBox(_G.PaperDollActionBarProfilesSaveDialogOptionBindings)
end
S:AddCallbackForAddon("ActionBarProfiles", "mUIActionBarProfiles", styleActionBarProfile)
S:AddCallbackForAddon("ActionBarProfiles", "mUIActionBarProfiles", LoadAddOnSkin)
......@@ -10,7 +10,7 @@ local pairs = pairs
local CreateFrame = CreateFrame
-- GLOBALS:
local function styleBenikUI()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.bui ~= true then return; end
local BuiLeftChatDTPanel = _G.BuiLeftChatDTPanel
......@@ -49,4 +49,4 @@ local function styleBenikUI()
end)
end
S:AddCallbackForAddon("ElvUI_BenikUI", "mUIBenikUI", styleBenikUI)
S:AddCallbackForAddon("ElvUI_BenikUI", "mUIBenikUI", LoadAddOnSkin)
......@@ -11,36 +11,36 @@ local pairs = pairs
local hooksecurefunc = hooksecurefunc
-- GLOBALS: BugSack, BugSackFrame, BugSackTabAll
local function styleBugSack()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.bs ~= true then return end
hooksecurefunc(BugSack, "OpenSack", function()
if not BugSack.IsSkinned then
BugSackFrame:StripTextures()
hooksecurefunc(_G.BugSack, "OpenSack", function()
if not _G.BugSack.IsSkinned then
_G.BugSackFrame:StripTextures()
BugSackFrame:CreateBackdrop("Transparent")
BugSackFrame.backdrop:Styling()
_G.BugSackFrame:CreateBackdrop("Transparent")
_G.BugSackFrame.backdrop:Styling()
BugSackTabAll:ClearAllPoints()
BugSackTabAll:SetPoint("TOPLEFT", BugSackFrame, "BOTTOMLEFT", 0, -1)
_G.BugSackTabAll:ClearAllPoints()
_G.BugSackTabAll:SetPoint("TOPLEFT", _G.BugSackFrame, "BOTTOMLEFT", 0, -1)
S:HandleTab(BugSackTabAll)
S:HandleTab(BugSackTabSession)
S:HandleTab(BugSackTabLast)
S:HandleScrollBar(BugSackScrollScrollBar)
S:HandleButton(BugSackNextButton)
S:HandleButton(BugSackSendButton)
S:HandleButton(BugSackPrevButton)
S:HandleTab(_G.BugSackTabAll)
S:HandleTab(_G.BugSackTabSession)
S:HandleTab(_G.BugSackTabLast)
S:HandleScrollBar(_G.BugSackScrollScrollBar)
S:HandleButton(_G.BugSackNextButton)
S:HandleButton(_G.BugSackSendButton)
S:HandleButton(_G.BugSackPrevButton)
for _, child in pairs({ BugSackFrame:GetChildren() }) do
if (child:IsObjectType("Button") and child:GetScript("OnClick") == BugSack.CloseSack) then
for _, child in pairs({ _G.BugSackFrame:GetChildren() }) do
if (child:IsObjectType("Button") and child:GetScript("OnClick") == _G.BugSack.CloseSack) then
S:HandleCloseButton(child)
end
end
BugSack.IsSkinned = true
_G.BugSack.IsSkinned = true
end
end)
end
S:AddCallbackForAddon("BugSack", "mUIBugSack", styleBugSack)
S:AddCallbackForAddon("BugSack", "mUIBugSack", LoadAddOnSkin)
......@@ -6,67 +6,68 @@ if not IsAddOnLoaded("Clique") then return; end
-- Cache global variables
-- Lua functions
local _G = _G
local unpack = unpack
-- WoW API / Variables
-- GLOBALS: hooksecurefunc, BugSack
local function styleClique(event, addon)
local function LoadAddOnSkin(event, addon)
if E.private.muiSkins.addonSkins.cl ~= true then return end
CliqueConfig:StripTextures()
CliqueConfig:CreateBackdrop("Transparent")
CliqueConfig.backdrop:Styling()
_G.CliqueConfig:StripTextures()
_G.CliqueConfig:CreateBackdrop("Transparent")
_G.CliqueConfig.backdrop:Styling()
CliqueConfigPage1Column1:StripTextures()
CliqueConfigPage1Column2:StripTextures()
CliqueConfigInset:StripTextures()
CliqueConfigPage1_VSlider:StripTextures()
_G.CliqueConfigPage1Column1:StripTextures()
_G.CliqueConfigPage1Column2:StripTextures()
_G.CliqueConfigInset:StripTextures()
_G.CliqueConfigPage1_VSlider:StripTextures()
CliqueClickGrabber:StripTextures()
CliqueClickGrabber:CreateBackdrop("Overlay")
CliqueClickGrabber.backdrop:SetPoint("TOPLEFT", -1, 0)
CliqueClickGrabber.backdrop:SetPoint("BOTTOMRIGHT", 2, 3)
_G.CliqueClickGrabber:StripTextures()
_G.CliqueClickGrabber:CreateBackdrop("Overlay")
_G.CliqueClickGrabber.backdrop:SetPoint("TOPLEFT", -1, 0)
_G.CliqueClickGrabber.backdrop:SetPoint("BOTTOMRIGHT", 2, 3)
CliqueDialog:StripTextures()
CliqueDialog:SetTemplate("Transparent")
_G.CliqueDialog:StripTextures()
_G.CliqueDialog:SetTemplate("Transparent")
CliqueConfigCloseButton:StripTextures()
S:HandleCloseButton(CliqueConfigCloseButton)
if CliqueDialog.CloseButton then S:HandleCloseButton(CliqueDialog.CloseButton) end
if CliqueDialogCloseButton then S:HandleCloseButton(CliqueDialogCloseButton) end
_G.CliqueConfigCloseButton:StripTextures()
S:HandleCloseButton(_G.CliqueConfigCloseButton)
if _G.CliqueDialog.CloseButton then S:HandleCloseButton(_G.CliqueDialog.CloseButton) end
if _G.CliqueDialogCloseButton then S:HandleCloseButton(_G.CliqueDialogCloseButton) end
MERS:Reskin(CliqueConfigPage1ButtonOptions)
MERS:Reskin(CliqueConfigPage1ButtonOther)
MERS:Reskin(CliqueConfigPage1ButtonSpell)
MERS:Reskin(CliqueConfigPage2ButtonBinding)
MERS:Reskin(CliqueConfigPage2ButtonSave)
MERS:Reskin(CliqueConfigPage2ButtonCancel)
MERS:Reskin(CliqueDialogButtonBinding)
MERS:Reskin(CliqueDialogButtonAccept)
MERS:Reskin(_G.CliqueConfigPage1ButtonOptions)
MERS:Reskin(_G.CliqueConfigPage1ButtonOther)
MERS:Reskin(_G.CliqueConfigPage1ButtonSpell)
MERS:Reskin(_G.CliqueConfigPage2ButtonBinding)
MERS:Reskin(_G.CliqueConfigPage2ButtonSave)
MERS:Reskin(_G.CliqueConfigPage2ButtonCancel)
MERS:Reskin(_G.CliqueDialogButtonBinding)
MERS:Reskin(_G.CliqueDialogButtonAccept)
CliqueSpellTab:GetRegions():SetSize(0.1, 0.1)
CliqueSpellTab:GetNormalTexture():SetTexCoord(0.1, 0.9, 0.1, 0.9)
CliqueSpellTab:GetNormalTexture():ClearAllPoints()
CliqueSpellTab:GetNormalTexture():SetPoint("TOPLEFT", 2, -2)
CliqueSpellTab:GetNormalTexture():SetPoint("BOTTOMRIGHT", -2, 2)
CliqueSpellTab:CreateBackdrop("Default")
CliqueSpellTab.backdrop:SetAllPoints()
CliqueSpellTab:StyleButton()
_G.CliqueSpellTab:GetRegions():SetSize(0.1, 0.1)
_G.CliqueSpellTab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
_G.CliqueSpellTab:GetNormalTexture():ClearAllPoints()
_G.CliqueSpellTab:GetNormalTexture():SetPoint("TOPLEFT", 2, -2)
_G.CliqueSpellTab:GetNormalTexture():SetPoint("BOTTOMRIGHT", -2, 2)
_G.CliqueSpellTab:CreateBackdrop("Default")
_G.CliqueSpellTab.backdrop:SetAllPoints()
_G.CliqueSpellTab:StyleButton()
CliqueConfigPage1:SetScript("OnShow", function(self)
_G.CliqueConfigPage1:SetScript("OnShow", function(self)
for i = 1, 12 do
if _G["CliqueRow"..i] then
_G["CliqueRow"..i.."Icon"]:SetTexCoord(0.1, 0.9, 0.1, 0.9)
_G["CliqueRow"..i.."Icon"]:SetTexCoord(unpack(E.TexCoords))
_G["CliqueRow"..i.."Bind"]:ClearAllPoints()
if _G["CliqueRow"..i] == CliqueRow1 then
if _G["CliqueRow"..i] == _G.CliqueRow1 then
_G["CliqueRow"..i.."Bind"]:SetPoint("RIGHT", _G["CliqueRow"..i], 8, 0)
else
_G["CliqueRow"..i.."Bind"]:SetPoint("RIGHT", _G["CliqueRow"..i], -8, 0)
end
end
end
CliqueRow1:ClearAllPoints()
CliqueRow1:SetPoint("TOPLEFT", 5, -(CliqueConfigPage1Column1:GetHeight() + 3))
_G.CliqueRow1:ClearAllPoints()
_G.CliqueRow1:SetPoint("TOPLEFT", 5, -(_G.CliqueConfigPage1Column1:GetHeight() + 3))
end)
end
S:AddCallbackForAddon("BugSack", "mUIClique", styleClique)
S:AddCallbackForAddon("BugSack", "mUIClique", LoadAddOnSkin)
......@@ -9,11 +9,10 @@ local _G = _G
-- WoW API / Variables
local hooksecurefunc = hooksecurefunc
if not COMP.AS then return end
local AS = unpack(AddOnSkins)
local function DbmDecor(event)
local function LoadAddOnSkin(event)
if E.private.muiSkins.addonSkins.dbm ~= true then return end
local function StyleRangeFrame(self, range, filter, forceshow, redCircleNumPlayers)
......@@ -47,4 +46,4 @@ local function DbmDecor(event)
hooksecurefunc(DBM.InfoFrame, 'Show', StyleInfoFrame)
end
if AS:CheckAddOn('DBM-Core') then AS:RegisterSkin('DBM', DbmDecor, 'ADDON_LOADED') end
if AS:CheckAddOn('DBM-Core') then AS:RegisterSkin('DBM', LoadAddOnSkin, 'ADDON_LOADED') end
local MER, E, L, V, P, G = unpack(select(2, ...))
local S = E:GetModule("Skins")
-- Cache global variables
-- Lua functions
local _G = _G
-- WoW API / Variables
-- GLOBALS:
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.et ~= true then return end
-- Main Frame
local frame = _G.EventTrackerFrame
frame:StripTextures()
frame:CreateBackdrop('Transparent')
frame.backdrop:Styling()
_G.EventTrackerFrameBorder:CreateBackdrop('Transparent')
S:HandleScrollBar(_G.EventTracker_DetailsScrollBar)
S:HandleButton(_G.ExpandCollapseButton)
S:HandleButton(_G.EventTrackerFrameOnOffButton)
S:HandleButton(_G.EventTrackerFramePurgeButton)
S:HandleButton(_G.EventTrackerFrameCloseButton)
-- Details Frame
_G.EventDetailFrame:ClearAllPoints()
_G.EventDetailFrame:SetPoint("LEFT", frame, "RIGHT", 3, 0)
_G.EventDetailFrame:StripTextures()
_G.EventDetailFrame:CreateBackdrop('Transparent')
_G.EventDetailFrame.backdrop:Styling()
_G.Event_Argument_Frame:StripTextures()
_G.Event_Argument_FrameTexture:CreateBackdrop('Transparent')
S:HandleScrollBar(_G.EventTracker_ArgumentsScrollBar)
_G.Event_Frame_Frame:StripTextures()
_G.Event_Frame_FrameTexture:CreateBackdrop('Transparent')
S:HandleScrollBar(_G.EventTracker_FramesScrollBar)
end
S:AddCallbackForAddon('EventTracker', 'ADDON_LOADED', LoadAddOnSkin)
......@@ -8,7 +8,7 @@ local _G = _G
local IsAddOnLoaded = IsAddOnLoaded
-- GLOBALS:
local function stylePostal()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.bs ~= true or not IsAddOnLoaded("Postal") then return end
if _G.PostalOpenAllButton then
......@@ -43,4 +43,4 @@ local function stylePostal()
end
end
S:AddCallbackForAddon("Postal", "mUIPostal", stylePostal)
S:AddCallbackForAddon("Postal", "mUIPostal", LoadAddOnSkin)
......@@ -9,7 +9,7 @@ local _G = _G
-- WoW API / Variables
-- GLOBALS:
local function styleXIV_Databar()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.xiv ~= true then return end
local XIV_Databar = _G.XIV_Databar
......@@ -24,4 +24,4 @@ local function styleXIV_Databar()
_G.portPopup:SetTemplate("Transparent")
end
S:AddCallbackForAddon("XIV_Databar", "mUIXIV_Databar", styleXIV_Databar)
S:AddCallbackForAddon("XIV_Databar", "mUIXIV_Databar", LoadAddOnSkin)
......@@ -8,7 +8,7 @@ local _G = _G
-- WoW API / Variables
-- GLOBALS: hooksecurefunc, BugSack
local function stylecargBags()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.cbn ~= true then return end
-- Default Containers from cargBags_Nivaya
......@@ -43,4 +43,4 @@ local function stylecargBags()
end
end
S:AddCallbackForAddon("cargBags_Nivaya", "mui_cargBags_Nivaya", stylecargBags)
S:AddCallbackForAddon("cargBags_Nivaya", "mui_cargBags_Nivaya", LoadAddOnSkin)
......@@ -6,6 +6,7 @@
<Script file="cargBags_Nivaya.lua"/>
<Script file="Clique.lua"/>
<Script file="DeadlyBossMods.lua"/>
<Script file="EventTracker.lua"/>
<Script file="ls_Toasts.lua"/>
<Script file="Pawn.lua"/>
<Script file="Postal.lua"/>
......
......@@ -9,7 +9,7 @@ local CreateFrame = CreateFrame
-- WoW API / Variables
-- GLOBALS:
local function styleProjectAzilroka()
local function LoadAddOnSkin()
if E.private.muiSkins.addonSkins.pa ~= true then return end
local f = CreateFrame("Frame")
......@@ -26,4 +26,4 @@ local function styleProjectAzilroka()
end)
end
S:AddCallbackForAddon("ProjectAzilroka", "ADDON_LOADED", styleProjectAzilroka)
S:AddCallbackForAddon("ProjectAzilroka", "ADDON_LOADED", LoadAddOnSkin)
......@@ -14,13 +14,14 @@ local DecorAddons = {
{"ActionBarProfiles", L["ActonBarProfiles"], "abp"},
{"BigWigs", L["BigWigs"], "bw"},
{"ElvUI_BenikUI", L["BenikUI"], "bui"},
{"BugSack", L["BugSack"], "bs"},
{"BugSack", L["BugSack"], "bs",},
{"ProjectAzilroka", L["ProjectAzilroka"], "pa"},
{"Postal", L["Postal"], "po"},
{"ls_Toasts", L["ls_Toasts"], "ls"},
{"DBM-Core", L["Deadly Boss Mods"], "dbm"},
{"Clique", L["Clique"], "cl"},
{"cargBags_Nivaya", L["cargBags_Nivaya"], "cbn"}
{"cargBags_Nivaya", L["cargBags_Nivaya"], "cbn"},
{"EventTracker", L["EventTracker"], "et"},
}
local SupportedProfiles = {
......@@ -146,11 +147,12 @@ local function SkinsTable()
local addorder = 3
for i, v in ipairs(DecorAddons) do
local addonName, addonString, addonOption = unpack( v )
local addonName, addonString, addonOption, Notes = unpack(v)
E.Options.args.mui.args.skins.args.addonskins.args[addonOption] = {
order = addorder + 1,
type = "toggle",
name = addonString,
desc = format('%s '..addonString..' %s', L["Enable/Disable"], L["decor."]),
disabled = function() return not IsAddOnLoaded(addonName) end,
}
end
......@@ -216,7 +218,7 @@ local function SkinsTable()
},
garrison = {
type = "toggle",
name = GARRISON_LOCATION_TOOLTIP,
name = _G.GARRISON_LOCATION_TOOLTIP,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.garrison end,
},
orderhall = {
......@@ -226,17 +228,17 @@ local function SkinsTable()
},
talent = {
type = "toggle",
name = TALENTS,
name = _G.TALENTS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.talent end,
},
auctionhouse = {
type = "toggle",
name = AUCTIONS,
name = _G.AUCTIONS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.auctionhouse end,
},
friends = {
type = "toggle",
name = FRIENDS,
name = _G.FRIENDS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.friends end,
},
contribution = {
......@@ -246,12 +248,12 @@ local function SkinsTable()
},
artifact = {
type = "toggle",
name = ITEM_QUALITY6_DESC,
name = _G.ITEM_QUALITY6_DESC,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.artifact end,
},
collections = {
type = "toggle",
name = COLLECTIONS,
name = _G.COLLECTIONS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.collections end,
},
calendar = {
......@@ -266,7 +268,7 @@ local function SkinsTable()
},
worldmap = {
type = "toggle",
name = WORLD_MAP,
name = _G.WORLD_MAP,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.worldmap end,
},
pvp = {
......@@ -276,17 +278,17 @@ local function SkinsTable()
},
achievement = {
type = "toggle",
name = ACHIEVEMENTS,
name = _G.ACHIEVEMENTS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.achievement end,
},
tradeskill = {
type = "toggle",
name = TRADESKILLS,
name = _G.TRADESKILLS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.tradeskill end,
},
lfg = {
type = "toggle",
name = LFG_TITLE,
name = _G.LFG_TITLE,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.lfg end,
},
lfguild = {
......@@ -301,12 +303,12 @@ local function SkinsTable()
},
guild = {
type = "toggle",
name = GUILD,
name = _G.GUILD,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.guild end,
},
objectiveTracker = {
type = "toggle",
name = OBJECTIVES_TRACKER_LABEL,
name = _G.OBJECTIVES_TRACKER_LABEL,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.objectiveTracker end,
},
addonManager = {
......@@ -326,17 +328,17 @@ local function SkinsTable()
},
dressingroom = {
type = "toggle",
name = DRESSUP_FRAME,
name = _G.DRESSUP_FRAME,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.dressingroom end,
},
timemanager = {
type = "toggle",
name = TIMEMANAGER_TITLE,
name = _G.TIMEMANAGER_TITLE,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.timemanager end,
},
blackmarket = {
type = "toggle",
name = BLACK_MARKET_AUCTION_HOUSE,
name = _G.BLACK_MARKET_AUCTION_HOUSE,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.bmah end,
},
guildcontrol = {
......@@ -346,22 +348,22 @@ local function SkinsTable()
},
macro = {
type = "toggle",
name = MACROS,
name = _G.MACROS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.macro end,
},
binding = {
type = "toggle",
name = KEY_BINDING,
name = _G.KEY_BINDING,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.binding end,
},
gbank = {
type = "toggle",
name = GUILD_BANK,
name = _G.GUILD_BANK,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.gbank end,
},
taxi = {
type = "toggle",
name = FLIGHT_MAP,
name = _G.FLIGHT_MAP,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.taxi end,
},
help = {
......@@ -381,7 +383,7 @@ local function SkinsTable()
},
deathRecap = {
type = "toggle",
name = DEATH_RECAP_TITLE,
name = _G.DEATH_RECAP_TITLE,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.deathRecap end,
},
questPOI = {
......@@ -391,17 +393,17 @@ local function SkinsTable()
},
channels = {
type = "toggle",
name = CHANNELS,
name = _G.CHANNELS,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.Channels end,
},
communities = {
type = "toggle",
name = COMMUNITIES,
name = _G.COMMUNITIES,
disabled = function() return not E.private.skins.blizzard.enable or not E.private.skins.blizzard.Communities end,
},
challenges = {
type = "toggle",
name = <