comparison Libs/AceConfig-3.0/AceConfigRegistry-3.0/AceConfigRegistry-3.0.lua @ 20:9ad7f3c634f1 v8.0.1.020

- Updated Libraries.
author Tercio
date Fri, 20 Jul 2018 19:13:08 -0300
parents 3000eccbf1a0
children
comparison
equal deleted inserted replaced
19:817b319cd8ce 20:9ad7f3c634f1
6 -- * The **appName** field is the options table name as given at registration time \\ 6 -- * The **appName** field is the options table name as given at registration time \\
7 -- 7 --
8 -- :IterateOptionsTables() (and :GetOptionsTable() if only given one argument) return a function reference that the requesting config handling addon must call with valid "uiType", "uiName". 8 -- :IterateOptionsTables() (and :GetOptionsTable() if only given one argument) return a function reference that the requesting config handling addon must call with valid "uiType", "uiName".
9 -- @class file 9 -- @class file
10 -- @name AceConfigRegistry-3.0 10 -- @name AceConfigRegistry-3.0
11 -- @release $Id: AceConfigRegistry-3.0.lua 1161 2017-08-12 14:30:16Z funkydude $ 11 -- @release $Id: AceConfigRegistry-3.0.lua 1169 2018-02-27 16:18:28Z nevcairiel $
12 local CallbackHandler = LibStub("CallbackHandler-1.0") 12 local CallbackHandler = LibStub("CallbackHandler-1.0")
13 13
14 local MAJOR, MINOR = "AceConfigRegistry-3.0", 17 14 local MAJOR, MINOR = "AceConfigRegistry-3.0", 18
15 local AceConfigRegistry = LibStub:NewLibrary(MAJOR, MINOR) 15 local AceConfigRegistry = LibStub:NewLibrary(MAJOR, MINOR)
16 16
17 if not AceConfigRegistry then return end 17 if not AceConfigRegistry then return end
18 18
19 AceConfigRegistry.tables = AceConfigRegistry.tables or {} 19 AceConfigRegistry.tables = AceConfigRegistry.tables or {}
65 local optmethodtable={["nil"]=true,["string"]=true,["function"]=true,["table"]=true, _="methodname, funcref or table"} 65 local optmethodtable={["nil"]=true,["string"]=true,["function"]=true,["table"]=true, _="methodname, funcref or table"}
66 local optmethodbool={["nil"]=true,["string"]=true,["function"]=true,["boolean"]=true, _="methodname, funcref or boolean"} 66 local optmethodbool={["nil"]=true,["string"]=true,["function"]=true,["boolean"]=true, _="methodname, funcref or boolean"}
67 local opttable={["nil"]=true,["table"]=true, _="table"} 67 local opttable={["nil"]=true,["table"]=true, _="table"}
68 local optbool={["nil"]=true,["boolean"]=true, _="boolean"} 68 local optbool={["nil"]=true,["boolean"]=true, _="boolean"}
69 local optboolnumber={["nil"]=true,["boolean"]=true,["number"]=true, _="boolean or number"} 69 local optboolnumber={["nil"]=true,["boolean"]=true,["number"]=true, _="boolean or number"}
70 local optstringnumber={["nil"]=true,["string"]=true,["number"]=true, _="string or number"}
70 71
71 local basekeys={ 72 local basekeys={
72 type=isstring, 73 type=isstring,
73 name=isstringfunc, 74 name=isstringfunc,
74 desc=optstringfunc, 75 desc=optstringfunc,
88 handler=opttable, 89 handler=opttable,
89 get=optmethodfalse, 90 get=optmethodfalse,
90 set=optmethodfalse, 91 set=optmethodfalse,
91 func=optmethodfalse, 92 func=optmethodfalse,
92 arg={["*"]=true}, 93 arg={["*"]=true},
93 width=optstring, 94 width=optstringnumber,
94 } 95 }
95 96
96 local typedkeys={ 97 local typedkeys={
97 header={}, 98 header={},
98 description={ 99 description={