From a54ead406cb13e2c56f5ee85e6d70730890243a8 Mon Sep 17 00:00:00 2001 From: Jon Zenor Date: Sun, 1 Sep 2024 19:33:16 -0600 Subject: [PATCH] Updated addon for 11.0.2 --- .gitignore | 0 Core.lua | 15 ++++++++------- Death_Counter.toc | 4 ++-- LICENSE | 0 README.md | 0 release-notes.md | 7 +++++++ 6 files changed, 17 insertions(+), 9 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Core.lua mode change 100644 => 100755 Death_Counter.toc mode change 100644 => 100755 LICENSE mode change 100644 => 100755 README.md mode change 100644 => 100755 release-notes.md diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Core.lua b/Core.lua old mode 100644 new mode 100755 index c622cb9..8e88f5b --- a/Core.lua +++ b/Core.lua @@ -38,26 +38,27 @@ f:RegisterEvent("PLAYER_DEAD") f:SetScript("OnEvent", f.OnEvent) function f:InitializeOptions() - self.panel = CreateFrame("Frame") + self.panel = CreateFrame("Frame", "FADeathCounterOptionsPanel", UIParent) self.panel.name = "Death Counter" - local cb = CreateFrame("CheckButton", nil, self.panel, "InterfaceOptionsCheckButtonTemplate") + local cb = CreateFrame("CheckButton", "FADeathCounterUsePopupAlert", self.panel, "InterfaceOptionsCheckButtonTemplate") cb:SetPoint("TOPLEFT", 20, -20) - cb.Text:SetText("Use a pop up alert") + _G[cb:GetName() .. "Text"]:SetText("Use a pop up alert") cb:HookScript("OnClick", function(_, btn, down) FADeathCounterDB.usePopupAlert = cb:GetChecked() end) cb:SetChecked(FADeathCounterDB.usePopupAlert) - local cbGuildAnnounce = CreateFrame("CheckButton", nil, self.panel, "InterfaceOptionsCheckButtonTemplate") - cbGuildAnnounce:SetPoint("TOPLEFT", 20, -40) - cbGuildAnnounce.Text:SetText("Announce Deaths to Your Guild") + local cbGuildAnnounce = CreateFrame("CheckButton", "FADeathCounterGuildAnnounce", self.panel, "InterfaceOptionsCheckButtonTemplate") + cbGuildAnnounce:SetPoint("TOPLEFT", 20, -60) + _G[cbGuildAnnounce:GetName() .. "Text"]:SetText("Announce Deaths to Your Guild") cbGuildAnnounce:HookScript("OnClick", function(_, btn, down) FADeathCounterDB.guildAnnounce = cbGuildAnnounce:GetChecked() end) cbGuildAnnounce:SetChecked(FADeathCounterDB.guildAnnounce) - InterfaceOptions_AddCategory(self.panel) + local category = Settings.RegisterCanvasLayoutCategory(self.panel, self.panel.name) + Settings.RegisterAddOnCategory(category) end function f:CountDeath() diff --git a/Death_Counter.toc b/Death_Counter.toc old mode 100644 new mode 100755 index 16dff3c..44f1833 --- a/Death_Counter.toc +++ b/Death_Counter.toc @@ -1,5 +1,5 @@ -## Interface: 100002 -## Version: 1.1.0 +## Interface: 110002 +## Version: 1.1.1 ## Title: Death Counter ## Notes: Track number of deaths and how it has been long since you last died. ## Author: FinalAsgard diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/release-notes.md b/release-notes.md old mode 100644 new mode 100755 index e91f8f9..c52c18a --- a/release-notes.md +++ b/release-notes.md @@ -1,5 +1,12 @@ # Release Notes +## v1.1.1 +--- +**Release Date**: 2024-09-01 + +### NEW + * Fixed compatibility with 11.0.2 + ## v1.1.0 --- **Release Date**: 2022-12-13