Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » [Solved] UIPanelDialogTemplate backdrop appears inconsistently


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off