This commit is contained in:
Bunny67
2017-12-31 03:38:51 +03:00
parent f5b845f338
commit 8b07ab014f
5 changed files with 10 additions and 21 deletions
@@ -4,7 +4,6 @@ local DT = E:GetModule("DataTexts");
--Cache global variables
--Lua functions
local collectgarbage = collectgarbage
local sort, wipe = table.sort, wipe
local floor = math.floor
local format = string.format
local gcinfo = gcinfo
@@ -12,7 +11,7 @@ local gcinfo = gcinfo
local GetNetStats = GetNetStats
local GetFramerate = GetFramerate
local int, int2 = 6, 5
local int = 6
local statusColors = {
"|cff0CD809",
"|cffE8DA0F",
@@ -5,7 +5,6 @@ local S = E:GetModule("Skins");
--Lua functions
local _G = _G
local unpack = unpack
local getn = table.getn
--WoW API / Variables
local function LoadSkin()
@@ -42,17 +41,11 @@ local function LoadSkin()
button:GetNormalTexture():SetTexture("")
button:GetPushedTexture():SetTexture("")
if iconTexture then
iconTexture:SetTexCoord(unpack(E.TexCoords))
E:CreateBackdrop(button, "Default", true)
if not button.backdrop then
E:CreateBackdrop(button, "Default", true)
end
end
iconTexture:SetTexCoord(unpack(E.TexCoords))
if cooldown then
E:RegisterCooldown(cooldown)
end
E:RegisterCooldown(cooldown)
end
hooksecurefunc("SpellButton_UpdateButton", function()
@@ -75,9 +68,9 @@ local function LoadSkin()
for i = 1, MAX_SKILLLINE_TABS do
local tab = _G["SpellBookSkillLineTab"..i]
E:StripTextures(tab)
E:StyleButton(tab, nil, true)
tab:DisableDrawLayer("BACKGROUND")
E:SetTemplate(tab, "Default", true)
E:StyleButton(tab, nil, true)
tab:GetNormalTexture():SetTexCoord(unpack(E.TexCoords))
E:SetInside(tab:GetNormalTexture())
+2 -2
View File
@@ -571,7 +571,7 @@ function S:Initialize()
if IsAddOnLoaded(addon) then
self.addonsToLoad[addon] = nil
local _, catch = pcall(loadFunc)
if catch and GetCVarBool("scriptErrors") == "1" then
if catch and GetCVarBool("ShowErrors") == "1" then
ScriptErrorsFrame_OnError(catch, false)
end
end
@@ -579,7 +579,7 @@ function S:Initialize()
for _, loadFunc in pairs(self.nonAddonsToLoad) do
local _, catch = pcall(loadFunc)
if catch and GetCVarBool("scriptErrors") == "1" then
if catch and GetCVarBool("ShowErrors") == "1" then
ScriptErrorsFrame_OnError(catch, false)
end
end