-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New "History" module, to show a list of seen things in the session
- Loading branch information
Showing
9 changed files
with
436 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Interface: 110000, 110002, 40400, 11502 | ||
## Title: SilverDragon: History | ||
## Notes: Show the history of seen rares | ||
## Version: @project-version@ | ||
## Author: Kemayo | ||
## eMail: kemayo at gmail dot com | ||
## IconTexture: Interface\Icons\INV_Misc_Head_Dragon_01 | ||
## X-Category: Interface Enhancements | ||
## X-Donate: PayPal:kemayo AT gmail DOT com | ||
## Dependencies: SilverDragon | ||
## LoadManagers: AddonLoader | ||
## X-LoadOn-Always: delayed | ||
|
||
module.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local myname = ... | ||
|
||
local core = LibStub("AceAddon-3.0"):GetAddon("SilverDragon") | ||
local module = core:GetModule("History") | ||
local Debug = core.Debug | ||
local ns = core.NAMESPACE | ||
|
||
function module:RegisterConfig() | ||
local config = core:GetModule("Config", true) | ||
if not config then return end | ||
config.options.plugins.history = { history = { | ||
type = "group", | ||
name = "History", | ||
get = function(info) return self.db.profile[info[#info]] end, | ||
set = function(info, v) | ||
self.db.profile[info[#info]] = v | ||
module:VIGNETTES_UPDATED() | ||
end, | ||
args = { | ||
about = config.desc("Show a list of recently seen mobs, the easier to work out when future spawns will occur.", 0), | ||
-- enabled = config.toggle("Enabled", "Extend the range at which minimap vignettes will appear.", 10), | ||
enabled = { | ||
type = "toggle", | ||
name = "Enabled", | ||
set = function(info, v) | ||
self.db.profile[info[#info]] = v | ||
if v then | ||
self:Enable() | ||
else | ||
self:Disable() | ||
end | ||
end, | ||
order = 10, | ||
}, | ||
combat = config.toggle("Show in combat", "Whether to hide away when combat starts", 15), | ||
loot = config.toggle("Include loot", "Whether to include treasure vignettes", 20), | ||
}, | ||
}, } | ||
end |
Oops, something went wrong.