View Single Post
08-02-18, 01:16 PM   #1
pcg79
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jul 2018
Posts: 7
[Solved] UIPanelDialogTemplate backdrop appears inconsistently

I was playing with different frame templates. I stumbled upon UIPanelDialogTemplate and liked it because it came with a built-in title bar. But I've noticed that when I apply a backdrop to it, some times the backdrop just doesn't show up. Or it'll show on the title and not the main part. Or it'll show in the main part and not the title.

I'm assuming the solution is "don't use UIPanelDialogTemplate" but I was curious if anyone knew if I was doing something else wrong.

https://imgur.com/a/tQIpVQV

The entirety of my code:

Code:
local frame = CreateFrame("Frame", "TestPopup", UIParent, "UIPanelDialogTemplate")
frame:SetBackdrop({
  bgFile = "Interface\\ACHIEVEMENTFRAME\\UI-GuildAchievement-AchievementBackground",
  insets = {left = 6, right = 6, top = 6, bottom = 6},
})
frame:SetPoint("CENTER", UIParent, "CENTER", 0, 0)
frame:SetWidth(350)
frame:SetHeight(100)

Last edited by pcg79 : 08-02-18 at 03:03 PM.
  Reply With Quote