Refactor Buff Ending Announcer to Aura Expiry
- Deleted LibGroupInSpecT-1.1.toc, LibStub.lua, and lib.xml files as they are no longer needed. - Updated localization files (deDE.lua, enUS.lua) to reflect the change from "Buff Ending" to "Aura Expiry". - Renamed BuffEndingAnnouncer module to AuraExpiry and updated references throughout the codebase. - Adjusted options and configuration to align with the new module name. - Updated readme to describe the new Aura Expiry feature instead of Buff Ending Announcer.
This commit is contained in:
@@ -7,7 +7,8 @@ if not HMGT then return end
|
||||
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale(ADDON_NAME, true) or {}
|
||||
|
||||
local BEA = HMGT:NewModule("BuffEndingAnnouncer")
|
||||
local BEA = HMGT:NewModule("AuraExpiry")
|
||||
HMGT.AuraExpiry = BEA
|
||||
HMGT.BuffEndingAnnouncer = BEA
|
||||
|
||||
BEA.runtimeEnabled = false
|
||||
@@ -426,6 +427,7 @@ function BEA:StopRuntime()
|
||||
end
|
||||
|
||||
function BEA:OnInitialize()
|
||||
HMGT.AuraExpiry = self
|
||||
HMGT.BuffEndingAnnouncer = self
|
||||
end
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
local ADDON_NAME = "HailMaryGuildTools"
|
||||
local HMGT = LibStub("AceAddon-3.0"):GetAddon(ADDON_NAME)
|
||||
if not HMGT then return end
|
||||
local BEA = HMGT.BuffEndingAnnouncer
|
||||
local BEA = HMGT.AuraExpiry or HMGT.BuffEndingAnnouncer
|
||||
if not BEA then return end
|
||||
if not HMGT_Config or not HMGT_Config.RegisterOptionsProvider then return end
|
||||
|
||||
@@ -197,7 +197,7 @@ function BEA:BuildOptionsGroup()
|
||||
|
||||
local group = {
|
||||
type = "group",
|
||||
name = L["BEA_NAME"] or "Buff Ending Announcer",
|
||||
name = L["AE_NAME"] or L["BEA_NAME"] or "Aura Expiry",
|
||||
order = 3,
|
||||
childGroups = "tree",
|
||||
args = {
|
||||
@@ -400,7 +400,7 @@ function BEA:GetOptionsGroup()
|
||||
return beaOptionsGroup
|
||||
end
|
||||
|
||||
HMGT_Config:RegisterOptionsProvider("announcer.buffEndingAnnouncer", function()
|
||||
HMGT_Config:RegisterOptionsProvider("announcer.auraExpiry", function()
|
||||
return {
|
||||
path = "announcer",
|
||||
order = 3,
|
||||
|
||||
Reference in New Issue
Block a user