Mercurial > wow > devian
comparison Config.lua @ 66:516ceb31703d
New profile system that stores channel and tag settings for each saved AddOn list.
A boatload of structural revisions, making better use of the built-in table, and hopefully making console command issues easier to pick up.
| author | Nenue |
|---|---|
| date | Sat, 05 Mar 2016 13:35:51 -0500 |
| parents | c3166f700438 |
| children |
comparison
equal
deleted
inserted
replaced
| 65:4148c90986e7 | 66:516ceb31703d |
|---|---|
| 1 --- Devian - Config.lua | 1 --- Devian - Config.lua |
| 2 -- @file-author@ | 2 -- @file-author@ |
| 3 -- @project-revision@ @project-hash@ | 3 -- @project-revision@ @project-hash@ |
| 4 -- @file-revision@ @file-hash@ | 4 -- @file-revision@ @file-hash@ |
| 5 -- Created: 12/30/2015 1:35 AM | 5 -- Created: 12/30/2015 1:35 AM |
| 6 | 6 local _, D = ... |
| 7 if not LibStub then | |
| 8 print('Something has happened...') | |
| 9 end | |
| 10 local D = LibStub("AceAddon-3.0"):GetAddon("Devian") | |
| 11 DevCon = D:NewModule("Config") | 7 DevCon = D:NewModule("Config") |
| 12 local Cf, tinsert, ipairs, tostring = DevCon, table.insert, ipairs, tostring | 8 local Cf, tinsert, ipairs, tostring = DevCon, table.insert, ipairs, tostring |
| 13 local PLAYER_REALM = UnitName("player") .. '-' .. GetRealmName() | 9 local PLAYER_REALM = UnitName("player") .. '-' .. GetRealmName() |
| 14 local db | 10 local db |
| 11 local print = D.print | |
| 15 | 12 |
| 16 | 13 |
| 17 local SetOpt = function(info, value) | 14 local SetOpt = function(info, value) |
| 18 db[info[#info]] = value | 15 db[info[#info]] = value |
| 19 end | 16 end |
