...
 
Commits (54)
......@@ -183,7 +183,8 @@ function B:AlertMovers()
/run GarrisonMissionAlertSystem:AddAlert(681) (Requires a mission ID that is in your mission list.)
/run GarrisonShipFollowerAlertSystem:AddAlert(592, "Test", "Transport", "GarrBuilding_Barracks_1_H", 3, 2, 1)
/run LegendaryItemAlertSystem:AddAlert("\124cffa335ee\124Hitem:18832::::::::::\124h[Brutality Blade]\124h\124r")
/run StorePurchaseAlertSystem:AddAlert("", "Interface\\Icons\\Ability_pvp_gladiatormedallion", TRINKET0SLOT, 214)
/run EntitlementDeliveredAlertSystem:AddAlert("", "Interface\\Icons\\Ability_pvp_gladiatormedallion", TRINKET0SLOT, 214)
/run RafRewardDeliveredAlertSystem:AddAlert("", "Interface\\Icons\\Ability_pvp_gladiatormedallion", TRINKET0SLOT, 214)
/run DigsiteCompleteAlertSystem:AddAlert("Human")
--Bonus Rolls
......
......@@ -273,14 +273,22 @@ local function LoadSkin(event)
_G.AchievementFrameGuildEmblemLeft:Kill()
S:HandleCloseButton(_G.AchievementFrameCloseButton, AchievementFrame.backdrop)
S:HandleDropDownBox(_G.AchievementFrameFilterDropDown)
S:HandleEditBox(AchievementFrame.searchBox)
AchievementFrame.searchBox.backdrop:Point("TOPLEFT", AchievementFrame.searchBox, "TOPLEFT", -5, -5)
AchievementFrame.searchBox.backdrop:Point("BOTTOMRIGHT", AchievementFrame.searchBox, "BOTTOMRIGHT", 0, 5)
AchievementFrame.searchBox:ClearAllPoints()
AchievementFrame.searchBox:Point("BOTTOMRIGHT", _G.AchievementFrameAchievementsContainer, "TOPRIGHT", -2, 0)
_G.AchievementFrameFilterDropDown:ClearAllPoints()
_G.AchievementFrameFilterDropDown:Point("RIGHT", AchievementFrame.searchBox.backdrop, "LEFT", 2, -3)
hooksecurefunc("AchievementFrameCategories_SelectButton", function(button)
local id = button.element.id
if id ~= "summary" then
_G.AchievementFrameFilterDropDown:ClearAllPoints()
_G.AchievementFrameFilterDropDown:Point("RIGHT", AchievementFrame.searchBox.backdrop, "LEFT", 2, -3)
S:HandleDropDownBox(_G.AchievementFrameFilterDropDown)
end
end)
-- ScrollBars
S:HandleScrollBar(_G.AchievementFrameCategoriesContainerScrollBar, 5)
......
......@@ -613,7 +613,7 @@ local function SkinMoneyWonAlert(frame)
end
end
local function SkinStorePurchaseAlert(frame)
local function SkinEntitlementDeliveredAlert(frame)
frame:SetAlpha(1)
if not frame.hooked then
......@@ -647,6 +647,40 @@ local function SkinStorePurchaseAlert(frame)
end
end
local function SkinRafRewardDeliveredAlert(frame)
frame:SetAlpha(1)
if not frame.hooked then
hooksecurefunc(frame, "SetAlpha", forceAlpha)
frame.hooked = true
end
if not frame.backdrop then
frame:CreateBackdrop("Transparent")
frame.backdrop:Point("TOPLEFT", frame, "TOPLEFT", 10, -6)
frame.backdrop:Point("BOTTOMRIGHT", frame, "BOTTOMRIGHT", -14, 6)
end
-- Background
frame.StandardBackground:Kill()
frame.glow:Kill()
frame.shine:Kill()
-- Icon
frame.Icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
frame.Icon:ClearAllPoints()
frame.Icon:Point("LEFT", frame.backdrop, 9, 0)
-- Icon border
if not frame.Icon.b then
frame.Icon.b = CreateFrame("Frame", nil, frame)
frame.Icon.b:SetTemplate()
frame.Icon.b:Point("TOPLEFT", frame.Icon, "TOPLEFT", -2, 2)
frame.Icon.b:Point("BOTTOMRIGHT", frame.Icon, "BOTTOMRIGHT", 2, -2)
frame.Icon:SetParent(frame.Icon.b)
end
end
local function SkinDigsiteCompleteAlert(frame)
frame:SetAlpha(1)
......@@ -763,7 +797,8 @@ local function LoadSkin()
hooksecurefunc(_G.LootAlertSystem, "setUpFunction", SkinLootWonAlert)
hooksecurefunc(_G.LootUpgradeAlertSystem, "setUpFunction", SkinLootUpgradeAlert)
hooksecurefunc(_G.MoneyWonAlertSystem, "setUpFunction", SkinMoneyWonAlert)
hooksecurefunc(_G.StorePurchaseAlertSystem, "setUpFunction", SkinStorePurchaseAlert)
hooksecurefunc(_G.EntitlementDeliveredAlertSystem, "setUpFunction", SkinEntitlementDeliveredAlert) -- 8.2.5 New
hooksecurefunc(_G.RafRewardDeliveredAlertSystem, "setUpFunction", SkinRafRewardDeliveredAlert) -- 8.2.5 New
-- Professions
hooksecurefunc(_G.DigsiteCompleteAlertSystem, "setUpFunction", SkinDigsiteCompleteAlert)
hooksecurefunc(_G.NewRecipeLearnedAlertSystem, "setUpFunction", SkinNewRecipeLearnedAlert)
......
......@@ -491,8 +491,8 @@ local function LoadSkin()
hooksecurefunc("TokenFrame_Update", UpdateCurrencySkins)
hooksecurefunc(_G.TokenFrameContainer, "update", UpdateCurrencySkins)
-- Tutorials
S:HandleCloseButton(_G.PaperDollItemsFrame.HelpTipBox.CloseButton)
-- Tutorials have a look for the new name on PTR 8.2.5
-- S:HandleCloseButton(_G.PaperDollItemsFrame.HelpTipBox.CloseButton)
end
S:AddCallback("Character", LoadSkin)
......@@ -6,6 +6,7 @@ local _G = _G
local select = select
local ipairs, pairs, unpack = ipairs, pairs, unpack
--WoW API / Variables
local CreateFrame = CreateFrame
local GetItemInfo = GetItemInfo
local PlayerHasToy = PlayerHasToy
local hooksecurefunc = hooksecurefunc
......@@ -49,6 +50,8 @@ local function LoadSkin()
MountJournal.MountCount:StripTextures()
S:HandleIcon(MountJournal.MountDisplay.InfoButton.Icon)
S:HandleCheckBox(MountJournal.MountDisplay.ModelScene.TogglePlayer)
MountJournal.MountDisplay.ModelScene.TogglePlayer:SetSize(22, 22)
S:HandleButton(_G.MountJournalMountButton, true)
S:HandleEditBox(_G.MountJournalSearchBox)
......@@ -304,7 +307,6 @@ local function LoadSkin()
ToyBox.iconsFrame:StripTextures()
S:HandleNextPrevButton(ToyBox.PagingFrame.NextPageButton, nil, nil, true)
S:HandleNextPrevButton(ToyBox.PagingFrame.PrevPageButton, nil, nil, true)
S:HandleCloseButton(ToyBox.favoriteHelpBox.CloseButton)
local progressBar = ToyBox.progressBar
progressBar.border:Hide()
......@@ -350,7 +352,6 @@ local function LoadSkin()
S:HandleNextPrevButton(HeirloomsJournal.PagingFrame.NextPageButton, nil, nil, true)
S:HandleNextPrevButton(HeirloomsJournal.PagingFrame.PrevPageButton, nil, nil, true)
S:HandleDropDownBox(_G.HeirloomsJournalClassDropDown)
S:HandleCloseButton(HeirloomsJournal.UpgradeLevelHelpBox.CloseButton)
progressBar = HeirloomsJournal.progressBar -- swap local variable
progressBar.border:Hide()
......@@ -426,11 +427,14 @@ local function LoadSkin()
if Frame.Models then
for _, Model in pairs(Frame.Models) do
Model:SetFrameLevel(Model:GetFrameLevel() + 1)
Model:CreateBackdrop()
Model.backdrop:SetOutside(Model, 2, 2)
Model.Border:Kill()
Model.Border:SetAlpha(0)
Model.TransmogStateTexture:SetAlpha(0)
local bg = CreateFrame("Frame", nil, Model)
bg:SetAllPoints()
bg:CreateBackdrop()
bg.backdrop:SetOutside(Model, 2, 2)
hooksecurefunc(Model.Border, 'SetAtlas', function(_, texture)
local r, g, b
if texture == "transmog-wardrobe-border-uncollected" then
......@@ -440,7 +444,7 @@ local function LoadSkin()
else
r, g, b = unpack(E.media.bordercolor)
end
Model.backdrop:SetBackdropBorderColor(r, g, b)
bg.backdrop:SetBackdropBorderColor(r, g, b)
end)
end
end
......@@ -469,8 +473,8 @@ local function LoadSkin()
SetsCollectionFrame.RightInset:StripTextures()
SetsCollectionFrame:SetTemplate("Transparent")
SetsCollectionFrame.LeftInset:StripTextures()
S:HandleCloseButton(WardrobeCollectionFrame.SetsTabHelpBox.CloseButton)
S:HandleCloseButton(WardrobeCollectionFrame.ItemsCollectionFrame.HelpBox.CloseButton)
--S:HandleCloseButton(WardrobeCollectionFrame.SetsTabHelpBox.CloseButton)
--S:HandleCloseButton(WardrobeCollectionFrame.ItemsCollectionFrame.HelpBox.CloseButton)
local ScrollFrame = SetsCollectionFrame.ScrollFrame
S:HandleScrollBar(ScrollFrame.scrollBar)
......@@ -544,14 +548,6 @@ local function LoadSkin()
S:HandleNextPrevButton(WardrobeCollectionFrame.SetsTransmogFrame.PagingFrame.NextPageButton)
S:HandleNextPrevButton(WardrobeCollectionFrame.SetsTransmogFrame.PagingFrame.PrevPageButton)
-- Taken from AddOnSkins
for i = 1, 2 do
for j = 1, 4 do
WardrobeCollectionFrame.SetsTransmogFrame["ModelR"..i.."C"..j]:StripTextures()
WardrobeCollectionFrame.SetsTransmogFrame["ModelR"..i.."C"..j]:CreateBackdrop()
end
end
-- Outfit Edit Frame
local WardrobeOutfitEditFrame = _G.WardrobeOutfitEditFrame
WardrobeOutfitEditFrame:StripTextures()
......
......@@ -29,6 +29,20 @@ local function UpdateNames(self)
end
end
local function HandleRoleChecks(button, ...)
button:StripTextures()
button:DisableDrawLayer("ARTWORK")
button:DisableDrawLayer("OVERLAY")
button.bg = button:CreateTexture(nil, 'BACKGROUND', nil, -7)
button.bg:SetTexture("Interface\\LFGFrame\\UI-LFG-ICONS-ROLEBACKGROUNDS")
button.bg:SetTexCoord(...)
button.bg:Point("CENTER")
button.bg:Size(40)
button.bg:SetAlpha(0.6)
S:HandleCheckBox(button.CheckBox)
end
local function LoadSkin()
if E.private.skins.blizzard.enable ~= true or E.private.skins.blizzard.Communities ~= true then return end
......@@ -47,6 +61,7 @@ local function LoadSkin()
CommunitiesFrameCommunitiesList.BottomFiligree:Hide()
_G.CommunitiesFrameCommunitiesListListScrollFrame:StripTextures()
-- Needs probably an update for 8.2.5
hooksecurefunc(_G.CommunitiesListEntryMixin, "SetClubInfo", function(self, clubInfo, isInvitation, isTicket)
if clubInfo then
self.Background:Hide()
......@@ -134,7 +149,7 @@ local function LoadSkin()
S:HandleButton(CommunitiesFrame.InviteButton)
CommunitiesFrame.AddToChatButton:ClearAllPoints()
CommunitiesFrame.AddToChatButton:Point("BOTTOM", CommunitiesFrame.ChatEditBox, "BOTTOMRIGHT", -5, -30) -- needs probably adjustment
CommunitiesFrame.AddToChatButton:Point("BOTTOM", CommunitiesFrame.ChatEditBox, "BOTTOMRIGHT", -5, -30)
S:HandleButton(CommunitiesFrame.AddToChatButton)
S:HandleScrollBar(CommunitiesFrame.MemberList.ListScrollFrame.scrollBar)
......@@ -142,7 +157,7 @@ local function LoadSkin()
S:HandleScrollBar(_G.CommunitiesFrameCommunitiesListListScrollFrame.ScrollBar)
S:HandleDropDownBox(CommunitiesFrame.StreamDropDownMenu)
S:HandleDropDownBox(CommunitiesFrame.CommunitiesListDropDownMenu, nil, true) -- use an override here to adjust the damn text position >.>
S:HandleDropDownBox(CommunitiesFrame.CommunitiesListDropDownMenu)
hooksecurefunc(_G.CommunitiesNotificationSettingsStreamEntryMixin, "SetFilter", function(self)
self.ShowNotificationsButton:SetSize(20, 20)
......@@ -151,7 +166,7 @@ local function LoadSkin()
S:HandleCheckBox(self.HideNotificationsButton)
end)
-- [[ CHAT TAB ]]
-- Chat Tab
CommunitiesFrame.MemberList:StripTextures()
CommunitiesFrame.MemberList.InsetFrame:Hide()
CommunitiesFrame.MemberList.WatermarkFrame:Hide()
......@@ -162,18 +177,101 @@ local function LoadSkin()
S:HandleEditBox(CommunitiesFrame.ChatEditBox)
CommunitiesFrame.ChatEditBox:Size(120, 20)
-- GuildFinder Frame
CommunitiesFrame.GuildFinderFrame:StripTextures()
S:HandleButton(CommunitiesFrame.GuildFinderFrame.FindAGuildButton)
--S:HandleDropDownBox(CommunitiesFrame.GuildFinderFrame.OptionsList.ClubFocusDropdown)
--S:HandleDropDownBox(CommunitiesFrame.GuildFinderFrame.OptionsList.ClubSizeDropdown)
-- [[ GUILDFINDER FRAME ]]--
local ClubFinderGuildFinderFrame = _G.ClubFinderGuildFinderFrame
ClubFinderGuildFinderFrame:StripTextures()
S:HandleNextPrevButton(ClubFinderGuildFinderFrame.GuildCards.PreviousPage)
S:HandleNextPrevButton(ClubFinderGuildFinderFrame.GuildCards.NextPage)
-->> Monitor this
for _, card in pairs(ClubFinderGuildFinderFrame.GuildCards.Cards, ClubFinderGuildFinderFrame.PendingGuildCards.Cards) do
if not card.isSkinned then
card.CardBackground:Hide()
card:CreateBackdrop()
card.GuildBannerEmblemLogo:SetDrawLayer("OVERLAY")
S:HandleButton(card.RequestJoin)
card.isSkinned = true
end
end
S:HandleDropDownBox(ClubFinderGuildFinderFrame.OptionsList.ClubFocusDropdown)
S:HandleDropDownBox(ClubFinderGuildFinderFrame.OptionsList.ClubSizeDropdown)
ClubFinderGuildFinderFrame.OptionsList.SearchBox:SetSize(118, 20)
ClubFinderGuildFinderFrame.OptionsList.Search:SetSize(118, 20)
ClubFinderGuildFinderFrame.OptionsList.Search:ClearAllPoints()
ClubFinderGuildFinderFrame.OptionsList.Search:Point("TOP", ClubFinderGuildFinderFrame.OptionsList.SearchBox, "BOTTOM", 1, -3)
S:HandleEditBox(ClubFinderGuildFinderFrame.OptionsList.SearchBox)
S:HandleButton(ClubFinderGuildFinderFrame.OptionsList.Search)
HandleRoleChecks(ClubFinderGuildFinderFrame.OptionsList.TankRoleFrame, _G.LFDQueueFrameRoleButtonTank.background:GetTexCoord())
HandleRoleChecks(ClubFinderGuildFinderFrame.OptionsList.HealerRoleFrame, _G.LFDQueueFrameRoleButtonHealer.background:GetTexCoord())
HandleRoleChecks(ClubFinderGuildFinderFrame.OptionsList.DpsRoleFrame, _G.LFDQueueFrameRoleButtonDPS.background:GetTexCoord())
S:HandleItemButton(ClubFinderGuildFinderFrame.ClubFinderSearchTab)
S:HandleItemButton(ClubFinderGuildFinderFrame.ClubFinderPendingTab)
-- [[ClubFinderCommunityAndGuildFinderFrame ]]--
local ClubFinderCommunityAndGuildFinderFrame = _G.ClubFinderCommunityAndGuildFinderFrame
ClubFinderCommunityAndGuildFinderFrame:StripTextures()
-->> Monitor this
for _, button in pairs(ClubFinderCommunityAndGuildFinderFrame.CommunityCards.ListScrollFrame.buttons, ClubFinderCommunityAndGuildFinderFrame.PendingCommunityCards.ListScrollFrame.buttons) do
if not button.isSkinned then
button.CircleMask:Hide()
button.LogoBorder:Hide()
S:HandleIcon(button.CommunityLogo)
S:HandleButton(button)
button.isSkinned = true
end
end
S:HandleDropDownBox(ClubFinderCommunityAndGuildFinderFrame.OptionsList.ClubFocusDropdown)
S:HandleDropDownBox(ClubFinderCommunityAndGuildFinderFrame.OptionsList.SortByDropdown)
S:HandleButton(ClubFinderCommunityAndGuildFinderFrame.OptionsList.Search)
ClubFinderCommunityAndGuildFinderFrame.OptionsList.Search:ClearAllPoints()
ClubFinderCommunityAndGuildFinderFrame.OptionsList.Search:Point("TOP", ClubFinderCommunityAndGuildFinderFrame.OptionsList.SearchBox, "BOTTOM", 1, -3)
ClubFinderCommunityAndGuildFinderFrame.OptionsList.Search:SetSize(118, 20)
ClubFinderCommunityAndGuildFinderFrame.OptionsList.SearchBox:SetSize(118, 20)
S:HandleEditBox(ClubFinderCommunityAndGuildFinderFrame.OptionsList.SearchBox)
HandleRoleChecks(ClubFinderCommunityAndGuildFinderFrame.OptionsList.TankRoleFrame, _G.LFDQueueFrameRoleButtonTank.background:GetTexCoord())
HandleRoleChecks(ClubFinderCommunityAndGuildFinderFrame.OptionsList.HealerRoleFrame, _G.LFDQueueFrameRoleButtonHealer.background:GetTexCoord())
HandleRoleChecks(ClubFinderCommunityAndGuildFinderFrame.OptionsList.DpsRoleFrame, _G.LFDQueueFrameRoleButtonDPS.background:GetTexCoord())
S:HandleScrollBar(ClubFinderCommunityAndGuildFinderFrame.CommunityCards.ListScrollFrame.scrollBar)
S:HandleScrollBar(ClubFinderCommunityAndGuildFinderFrame.PendingCommunityCards.ListScrollFrame.scrollBar)
--S:HandleEditBox(CommunitiesFrame.GuildFinderFrame.OptionsList.SearchBox)
--CommunitiesFrame.GuildFinderFrame.OptionsList.SearchBox:SetSize(118, 20)
--CommunitiesFrame.GuildFinderFrame.OptionsList.Search:ClearAllPoints()
--CommunitiesFrame.GuildFinderFrame.OptionsList.Search:SetPoint("TOP", CommunitiesFrame.GuildFinderFrame.OptionsList.SearchBox, "BOTTOM", 0, -3)
--S:HandleButton(CommunitiesFrame.GuildFinderFrame.OptionsList.Search)
--S:HandleButton(CommunitiesFrame.GuildFinderFrame.PendingClubs)
S:HandleItemButton(ClubFinderCommunityAndGuildFinderFrame.ClubFinderSearchTab)
S:HandleItemButton(ClubFinderCommunityAndGuildFinderFrame.ClubFinderPendingTab)
for _, t in ipairs({ClubFinderGuildFinderFrame.RequestToJoinFrame, ClubFinderCommunityAndGuildFinderFrame.RequestToJoinFrame}) do
t:StripTextures()
t:CreateBackdrop("Transparent")
hooksecurefunc(t, 'Initialize', function(self)
for button in self.SpecsPool:EnumerateActive() do
if button.CheckBox then
S:HandleCheckBox(button.CheckBox)
button.CheckBox:SetSize(26, 26)
end
end
end)
t.MessageFrame:StripTextures(true)
t.MessageFrame.MessageScroll:StripTextures(true)
-- Needs much love
S:HandleEditBox(t.MessageFrame.MessageScroll.EditBox)
t.MessageFrame.MessageScroll.EditBox:Size(500, 500)
S:HandleScrollBar(_G.ClubFinderGuildFinderFrameScrollBar)
S:HandleButton(t.Apply)
S:HandleButton(t.Cancel)
end
-- Member Details
CommunitiesFrame.GuildMemberDetailFrame:StripTextures()
......@@ -184,6 +282,7 @@ local function LoadSkin()
S:HandleCloseButton(CommunitiesFrame.GuildMemberDetailFrame.CloseButton)
S:HandleButton(CommunitiesFrame.GuildMemberDetailFrame.RemoveButton)
S:HandleButton(CommunitiesFrame.GuildMemberDetailFrame.GroupInviteButton)
local DropDown = CommunitiesFrame.GuildMemberDetailFrame.RankDropdown
S:HandleDropDownBox(DropDown, 160)
DropDown.backdrop:Point("TOPLEFT", 0, -6)
......
This diff is collapsed.
......@@ -353,7 +353,7 @@ local function LoadSkin()
end
button.backdrop:Show()
check:SetTexCoord(0, 1, 0, 1);
check:SetTexCoord(0, 1, 0, 1)
else
check:Size(16, 16)
end
......@@ -362,11 +362,11 @@ local function LoadSkin()
local SideDressUpFrame = _G.SideDressUpFrame
S:HandleCloseButton(_G.SideDressUpModelCloseButton)
S:HandleCloseButton(_G.SideDressUpFrameCloseButton)
SideDressUpFrame:StripTextures()
SideDressUpFrame.BGTopLeft:Hide()
SideDressUpFrame.BGBottomLeft:Hide()
S:HandleButton(_G.SideDressUpModelResetButton)
S:HandleButton(_G.SideDressUpFrame.ResetButton)
SideDressUpFrame:SetTemplate("Transparent")
-- StackSplit
......
......@@ -84,7 +84,7 @@ local function LoadSkin()
bu.SelectedTexture:SetInside()
bu.SelectedTexture:SetColorTexture(1, 1, 0, 0.1)
reward:StripTextures()
reward.Border:Hide()
S:HandleIcon(reward.Icon, true)
reward.EnlistmentBonus:StripTextures()
......@@ -148,7 +148,7 @@ local function LoadSkin()
bu.SelectedTexture:SetInside()
bu.SelectedTexture:SetColorTexture(1, 1, 0, 0.1)
reward:StripTextures()
reward.Border:Hide()
S:HandleIcon(reward.Icon, true)
end
......
......@@ -382,12 +382,11 @@ local function LoadSkin()
button.hover = hover
end
_G.QuestNPCModel:StripTextures()
_G.QuestNPCModel:CreateBackdrop("Transparent")
_G.QuestNPCModel:Point("TOPLEFT", _G.QuestLogDetailFrame, "TOPRIGHT", 4, -34)
_G.QuestNPCModelTextFrame:StripTextures()
_G.QuestNPCModelTextFrame:CreateBackdrop()
_G.QuestNPCModelTextFrame.backdrop:Point("TOPLEFT", _G.QuestNPCModel.backdrop, "BOTTOMLEFT", 0, -2)
_G.QuestModelScene:StripTextures()
_G.QuestModelScene:CreateBackdrop("Transparent")
_G.QuestModelScene:Point("TOPLEFT", _G.QuestLogDetailFrame, "TOPRIGHT", 4, -34)
_G.QuestNPCModelNameTooltipFrame:StripTextures()
_G.QuestNPCModelNameTooltipFrame:CreateBackdrop("Transparent")
local QuestLogPopupDetailFrame = _G.QuestLogPopupDetailFrame
S:HandlePortraitFrame(QuestLogPopupDetailFrame)
......
......@@ -347,8 +347,9 @@ local function LoadSkin()
S:HandleButton(_G.PlayerTalentFrameTalents.PvpTalentButton)
S:HandleScrollBar(_G.PlayerTalentFrameTalents.PvpTalentFrame.TalentList.ScrollFrame.ScrollBar)
S:HandleCloseButton(_G.PlayerTalentFrameTalents.PvpTalentFrame.TrinketSlot.HelpBox.CloseButton)
S:HandleCloseButton(_G.PlayerTalentFrameTalents.PvpTalentFrame.WarmodeTutorialBox.CloseButton)
-- Find new Name for 8.2.5
--S:HandleCloseButton(_G.PlayerTalentFrameTalents.PvpTalentFrame.TrinketSlot.HelpBox.CloseButton)
--S:HandleCloseButton(_G.PlayerTalentFrameTalents.PvpTalentFrame.WarmodeTutorialBox.CloseButton)
end
S:AddCallbackForAddon("Blizzard_TalentUI", "Talent", LoadSkin)
......@@ -26,6 +26,8 @@ local function LoadSkin()
WorldMapFrame.ScrollContainer:CreateBackdrop()
WorldMapFrame:CreateBackdrop("Transparent")
WorldMapFrame.backdrop:SetPoint("TOPLEFT", WorldMapFrame, "TOPLEFT", -8, 0)
WorldMapFrame.backdrop:SetPoint("BOTTOMRIGHT", WorldMapFrame, "BOTTOMRIGHT", 0, -9)
S:HandleButton(WorldMapFrame.NavBar.homeButton)
WorldMapFrame.NavBar.homeButton.xoffset = 1
......@@ -46,6 +48,7 @@ local function LoadSkin()
local QuestScrollFrame = _G.QuestScrollFrame
QuestScrollFrame.DetailFrame:StripTextures()
QuestScrollFrame.DetailFrame.BottomDetail:Hide()
QuestScrollFrame.Contents.Separator.Divider:Hide()
local QuestScrollFrameScrollBar = _G.QuestScrollFrameScrollBar
......
......@@ -241,8 +241,8 @@ function S:SkinTalentListButtons(frame)
end
function S:HandleButton(button, strip, isDeclineButton, useCreateBackdrop, noSetTemplate)
if button.isSkinned then return end
assert(button, "doesn't exist!")
if button.isSkinned then return end
local buttonName = button.GetName and button:GetName()
......@@ -293,6 +293,7 @@ local function GrabScrollBarElement(frame, element)
end
function S:HandleScrollBar(frame, thumbTrimY, thumbTrimX)
assert(frame, "doesnt exist!")
if frame.backdrop then return end
local parent = frame:GetParent()
......@@ -420,6 +421,7 @@ function S:HandleMaxMinFrame(frame)
end
function S:HandleEditBox(frame)
assert(frame, "doesnt exist!")
if frame.backdrop then return end
local EditBoxName = frame.GetName and frame:GetName()
......@@ -443,54 +445,32 @@ function S:HandleEditBox(frame)
end
end
function S:HandleDropDownBox(frame, width, override)
function S:HandleDropDownBox(frame, width)
if frame.backdrop then return end
local FrameName = frame.GetName and frame:GetName()
local button = FrameName and _G[FrameName..'Button'] or frame.Button
local text = FrameName and _G[FrameName..'Text'] or frame.Text
frame:StripTextures()
frame:CreateBackdrop()
frame.backdrop:SetFrameLevel(frame:GetFrameLevel())
frame.backdrop:Point("TOPLEFT", 12, -6)
frame.backdrop:Point("BOTTOMRIGHT", -12, 6)
frame.backdrop:Point("TOPLEFT", frame.Left, 20, -21)
frame.backdrop:Point("BOTTOMRIGHT", frame.Right, -19, 23)
if width then
frame:Width(width)
end
if text then
local justifyH = text:GetJustifyH()
local right = justifyH == 'RIGHT'
local left = justifyH == 'LEFT'
local a, _, c, d, e = text:GetPoint()
text:ClearAllPoints()
if right then
text:Point('RIGHT', button or frame.backdrop, 'LEFT', (right and -3) or 0, 0)
elseif left and override then -- for now only on the Communities.StreamDropdown in minimized mode >.>
text:Point('RIGHT', button or frame.backdrop, 'LEFT', (left and 1) or -1, 0)
elseif left then
text:Point('RIGHT', button or frame.backdrop, 'LEFT', (left and -20) or -1, 0)
else
text:Point(a, frame.backdrop, c, (left and 10) or d, e-3)
end
text:Width(frame:GetWidth() / 1.4)
end
local FrameName = frame.GetName and frame:GetName()
-- We need to check first for frame.Button otherwise it will fail on some elements
local button = frame.Button or FrameName and _G[FrameName..'Button']
if button then
S:HandleNextPrevButton(button)
button:ClearAllPoints()
button:Point("TOPRIGHT", -14, -8)
button:Size(16, 16)
button:Point("RIGHT", frame.backdrop)
button:SetSize(16, 16)
S:HandleNextPrevButton(button)
end
if frame.Icon then
frame.Icon:Point('LEFT', 23, 0)
local icon = frame.Icon
if icon then
icon:Point("LEFT", 23, 0)
end
end
......@@ -687,6 +667,7 @@ local handleCloseButtonOnEnter = function(btn) if btn.Texture then btn.Texture:S
local handleCloseButtonOnLeave = function(btn) if btn.Texture then btn.Texture:SetVertexColor(1, 1, 1) end end
function S:HandleCloseButton(f, point)
assert(f, "doenst exist!")
f:StripTextures()
if not f.Texture then
......@@ -1238,7 +1219,7 @@ S.WidgetSkinningFuncs = {
[W.DoubleStateIconRow] = "SkinDoubleStateIconRow",
[W.TextureAndTextRow] = "SkinTextureAndTextRowWidget",
[W.ZoneControl] = "SkinZoneControl",
--[W.CaptureZone] = "SkinCaptureZone", -- 8.2.5
[W.CaptureZone] = "SkinCaptureZone",
}
function S:SkinWidgetContainer(widgetContainer)
......