comparison Libs/AceConfig-3.0/AceConfig-3.0.lua @ 17:3000eccbf1a0 v7.3.0.017

- ToC Update.
author Tercio
date Sat, 02 Sep 2017 14:10:48 -0300
parents fc346da3afd9
children
comparison
equal deleted inserted replaced
16:6c64dd7f16a2 17:3000eccbf1a0
1 --- AceConfig-3.0 wrapper library. 1 --- AceConfig-3.0 wrapper library.
2 -- Provides an API to register an options table with the config registry, 2 -- Provides an API to register an options table with the config registry,
3 -- as well as associate it with a slash command. 3 -- as well as associate it with a slash command.
4 -- @class file 4 -- @class file
5 -- @name AceConfig-3.0 5 -- @name AceConfig-3.0
6 -- @release $Id: AceConfig-3.0.lua 969 2010-10-07 02:11:48Z shefki $ 6 -- @release $Id: AceConfig-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $
7 7
8 --[[ 8 --[[
9 AceConfig-3.0 9 AceConfig-3.0
10 10
11 Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole. 11 Very light wrapper library that combines all the AceConfig subcomponents into one more easily used whole.
12 12
13 ]] 13 ]]
14 14
15 local MAJOR, MINOR = "AceConfig-3.0", 2 15 local cfgreg = LibStub("AceConfigRegistry-3.0")
16 local cfgcmd = LibStub("AceConfigCmd-3.0")
17
18 local MAJOR, MINOR = "AceConfig-3.0", 3
16 local AceConfig = LibStub:NewLibrary(MAJOR, MINOR) 19 local AceConfig = LibStub:NewLibrary(MAJOR, MINOR)
17 20
18 if not AceConfig then return end 21 if not AceConfig then return end
19 22
20 local cfgreg = LibStub("AceConfigRegistry-3.0")
21 local cfgcmd = LibStub("AceConfigCmd-3.0")
22 --TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true) 23 --TODO: local cfgdlg = LibStub("AceConfigDialog-3.0", true)
23 --TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true) 24 --TODO: local cfgdrp = LibStub("AceConfigDropdown-3.0", true)
24 25
25 -- Lua APIs 26 -- Lua APIs
26 local pcall, error, type, pairs = pcall, error, type, pairs 27 local pcall, error, type, pairs = pcall, error, type, pairs