Skip to content

Commit

Permalink
Update options.lua
Browse files Browse the repository at this point in the history
Added dropdown option to allow outdated version notification be a popup or a chat window message.
  • Loading branch information
mhco authored Dec 15, 2020
1 parent 4250978 commit a9ff127
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions 4H-Assist/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ function ABP_4H:InitOptions()
alpha = 0.9,
raidLayout = nil,
healerCCW = false,
outdatedVersion = "popup",
},
global = {
},
Expand Down Expand Up @@ -65,7 +66,9 @@ function ABP_4H:InitOptions()
end
setupAlias("options", "opt");
setupAlias("options", "config");
setupAlias("versioncheck", "v");
setupAlias("versioncheck", "vc");
setupAlias("versioncheck", "version");

AceConfig:RegisterOptionsTable(self:ColorizeText(addonText), {
type = "group",
Expand Down Expand Up @@ -175,6 +178,19 @@ function ABP_4H:InitOptions()
get = function(info) return self.db.char.alpha; end,
set = function(info, v) self.db.char.alpha = v; self:RefreshMainWindow(); end,
},
outdatedversion = {
name = "Outdated Version",
order = 10,
desc = "If your addon is out of date, how would you like to be notified?",
type = "select",
values = {
popup = "Popup",
msg = "Chat Message"
},
style = "dropdown",
get = function(info) return self.db.char.outdatedVersion; end,
set = function(info, v) self.db.char.outdatedVersion = v; self:RefreshMainWindow(); end,
},
},
},
},
Expand Down

0 comments on commit a9ff127

Please sign in to comment.