From 65b42a06163bc172cec27ef0585ab12cb53e5df3 Mon Sep 17 00:00:00 2001 From: Jim Whitehead Date: Wed, 14 Oct 2020 23:21:50 +0200 Subject: [PATCH] Fix some issues with backdrops They will not be visible, but the addon should no longer immediately error. --- PerfectRaid.lua | 4 ++-- PerfectRaid.toc | 2 +- PerfectRaid.xml | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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 @@ - + @@ -76,7 +76,7 @@ self.Title = getglobal(name.."Title") - PlaySound("UChatScrollButton"); + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON); -- 1.7.9.5