local E, C, L = select(2, ...):unpack()
local S = E:GetModule("Skins")

------------------------------------------------------------------------
-- Tabard Customisation Frame
-- Ported from AuroraClassic FrameXML/TabardFrame.lua (2026-06)
------------------------------------------------------------------------

function S:Tabard()
    if not C.general.skins then return end

    S:ReskinPortraitFrame(TabardFrame)
    TabardFrameMoneyInset:Hide()
    TabardFrameMoneyBg:Hide()
    TabardFrameCostFrame:CreateBackdrop()
    S:ReskinButton(TabardFrameAcceptButton)
    S:ReskinButton(TabardFrameCancelButton)
    S:ReskinArrow(TabardCharacterModelRotateLeftButton, "left")
    S:ReskinArrow(TabardCharacterModelRotateRightButton, "right")
    TabardCharacterModelRotateRightButton:SetPoint("TOPLEFT", TabardCharacterModelRotateLeftButton, "TOPRIGHT", 1, 0)

    TabardFrameCustomizationBorder:Hide()
    for i = 1, 5 do
        _G["TabardFrameCustomization" .. i]:StripTextures()
        S:ReskinArrow(_G["TabardFrameCustomization" .. i .. "LeftButton"], "left")
        S:ReskinArrow(_G["TabardFrameCustomization" .. i .. "RightButton"], "right")
    end
end

S:AddCallback("Tabard")
