local _, GW = ...
local constBackdropFrame = GW.skins.constBackdropFrame
local GetSetting = GW.GetSetting

local function LoadReadyCheckSkin()
    if not GetSetting("READYCHECK_SKIN_ENABLED") then return end

    _G.ReadyCheckFrameYesButton:GwSkinButton(false, true)
    _G.ReadyCheckFrameNoButton:GwSkinButton(false, true)

    local r = {_G.ReadyCheckListenerFrame:GetRegions()}
    for _,c in pairs(r) do
        if c:GetObjectType() == "Texture" then
            c:Hide()
        end
    end

    _G.ReadyCheckListenerFrame:GwCreateBackdrop(constBackdropFrame)
    _G.ReadyCheckPortrait:Show()
    _G.ReadyCheckPortrait:SetDrawLayer("OVERLAY", 2)
end
GW.LoadReadyCheckSkin = LoadReadyCheckSkin