Skip to content

Commit

Permalink
chore: clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
waldenp0nd committed Sep 10, 2024
1 parent 26a8aec commit 1272171
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 23 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @waldenp0nd
5 changes: 4 additions & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
patreon: waldenpond
# Docs for this file can be found here:
# https://docs.github.com/en/github/administering-a-repository/displaying-a-sponsor-button-in-your-repository

buy_me_a_coffee: waldenpond
Empty file modified Bindings.xml
100644 → 100755
Empty file.
33 changes: 14 additions & 19 deletions core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,24 @@ local L = ns.L
local CT = C_Timer

function ravNameplates_OnLoad(self)
self:RegisterEvent("ADDON_LOADED")
self:RegisterEvent("PLAYER_LOGIN")
end

function ravNameplates_OnEvent(_, event, arg)
if arg == name then
if event == "ADDON_LOADED" then
if not RAVN_version then
ns:PrettyPrint(string.format(L.Install, ns.color, ns.version))
elseif RAVN_version ~= ns.version then
ns:PrettyPrint(string.format(L.Update, ns.color, ns.version))
end
if not RAVN_version or RAVN_version ~= ns.version then
print(string.format(L.InstallUpdate, ns.color))
end
RAVN_version = ns.version

CT.After(3, function ()
local key1, key2 = GetBindingKey("RAVENOUS_NAMEPLATES_KEY")
if not key1 and not key2 then
ns:PrettyPrint("\n" .. L.Support1)
end
end)
if event == "PLAYER_LOGIN" then
if not RAVN_version then
ns:PrettyPrint(string.format(L.Install, ns.color, ns.version))
elseif RAVN_version ~= ns.version then
-- Version-specific messages go here...
end
RAVN_version = ns.version

CT.After(3, function ()
local key1, key2 = GetBindingKey("RAVENOUS_NAMEPLATES_KEY")
if not key1 and not key2 then
ns:PrettyPrint("\n" .. L.Support1)
end
end)
end
end

Expand Down
2 changes: 0 additions & 2 deletions locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ L.Support1 = "This Addon uses a Keybind setting to cycle through nameplates. Go
L.Support2 = "Check out the Addon on CurseForge, GitHub, or WoWInterface for more info and support!"
L.Version = "%s is the current version." -- ns.version
L.Install = "Thanks for installing |cff%1$sv%2$s|r!" -- ns.color, ns.version
L.Update = "Thanks for updating to |cff%1$sv%2$s|r!" -- ns.color, ns.version
L.InstallUpdate = "Type |cff%s/ravn help|r to familiarize yourself with the Addon." -- ns.color
L.All = "all"
L.Friendly = "friendly"
L.Enemy = "enemy"
Expand Down
2 changes: 1 addition & 1 deletion ravNameplates.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 110002
## Version: 2.3.1
## Version: 2.3.2

## Name: Ravenous Nameplates
## Title: Ravenous |cff87d387Nameplates|r
Expand Down

0 comments on commit 1272171

Please sign in to comment.