Skip to content

Commit

Permalink
Updated addon for 11.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jonzenor committed Sep 2, 2024
1 parent c2f37c3 commit a54ead4
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
15 changes: 8 additions & 7 deletions Core.lua
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions Death_Counter.toc
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified README.md
100644 → 100755
Empty file.
7 changes: 7 additions & 0 deletions release-notes.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a54ead4

Please sign in to comment.