Nenue@34: --- ${PACKAGE_NAME} Nenue@34: -- @file-author@ Nenue@34: -- @project-revision@ @project-hash@ Nenue@34: -- @file-revision@ @file-hash@ Nenue@34: -- Created: 4/15/2016 11:36 PM Nenue@34: Nenue@34: local B = select(2,...).frame Nenue@34: local T = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') Nenue@34: local setmetatable, type, rawset = setmetatable, type, rawset Nenue@34: local print = B.print('Schema') Nenue@34: T.defaults.Schema = setmetatable({}, { Nenue@34: __newindex = function(schemas,layerName, layerTable) Nenue@34: -- tracker/block/line Nenue@34: if type(layerTable) == 'table' then Nenue@34: rawset(schemas, layerName, setmetatable(layerTable, { Nenue@34: __index = function(layerTable, schemaName) Nenue@34: Nenue@34: end, Nenue@34: __newindex = function(layerTable, schemaName, schemaTable) Nenue@34: -- schema table Nenue@34: if type(schemaTable) == 'table' then Nenue@34: rawset(layerTable, schemaName, setmetatable(schemaTable, { Nenue@34: __index = function(schemaTable, key) Nenue@34: print('substituting a default value for |cFF00FFFF', layerName..'|r.|cFF0088FF'..schemaName..'|r.'..key) Nenue@34: return layerTable.default[key] Nenue@34: end Nenue@34: })) Nenue@34: end Nenue@34: end, Nenue@34: })) Nenue@34: end Nenue@34: end Nenue@34: }) Nenue@34: Nenue@34: T.defaults.Schema = { Nenue@34: tracker = { Nenue@34: default = { Nenue@34: headerbg = {'VERTICAL', 1, 1, 0.5, 0.5, 1, 1, 0.5, 0}, Nenue@34: headerFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 14, 'OUTLINE'}, Nenue@34: blockSpacing = 1, Nenue@34: } Nenue@34: }, Nenue@34: block = { Nenue@34: default = { Nenue@35: titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .125}, Nenue@34: textbg = {'HORIZONTAL', 0, 0, 0, 0.4, 0, 0, 0, 0 }, Nenue@34: selectionbg = {'HORIZONTAL', 1, 1, 1, 0, 1, 1, 1, 0.225}, Nenue@34: titleFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE'}, Nenue@34: textFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE'}, Nenue@34: titleIndent = 4, Nenue@34: titleSpacing = 3, Nenue@34: textIndent = 3, Nenue@34: textSpacing = 3, Nenue@34: rewardSize = 24, Nenue@34: }, Nenue@34: daily = { Nenue@34: titlebg = {'HORIZONTAL', 0, .7, 1, .25, 0, 1, .7, .125}, Nenue@34: textbg = {'HORIZONTAL', 0, .7, 1, .1, 0, 1, .7, .075 }, Nenue@34: }, Nenue@34: weekly = { Nenue@34: titlebg = {'HORIZONTAL', 0, .35, .7, .25, 0, .35, .7, .125}, Nenue@34: textbg = {'HORIZONTAL', 0, .35, .7, .1, 0, .35, .7, .075 }, Nenue@34: }, Nenue@34: account = { Nenue@34: titlebg = {'HORIZONTAL', .1, .1, .1, .25, .1, .1, .1, .125}, Nenue@34: textbg = {'HORIZONTAL', .1, .1, .1, 0.4, .1, .1, .1, .085 }, Nenue@34: }, Nenue@34: -- alliance Nenue@34: faction_1 = { Nenue@34: titlebg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, Nenue@34: textbg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, Nenue@34: }, Nenue@34: -- horde Nenue@34: faction_2 = { Nenue@34: titlebg = {'HORIZONTAL', .6, 0, 0.4, 0.4, .6, 0, 0.4, .085 }, Nenue@34: textbg = {'HORIZONTAL', .6, 0, 0.4, 0.4, .6, 0, 0.4, .085 }, Nenue@34: } Nenue@34: }, Nenue@34: line = { Nenue@34: default = { Nenue@34: textColor = {.5,.75,1}, Nenue@34: textSpacing = 3, Nenue@34: textIndent = 3, Nenue@34: }, Nenue@34: completed = { Nenue@34: textColor = {0, 1, 0} Nenue@34: }, Nenue@34: failed = { Nenue@34: textColor = {1,0,0 } Nenue@34: }, Nenue@34: autocomplete = { Nenue@34: textColor = {0,1,0 } Nenue@34: }, Nenue@34: objectColor = { Nenue@34: textColor = {0,1,1} Nenue@34: }, Nenue@34: monster = { Nenue@34: textColor = {1,1,0} Nenue@34: }, Nenue@34: item = { Nenue@34: textColor = {1,.25,.5} Nenue@34: } Nenue@34: }, Nenue@34: widget = { Nenue@34: progressbar = { Nenue@34: Nenue@34: }, Nenue@34: timer = { Nenue@34: Nenue@34: } Nenue@34: }, Nenue@34: }