local AS = unpack(AddOnSkins)

if not AS:CheckAddOn('Train-All') then return end

function AS:TrainAll(event, addon)
	if addon == 'Blizzard_TrainerUI' or IsAddOnLoaded('Blizzard_TrainerUI') then
		ClassTrainerFrame:HookScript('OnShow', function(self)
			if not TrainAllButton.isSkinned then
				TrainAllButton:StripTextures()
				AS:SkinButton(TrainAllButton)
			end
		end)
		AS:UnregisterSkinEvent('TrainAll', event)
	end
end

AS:RegisterSkin('TrainAll', AS.TrainAll, 'ADDON_LOADED')
