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