From 977831de82594b47a62c6ad7f23a6582e3f415a3 Mon Sep 17 00:00:00 2001 From: coolmodi <7333074+coolmodi@users.noreply.github.com> Date: Tue, 22 Jun 2021 23:42:02 +0200 Subject: [PATCH] Fix for TBC --- CChatNotifier.toc | 4 ++-- UI/MainUI.lua | 4 ++-- UI/listFrame.lua | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CChatNotifier.toc b/CChatNotifier.toc index 339caa2..0a04168 100644 --- a/CChatNotifier.toc +++ b/CChatNotifier.toc @@ -1,7 +1,7 @@ -## Interface: 11302 +## Interface: 20501 ## Title: CChatNotifier ## Author: coolmodi -## Version: 1.0 +## Version: 1.1 ## Notes: Watchs chat and notifies you if it finds words you look for. ## Notes-deDE: Beobachtet Chat und benachrichtigt dich wenn es gesuchte Wörter findet. ## SavedVariablesPerCharacter: CChatNotifier_settings, CChatNotifier_data diff --git a/UI/MainUI.lua b/UI/MainUI.lua index 4abdad8..bdabc9b 100644 --- a/UI/MainUI.lua +++ b/UI/MainUI.lua @@ -124,7 +124,7 @@ end -- @param height (optional) -- @param isMultiline (optional) local function MakeEditBox(parent, maxLen, height, isMultiline) - local edit = CreateFrame("EditBox", nil, parent); + local edit = CreateFrame("EditBox", nil, parent, "BackdropTemplate"); edit:SetMaxLetters(maxLen); edit:SetAutoFocus(false); if height then @@ -222,7 +222,7 @@ local function RemoveItem(self) end for i = 1, MAX_ITEMS, 1 do - local item = CreateFrame("Frame", nil, frame.scrollFrame); + local item = CreateFrame("Frame", nil, frame.scrollFrame, "BackdropTemplate"); item:SetHeight(LIST_ITEM_HEIGHT); item:SetPoint("TOPLEFT", 0, -LIST_ITEM_HEIGHT * (i-1)); diff --git a/UI/listFrame.lua b/UI/listFrame.lua index 8807ac9..ac23e7d 100644 --- a/UI/listFrame.lua +++ b/UI/listFrame.lua @@ -95,7 +95,7 @@ end -- @param height (optional) -- @param isMultiline (optional) local function MakeEditBox(parent, maxLen, height, isMultiline) - local edit = CreateFrame("EditBox", nil, parent); + local edit = CreateFrame("EditBox", nil, parent, "BackdropTemplate"); edit:SetMaxLetters(maxLen); edit:SetAutoFocus(false); if height then @@ -271,7 +271,7 @@ local function CreateListElement(pos) return; end - local item = CreateFrame("Frame", nil, scrollFrame); + local item = CreateFrame("Frame", nil, scrollFrame, "BackdropTemplate"); item:SetHeight(LISTITEMHEIGHT); if pos == 1 then @@ -302,7 +302,7 @@ local function CreateListElement(pos) _addon:RemoveFromList(self:GetParent().searchString:GetText()); end) - item.disb = CreateFrame("Button", nil, item); + item.disb = CreateFrame("Button", nil, item, "BackdropTemplate"); item.disb:SetWidth(12); item.disb:SetHeight(12); item.disb:SetPoint("RIGHT", item.delb, "LEFT", -17, 0);