You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.9 KiB

4 years ago
local E, L, V, P, G = unpack(ElvUI)
5 years ago
local S = E:GetModule('Skins')
local _G = _G
local hooksecurefunc = hooksecurefunc
5 years ago
local function AbilitiesList_Layout(list)
if not list.abilityPool then return end
5 years ago
for frame in list.abilityPool:EnumerateActive() do
if not frame.IsSkinned then
S:HandleIcon(frame.Icon)
frame.IsSkinned = true
end
5 years ago
end
end
5 years ago
function S:Blizzard_StableUI()
if not (E.private.skins.blizzard.enable and E.private.skins.blizzard.stable) then return end
5 years ago
local StableFrame = _G.StableFrame
S:HandlePortraitFrame(StableFrame)
StableFrame.MainHelpButton:Hide()
S:HandleButton(StableFrame.StableTogglePetButton)
S:HandleButton(StableFrame.ReleasePetButton)
5 years ago
local StabledPetList = StableFrame.StabledPetList
StabledPetList:StripTextures()
StabledPetList.ListName:FontTemplate(nil, 32)
StabledPetList.ListCounter:StripTextures()
StabledPetList.ListCounter:CreateBackdrop('Transparent')
5 years ago
S:HandleEditBox(StabledPetList.FilterBar.SearchBox)
S:HandleButton(StableFrame.StabledPetList.FilterBar.FilterDropdown)
S:HandleCloseButton(StableFrame.StabledPetList.FilterBar.FilterDropdown.ResetButton)
S:HandleTrimScrollBar(StabledPetList.ScrollBar)
5 years ago
local modelScene = StableFrame.PetModelScene
if modelScene then
local sceneShadow = modelScene.PetModelSceneShadow
if sceneShadow then
sceneShadow:SetInside()
end
5 years ago
local inset = modelScene.Inset
if inset then
inset.NineSlice:SetTemplate()
inset.Bg:Hide()
end
5 years ago
local abilitiesList = modelScene.AbilitiesList
if abilitiesList then
hooksecurefunc(abilitiesList, 'Layout', AbilitiesList_Layout)
end
5 years ago
local petInfo = modelScene.PetInfo
if petInfo then
if petInfo.Type then
hooksecurefunc(petInfo.Type, 'SetText', S.ReplaceIconString)
end
5 months ago
if petInfo.Specialization then
S:HandleDropDownBox(petInfo.Specialization)
end
end
5 years ago
end
S:HandleModelSceneControlButtons(modelScene.ControlFrame)
5 years ago
end
S:AddCallbackForAddon('Blizzard_StableUI')