Fix some issues with backdrops
Jim Whitehead [10-14-20 - 21:21]
Fix some issues with backdrops
They will not be visible, but the addon should no longer immediately
error.
diff --git a/PerfectRaid.lua b/PerfectRaid.lua
index 2138b82..9a17e7c 100644
--- a/PerfectRaid.lua
+++ b/PerfectRaid.lua
@@ -183,7 +183,7 @@ end
function PerfectRaid:CreateRaidFrame(idx)
local options = self.db.profile.headers[idx]
local name = "PRHeader"..idx
- local template = "SecureGroupHeaderTemplate"
+ local template = "SecureGroupHeaderTemplate,BackdropTemplate"
local frame = getglobal(name)
@@ -232,7 +232,7 @@ function PerfectRaid:CreateRaidFrame(idx)
frame:SetAttribute("point", options.alignbottom and "BOTTOM" or "TOP")
frame:SetAttribute("groupFilter", options.filter or "")
- frame:SetAttribute("template", "SecureUnitButtonTemplate")
+ frame:SetAttribute("template", "SecureUnitButtonTemplate,BackdropTemplate")
frame:SetAttribute("templateType", "Button")
frame:SetAttribute("yOffset", yoffset)
frame:SetAttribute("sortMethod", options.sortType)
diff --git a/PerfectRaid.toc b/PerfectRaid.toc
index 1a23969..04ef8ce 100644
--- a/PerfectRaid.toc
+++ b/PerfectRaid.toc
@@ -1,4 +1,4 @@
-## Interface: 80000
+## Interface: 90001
## Title: PerfectRaid
## Version: @project-version@
## Author: Cladhaire
diff --git a/PerfectRaid.xml b/PerfectRaid.xml
index 1102784..c7d131f 100644
--- a/PerfectRaid.xml
+++ b/PerfectRaid.xml
@@ -1,6 +1,6 @@
<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
- <Frame name="PROptionsTemplate" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent" virtual="true">
+ <Frame name="PROptionsTemplate" inherits="BackdropTemplate" movable="true" frameStrata="DIALOG" toplevel="true" hidden="true" parent="UIParent" virtual="true">
<Size>
<AbsDimension x="500" y="400"/>
</Size>
@@ -76,7 +76,7 @@
self.Title = getglobal(name.."Title")
</OnLoad>
<OnHide>
- PlaySound("UChatScrollButton");
+ PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
</OnHide>
</Scripts>
</Frame>