Commit fd8736a7 authored by Merathilis's avatar Merathilis
Browse files

Add/update some upvalues in the skins. Not all, but a lot.

parent 25ba7c88
......@@ -3,9 +3,10 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local pairs, unpack = pairs, unpack
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
......@@ -13,6 +14,7 @@ local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.AdventureMap ~= true then return end
--Quest Choise
local AdventureMapQuestChoiceDialog = _G["AdventureMapQuestChoiceDialog"]
AdventureMapQuestChoiceDialog:StripTextures()
AdventureMapQuestChoiceDialog:CreateBackdrop("Transparent")
AdventureMapQuestChoiceDialog.backdrop:SetFrameStrata("LOW")
......
......@@ -4,6 +4,8 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local select = select
local getn = getn
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
......@@ -46,6 +48,7 @@ local function LoadSkin()
ReportCheatingDialog:SetTemplate("Transparent")
S:HandleEditBox(ReportCheatingDialogCommentFrameEditBox)
local BattleTagInviteFrame = _G["BattleTagInviteFrame"]
BattleTagInviteFrame:StripTextures()
BattleTagInviteFrame:SetTemplate('Transparent')
--S:HandleEditBox(BattleTagInviteFrameScrollFrame)
......
......@@ -4,7 +4,11 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.Contribution ~= true then return end
......
......@@ -3,6 +3,7 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: ObliterumForgeFrame, ObliterumForgeFramePortrait, ObliterumForgeFramePortraitFrame, ObliterumForgeFrameBg
......@@ -13,6 +14,7 @@ local function LoadSkin()
-- Obliterum Forge UI (Legion)
-- The frame looks really good, just set the template to transparent.
local ObliterumForgeFrame = _G["ObliterumForgeFrame"]
ObliterumForgeFrame:SetTemplate("Transparent")
ObliterumForgeFrameInset:Hide()
ObliterumForgeFramePortrait:Hide()
......
......@@ -4,7 +4,15 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local unpack, pairs = unpack, pairs
local pairs, select, unpack = pairs, select, unpack
--WoW API / Variables
local GetAchievementCriteriaInfo = GetAchievementCriteriaInfo
local GetAchievementNumCriteria = GetAchievementNumCriteria
local hooksecurefunc = hooksecurefunc
local IsAddOnLoaded = IsAddOnLoaded
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: ACHIEVEMENTUI_BLUEBORDER_R, ACHIEVEMENTUI_BLUEBORDER_G, ACHIEVEMENTUI_BLUEBORDER_B
-- GLOBALS: ACHIEVEMENTUI_MAX_SUMMARY_ACHIEVEMENTS, CRITERIA_TYPE_ACHIEVEMENT
local function LoadSkin(event)
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.achievement ~= true then return end
......@@ -144,6 +152,7 @@ local function LoadSkin(event)
end
end
local AchievementFrame = _G["AchievementFrame"]
AchievementFrame:CreateBackdrop("Transparent")
AchievementFrame.backdrop:Point("TOPLEFT", 0, 6)
AchievementFrame.backdrop:Point("BOTTOMRIGHT")
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: MAX_ADDONS_DISPLAYED
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.addonManager ~= true then return end
--Addon List (From AddOnSkins)
local AddonList = _G["AddonList"]
AddonList:StripTextures()
AddonList:SetTemplate("Transparent")
AddonListInset:StripTextures()
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local pairs, unpack, select = pairs, unpack, select
--WoW API / Variables
local CreateFrame = CreateFrame
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: UIParent, ARCHAEOLOGY_MAX_RACES, UIPARENT_MANAGED_FRAME_POSITIONS
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.archaeology ~= true then return end
local ArchaeologyFrame = _G["ArchaeologyFrame"]
ArchaeologyFrame:StripTextures()
ArchaeologyFrameInset:StripTextures()
ArchaeologyFrame:CreateBackdrop("Transparent")
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.artifact ~= true then return end
local ArtifactFrame = _G["ArtifactFrame"]
ArtifactFrame:StripTextures()
ArtifactFrame:CreateBackdrop("Transparent")
ArtifactFrame.BorderFrame:StripTextures()
......@@ -13,6 +23,7 @@ local function LoadSkin()
S:HandleTab(_G["ArtifactFrameTab" .. i])
end
local ArtifactFrameTab1 = _G["ArtifactFrameTab1"]
ArtifactFrameTab1:ClearAllPoints()
ArtifactFrameTab1:SetPoint("TOPLEFT", ArtifactFrame, "BOTTOMLEFT", 0, 0)
......@@ -21,11 +32,12 @@ local function LoadSkin()
ArtifactFrame.ForgeBadgeFrame.ForgeLevelBackground:SetPoint("TOPLEFT", ArtifactFrame)
-- Netherlight Crucible
local ArtifactRelicForgeFrame = _G["ArtifactRelicForgeFrame"]
ArtifactRelicForgeFrame:StripTextures()
ArtifactRelicForgeFrame:CreateBackdrop("Transparent")
ArtifactRelicForgeFrame.PreviewRelicFrame:StripTextures()
ArtifactRelicForgeFrame.PreviewRelicCover:StripTextures()
S:HandleCloseButton(ArtifactRelicForgeFrameCloseButton)
S:HandleCloseButton(_G["ArtifactRelicForgeFrameCloseButton"])
end
S:AddCallbackForAddon("Blizzard_ArtifactUI", "Artifact", LoadSkin)
\ No newline at end of file
......@@ -3,8 +3,11 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local unpack, select = unpack, select
local _G = _G
local pairs, unpack, select = pairs, unpack, select
--WoW API / Variables
local hooksecurefunc = hooksecurefunc
local CreateFrame = CreateFrame
local GetAuctionSellItemInfo = GetAuctionSellItemInfo
local BAG_ITEM_QUALITY_COLORS = BAG_ITEM_QUALITY_COLORS
......@@ -13,6 +16,7 @@ local function LoadSkin()
S:HandleCloseButton(AuctionFrameCloseButton)
S:HandleScrollBar(AuctionsScrollFrameScrollBar)
local AuctionFrame = _G["AuctionFrame"]
AuctionFrame:StripTextures(true)
AuctionFrame:SetTemplate("Transparent")
......
......@@ -6,15 +6,20 @@ local S = E:GetModule('Skins')
local _G = _G
local unpack, select = unpack, select
--WoW API / Variables
local CreateFrame = CreateFrame
local GetItemInfo = GetItemInfo
local GetItemQualityColor = GetItemQualityColor
local GetContainerItemInfo = GetContainerItemInfo
local GetContainerItemQuestInfo = GetContainerItemQuestInfo
local GetInventoryItemTexture = GetInventoryItemTexture
local GetInventorySlotInfo = GetInventorySlotInfo
local hooksecurefunc = hooksecurefunc
local MAX_WATCHED_TOKENS = MAX_WATCHED_TOKENS
local TEXTURE_ITEM_QUEST_BORDER = TEXTURE_ITEM_QUEST_BORDER
local NUM_CONTAINER_FRAMES = NUM_CONTAINER_FRAMES
local QUESTS_LABEL = QUESTS_LABEL
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bags ~= true or E.private.bags.enable then return end
......@@ -140,6 +145,7 @@ local function LoadSkin()
end
--Bank
local BankFrame = _G["BankFrame"]
hooksecurefunc("BankFrameItemButton_Update", function(button)
if not BankFrame.backdrop then
BankFrame:StripTextures(true)
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.barber ~= true then return end
......@@ -16,6 +25,7 @@ local function LoadSkin()
S:HandleButton(_G[buttons[i]])
end
local BarberShopFrame = _G["BarberShopFrame"]
for i = 1, #BarberShopFrame.Selector do
local selector = BarberShopFrame.Selector[i]
local previousSelector = BarberShopFrame.Selector[i-1]
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
--WoW API / Variables
local CreateFrame = CreateFrame
local hooksecurefunc = hooksecurefunc
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgmap ~= true then return end
local BattlefieldMinimap = _G["BattlefieldMinimap"]
BattlefieldMinimap:SetClampedToScreen(true)
BattlefieldMinimapCorner:Kill()
BattlefieldMinimapBackground:Kill()
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bgscore ~= true then return end
-- Macro to show the WorldStateScoreFrame: /run WorldStateScoreFrame:Show()
WorldStateScoreScrollFrame:StripTextures()
local WorldStateScoreFrame = _G["WorldStateScoreFrame"]
_G["WorldStateScoreScrollFrame"]:StripTextures()
WorldStateScoreFrame:StripTextures()
WorldStateScoreFrame:SetTemplate("Transparent")
S:HandleCloseButton(WorldStateScoreFrameCloseButton)
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local pairs = pairs
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: KEY_BINDINGS_DISPLAYED
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.binding ~= true then return end
......@@ -11,14 +20,15 @@ local function LoadSkin()
"cancelButton",
}
local KeyBindingFrame = _G["KeyBindingFrame"]
for _, v in pairs(buttons) do
KeyBindingFrame[v]:StripTextures()
KeyBindingFrame[v]:SetTemplate("Default", true)
end
KeyBindingFrame.header:StripTextures()
KeyBindingFrameScrollFrame:StripTextures()
S:HandleScrollBar(KeyBindingFrameScrollFrameScrollBar)
_G["KeyBindingFrameScrollFrame"]:StripTextures()
S:HandleScrollBar(_G["KeyBindingFrameScrollFrameScrollBar"])
S:HandleCheckBox(KeyBindingFrame.characterSpecificButton)
KeyBindingFrame.header:ClearAllPoints()
......@@ -26,8 +36,8 @@ local function LoadSkin()
KeyBindingFrame:StripTextures()
KeyBindingFrame:SetTemplate("Transparent")
KeyBindingFrameCategoryList:StripTextures()
KeyBindingFrameCategoryList:SetTemplate("Transparent")
_G["KeyBindingFrameCategoryList"]:StripTextures()
_G["KeyBindingFrameCategoryList"]:SetTemplate("Transparent")
KeyBindingFrame.bindingsContainer:StripTextures()
KeyBindingFrame.bindingsContainer:SetTemplate("Transparent")
......
......@@ -2,6 +2,7 @@ local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, Private
local S = E:GetModule('Skins')
--Cache global variables
local _G = _G
local select, type, unpack = select, type, unpack
--WoW API / Variables
local GetItemInfo = GetItemInfo
......@@ -22,6 +23,7 @@ end
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.bmah ~= true then return end
local BlackMarketFrame = _G["BlackMarketFrame"]
BlackMarketFrame:StripTextures()
BlackMarketFrame:SetTemplate('Transparent')
BlackMarketFrame.Inset:StripTextures()
......
......@@ -4,7 +4,7 @@ local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local ipairs = ipairs
local ipairs, unpack = ipairs, unpack
--WoW API / Variables
local CLASS_SORT_ORDER = CLASS_SORT_ORDER
local CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS
......@@ -12,6 +12,7 @@ local CLASS_ICON_TCOORDS = CLASS_ICON_TCOORDS
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.calendar ~= true then return end
local CalendarFrame = _G["CalendarFrame"]
CalendarFrame:StripTextures()
CalendarFrame:SetTemplate("Transparent")
S:HandleCloseButton(CalendarCloseButton)
......
......@@ -5,6 +5,15 @@ local S = E:GetModule('Skins')
--Lua functions
local _G = _G
local unpack, pairs, select = unpack, pairs, select
--WoW API / Variables
local GetCurrencyListSize = GetCurrencyListSize
local GetNumFactions = GetNumFactions
local hooksecurefunc = hooksecurefunc
local IsAddOnLoaded = IsAddOnLoaded
local UnitLevel = UnitLevel
local UnitSex = UnitSex
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.character ~= true then return end
......
......@@ -9,7 +9,11 @@ local unpack = unpack
local C_Heirloom_PlayerHasHeirloom = C_Heirloom.PlayerHasHeirloom
local C_PetJournal_GetPetStats = C_PetJournal.GetPetStats
local C_PetJournal_GetPetInfoByIndex = C_PetJournal.GetPetInfoByIndex
local GetItemInfo = GetItemInfo
local hooksecurefunc = hooksecurefunc
local ITEM_QUALITY_COLORS = ITEM_QUALITY_COLORS
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.collections ~= true then return end
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local select, unpack = select, unpack
--WoW API / Variables
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS: CLOSE
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.deathRecap ~= true then return end
local DeathRecapFrame = _G["DeathRecapFrame"]
DeathRecapFrame:StripTextures()
S:HandleCloseButton(DeathRecapFrame.CloseXButton)
DeathRecapFrame:SetTemplate("Transparent")
......
local E, L, V, P, G = unpack(select(2, ...)); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB
local S = E:GetModule('Skins')
--Cache global variables
--Lua functions
local _G = _G
local unpack = unpack
--WoW API / Variables
local GetCVar = GetCVar
--Global variables that we don't cache, list them here for mikk's FindGlobals script
-- GLOBALS:
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.debug ~= true then return end
local ScriptErrorsFrame = _G["ScriptErrorsFrame"]
ScriptErrorsFrame:SetParent(E.UIParent)
ScriptErrorsFrame:SetTemplate('Transparent')
S:HandleScrollBar(ScriptErrorsFrameScrollBar)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment