Commit 313bf208 authored by Azilroka's avatar Azilroka

More Blizzard Skin Updates

parent bd93bf92
local AS = unpack(AddOnSkins)
function AS:Blizzard_Others()
-- Others Blizzard frame we want to reskin
-- local skins = {
-- "StaticPopup1",
-- "StaticPopup2",
-- "StaticPopup3",
-- "StaticPopup4",
-- "GameMenuFrame",
-- "LFDDungeonReadyStatus",
-- "TicketStatusFrameButton",
-- "LFDSearchStatus",
-- "AutoCompleteBox",
-- "ConsolidatedBuffsTooltip",
-- "ReadyCheckFrame",
-- "StackSplitFrame",
-- "CharacterFrame",
-- "VoiceChatTalkers"
-- }
-- for i = 1, getn(skins) do
-- if _G[skins[i]] then
-- AS:SetTemplate(_G[skins[i]], 'Default')
-- if _G[skins[i]] ~= _G["AutoCompleteBox"] then -- frame to blacklist from create shadow function
-- _G[skins[i]]:CreateShadow('Default')
-- end
-- end
-- end
local function SkinNavBarButtons(self)
local navButton = self.navList[#self.navList]
if navButton and not navButton.isSkinned then
......@@ -41,119 +14,60 @@ function AS:Blizzard_Others()
end
hooksecurefunc("NavBar_AddButton", SkinNavBarButtons)
--LFD Role Picker frame
AS:StripTextures(LFDRoleCheckPopup)
AS:SetTemplate(LFDRoleCheckPopup, 'Default')
AS:SkinBackdropFrame(LFDRoleCheckPopup)
AS:SkinButton(LFDRoleCheckPopupAcceptButton)
AS:SkinButton(LFDRoleCheckPopupDeclineButton)
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonTank:GetChildren())
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonDPS:GetChildren())
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonHealer:GetChildren())
LFDRoleCheckPopupRoleButtonTank:GetChildren():SetFrameLevel(LFDRoleCheckPopupRoleButtonTank:GetChildren():GetFrameLevel() + 1)
LFDRoleCheckPopupRoleButtonDPS:GetChildren():SetFrameLevel(LFDRoleCheckPopupRoleButtonDPS:GetChildren():GetFrameLevel() + 1)
LFDRoleCheckPopupRoleButtonHealer:GetChildren():SetFrameLevel(LFDRoleCheckPopupRoleButtonHealer:GetChildren():GetFrameLevel() + 1)
-- Cinematic Popup
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonTank.checkButton)
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonDPS.checkButton)
AS:SkinCheckBox(LFDRoleCheckPopupRoleButtonHealer.checkButton)
AS:SetTemplate(CinematicFrameCloseDialog)
CinematicFrameCloseDialog:SetScale(UIParent:GetScale())
AS:SkinButton(CinematicFrameCloseDialogConfirmButton)
AS:SkinButton(CinematicFrameCloseDialogResumeButton)
-- Movie Frame Popup
AS:SetTemplate(MovieFrame.CloseDialog)
MovieFrame.CloseDialog:SetScale(UIParent:GetScale())
AS:SkinButton(MovieFrame.CloseDialog.ConfirmButton)
AS:SkinButton(MovieFrame.CloseDialog.ResumeButton)
-- Report Cheats
AS:StripTextures(ReportCheatingDialog)
AS:SetTemplate(ReportCheatingDialog)
AS:SkinButton(ReportCheatingDialogReportButton)
AS:SkinFrame(ReportCheatingDialog)
AS:SkinButton(ReportCheatingDialog.reportButton)
AS:SkinButton(ReportCheatingDialogCancelButton)
AS:StripTextures(ReportCheatingDialogCommentFrame)
AS:SkinEditBox(ReportCheatingDialogCommentFrameEditBox)
AS:StripTextures(ReportCheatingDialog.CommentFrame)
AS:SkinEditBox(ReportCheatingDialog.CommentFrame.EditBox)
-- reskin popup buttons
for i = 1, 4 do
for j = 1, 3 do
AS:SkinButton(_G["StaticPopup"..i.."Button"..j])
AS:SkinEditBox(_G["StaticPopup"..i.."EditBox"])
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameGold"])
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameSilver"])
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameCopper"])
_G["StaticPopup"..i.."EditBox"].Backdrop:SetPoint("TOPLEFT", -2, -4)
_G["StaticPopup"..i.."EditBox"].Backdrop:SetPoint("BOTTOMRIGHT", 2, 4)
_G["StaticPopup"..i.."ItemFrameNameFrame"]:Kill()
_G["StaticPopup"..i.."ItemFrame"]:GetNormalTexture():Kill()
AS:SetTemplate(_G["StaticPopup"..i.."ItemFrame"], 'Default')
AS:StyleButton(_G["StaticPopup"..i.."ItemFrame"])
AS:SkinTexture(_G["StaticPopup"..i.."ItemFrameIconTexture"])
_G["StaticPopup"..i.."ItemFrameIconTexture"]:ClearAllPoints()
_G["StaticPopup"..i.."ItemFrameIconTexture"]:Point("TOPLEFT", 2, -2)
_G["StaticPopup"..i.."ItemFrameIconTexture"]:Point("BOTTOMRIGHT", -2, 2)
local Popup = _G["StaticPopup"..i]
AS:SkinFrame(Popup, nil, true)
for j = 1, 4 do
AS:SkinButton(Popup['button'..j])
end
AS:SkinButton(Popup.extraButton)
AS:SkinEditBox(_G["StaticPopup"..i.."EditBox"])
_G["StaticPopup"..i.."EditBox"].Backdrop:SetPoint("TOPLEFT", -2, -4)
_G["StaticPopup"..i.."EditBox"].Backdrop:SetPoint("BOTTOMRIGHT", 2, 4)
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameGold"])
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameSilver"])
AS:SkinEditBox(_G["StaticPopup"..i.."MoneyInputFrameCopper"])
AS:SkinFrame(Popup.ItemFrame)
AS:StyleButton(Popup.ItemFrame)
AS:SkinTexture(Popup.ItemFrame.icon)
Popup.ItemFrame.icon:SetInside()
end
-- -- reskin all esc/menu buttons
-- local BlizzardMenuButtons = {
-- "Options",
-- "SoundOptions",
-- "UIOptions",
-- "Keybindings",
-- "Macros",
-- "Ratings",
-- "AddOns",
-- "Logout",
-- "Quit",
-- "Continue",
-- "MacOptions",
-- "Help",
-- "Store",
-- }
-- for i = 1, getn(BlizzardMenuButtons) do
-- local button = _G["GameMenuButton"..BlizzardMenuButtons[i]]
-- if button then
-- AS:SkinButton(button)
-- end
-- end
-- if IsAddOnLoaded("OptionHouse") then
-- AS:SkinButton(GameMenuButtonOptionHouse)
-- end
-- -- hide header textures and move text/buttons.
-- local BlizzardHeader = {
-- "GameMenuFrame",
-- }
-- for i = 1, getn(BlizzardHeader) do
-- local title = _G[BlizzardHeader[i].."Header"]
-- if title then
-- title:SetTexture("")
-- title:ClearAllPoints()
-- title:SetPoint("TOP", GameMenuFrame, 0, 7)
-- end
-- end
-- here we reskin all "normal" buttons
-- local BlizzardButtons = {
-- "ReadyCheckFrameYesButton",
-- "ReadyCheckFrameNoButton",
-- "StackSplitOkayButton",
-- "StackSplitCancelButton",
-- "RolePollPopupAcceptButton",
-- "CompactUnitFrameProfilesGeneralOptionsFrameResetPositionButton",
-- }
-- for i = 1, getn(BlizzardButtons) do
-- local Buttons = _G[BlizzardButtons[i]]
-- if Buttons then
-- AS:SkinButton(Buttons)
-- end
-- end
-- if a button position is not really where we want, we move it here
AS:SetTemplate(_G["GeneralDockManagerOverflowButtonList"])
AS:SetTemplate(RolePollPopup, 'Default')
AS:CreateShadow(RolePollPopup)
AS:SkinCloseButton(RolePollPopupCloseButton)
-- _G["ReadyCheckFrameYesButton"]:SetParent(_G["ReadyCheckFrame"])
-- _G["ReadyCheckFrameNoButton"]:SetParent(_G["ReadyCheckFrame"])
-- _G["ReadyCheckFrameYesButton"]:ClearAllPoints()
......@@ -164,26 +78,11 @@ function AS:Blizzard_Others()
-- _G["ReadyCheckFrameText"]:ClearAllPoints()
-- _G["ReadyCheckFrameText"]:SetPoint("TOP", 0, -12)
AS:SetTemplate(_G["GeneralDockManagerOverflowButtonList"])
AS:SetTemplate(RolePollPopup, 'Default')
AS:CreateShadow(RolePollPopup)
AS:SkinCloseButton(RolePollPopupCloseButton)
-- AS:StripTextures(BasicScriptErrors)
-- AS:SetTemplate(BasicScriptErrors)
-- AS:CreateShadow(BasicScriptErrors)
-- AS:SkinButton(BasicScriptErrorsButton)
-- BasicScriptErrors:SetScale(AS.UIScale)
-- for i = 1, 4 do
-- local button = _G["StaticPopup"..i.."CloseButton"]
-- button:SetNormalTexture("")
-- button.SetNormalTexture = T.dummy
-- button:SetPushedTexture("")
-- button.SetPushedTexture = T.dummy
-- AS:SkinCloseButton(button)
-- end
end
AS:RegisterSkin('Blizzard_Others', AS.Blizzard_Others)
\ No newline at end of file
AS:RegisterSkin('Blizzard_Others', AS.Blizzard_Others)
......@@ -25,6 +25,7 @@ function AS:Blizzard_RaidUI(event, addon)
for i = 1, 40 do
AS:SkinFrame(_G["RaidGroupButton"..i], 'Default')
end
AS:UnregisterSkinEvent("Blizzard_RaidUI", 'ADDON_LOADED')
end
end
......
......@@ -22,13 +22,12 @@ function AS:Blizzard_Spellbook()
local Button = _G["SpellButton"..i]
local Icon = _G["SpellButton"..i.."IconTexture"]
AS:SkinFrame(Button)
AS:SkinButton(Button, true)
AS:SkinTexture(Icon)
Icon:SetInside()
Button:SetCheckedTexture('')
Button:SetPushedTexture('')
Button:SetHighlightTexture('')
Button.cooldown:SetInside()
......@@ -50,6 +49,7 @@ function AS:Blizzard_Spellbook()
hooksecurefunc("SpellButton_UpdateButton", function()
for i = 1, SPELLS_PER_PAGE do
local Button = _G["SpellButton"..i]
Button:SetHighlightTexture('')
Button.SpellName:SetTextColor(1, 1, 1)
Button.SpellSubName:SetTextColor(0.6, 0.6, 0.6)
Button.RequiredLevelString:SetTextColor(0.6, 0.6, 0.6)
......@@ -61,6 +61,10 @@ function AS:Blizzard_Spellbook()
AS:SkinFrame(Tab)
AS:SkinTexture(Tab:GetNormalTexture())
Tab:GetNormalTexture():SetInside()
Tab:HookScript("OnEnter", function(self) self:SetBackdropBorderColor(unpack(AS.ValueColor or AS.ClassColor)) end)
Tab:HookScript("OnLeave", function(self) if self:GetChecked() then self:SetBackdropBorderColor(1, 1, 0) else self:SetBackdropBorderColor(unpack(AS.BorderColor)) end end)
hooksecurefunc(Tab, 'SetChecked', function(self, value)
if value == true then
self:SetBackdropBorderColor(1, 1, 0)
......@@ -98,7 +102,7 @@ function AS:Blizzard_Spellbook()
end
for _, Button in pairs({ PrimaryProfession1SpellButtonTop, PrimaryProfession1SpellButtonBottom, PrimaryProfession2SpellButtonTop, PrimaryProfession2SpellButtonBottom, SecondaryProfession1SpellButtonLeft, SecondaryProfession1SpellButtonRight, SecondaryProfession2SpellButtonLeft, SecondaryProfession2SpellButtonRight, SecondaryProfession3SpellButtonLeft, SecondaryProfession3SpellButtonRight }) do
AS:SkinFrame(Button)
AS:SkinButton(Button, true)
if Button.iconTexture then
AS:SkinTexture(Button.iconTexture)
......@@ -117,6 +121,7 @@ function AS:Blizzard_Spellbook()
end)
hooksecurefunc("UpdateProfessionButton", function(self)
self:SetHighlightTexture('')
self.spellString:SetTextColor(1, 1, 1);
self.subSpellString:SetTextColor(1, 1, 1)
end)
......
......@@ -29,7 +29,6 @@ function AS:Blizzard_TradeWindow(event, addon)
for i = 1, 7 do
local ItemBackground = _G[Frame..i]
local ItemButton = _G[Frame..i.."ItemButton"]
local ItemName = _G[Frame..i.."Name"]
AS:StripTextures(ItemBackground)
AS:SkinFrame(ItemButton)
......
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