cdmichaelb / Outfitter

Outfitter - Classic
MIT License
10 stars 23 forks source link

Fix #87 - Add backdrop mixin to GameTooltip #89

Closed MotherGinger closed 2 years ago

MotherGinger commented 2 years ago

Included in this PR

Results:

image

murphy1312 commented 2 years ago

image

does not have a background color for me.

murphy1312 commented 2 years ago

For now I fixed it locally like this:

-- Make the frame match the tooltip

local function InitializeFrame(frame)
--[[    from https://www.wowinterface.com/forums/showthread.php?t=58109]]
    frame:SetBackdrop({
        bgFile = "Interface\\DialogFrame\\UI-DialogBox-Background",
        edgeFile = "Interface\\DialogFrame\\UI-DialogBox-Border",
        tile = true,
        tileSize = 32,
        edgeSize = 32,
        insets = {left = 12, right = 12, top = 12, bottom = 11},
    })
    frame:SetScale(GameTooltip:GetScale())
end

does not look great, but it's usable image

MotherGinger commented 2 years ago

image

does not have a background color for me.

Good catch, I was wrong we will need to still respect the NineSlice panel after all, I have pushed an update that fixes this

cdmichaelb commented 2 years ago

Changes look good and nice documentation, thanks @MotherGinger