Mercurial > wow > buffalo2
comparison ObjectiveTracker/Schema.lua @ 38:1f8f9cc3d956
- module integration brought up to speed with current frame management structure
author | Nenue |
---|---|
date | Thu, 21 Apr 2016 11:36:41 -0400 |
parents | e84d645c8ab8 |
children | 92534dc793f2 |
comparison
equal
deleted
inserted
replaced
37:e84d645c8ab8 | 38:1f8f9cc3d956 |
---|---|
5 -- Created: 4/15/2016 11:36 PM | 5 -- Created: 4/15/2016 11:36 PM |
6 | 6 |
7 local B = select(2,...).frame | 7 local B = select(2,...).frame |
8 local T = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') | 8 local T = B:RegisterModule("ObjectiveTracker", _G.VeneerObjectiveWrapper, 'BuffFrame') |
9 local setmetatable, type, rawset = setmetatable, type, rawset | 9 local setmetatable, type, rawset = setmetatable, type, rawset |
10 local print = B.print('Tracker') | 10 local print = B.print('Schema') |
11 local lprint = B.print('Layout') | 11 local lprint = B.print('Layout') |
12 local oprint = B.print('Objectives') | 12 local oprint = B.print('Objectives') |
13 T.defaults.Schema = setmetatable({}, { | 13 T.defaults.Schema = setmetatable({}, { |
14 __newindex = function(schemas,layerName, layerTable) | 14 __newindex = function(schemas,layerName, layerTable) |
15 -- tracker/block/line | 15 -- tracker/block/line |
49 }) | 49 }) |
50 | 50 |
51 T.defaults.Schema.tracker = { | 51 T.defaults.Schema.tracker = { |
52 default = { | 52 default = { |
53 headerbg = {'VERTICAL', 1, 1, 0.5, 0.5, 1, 1, 0.5, 0}, | 53 headerbg = {'VERTICAL', 1, 1, 0.5, 0.5, 1, 1, 0.5, 0}, |
54 headerFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 14, 'OUTLINE'}, | 54 headerFont = {[[Interface\Addons\SharedMedia_MyMedia\font\XOIREQE.TTF]], 13, 'OUTLINE'}, |
55 headerHeight = 16, | |
56 headerSpacing = 0, | |
57 headerColor = {1,1,1,1}, | |
55 blockSpacing = 1, | 58 blockSpacing = 1, |
56 } | 59 } |
57 } | 60 } |
58 T.defaults.Schema.block = { | 61 T.defaults.Schema.block = { |
59 default = { | 62 default = { |
60 titleColor = {1, 0.7, 0, 1}, | 63 titleColor = {1, 1, 1, 1}, |
61 titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .125}, | 64 titlebg = {'HORIZONTAL', 1, 0, .7, 0, 1, 0, .7, .125}, |
62 textbg = {'HORIZONTAL', 0, 0, 0, 0, 0, 0, 0, 0.4 }, | 65 textbg = {'HORIZONTAL', 0, 0, 0, 0, 0, 0, 0, 0.4 }, |
63 selectionbg = {'HORIZONTAL', 1, 1, 1, 0, 1, 1, 1, 0.225}, | 66 selectionbg = {'HORIZONTAL', 1, 1, 1, 0, 1, 1, 1, 0.225}, |
64 titleFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE'}, | 67 titleFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Bold.ttf]], 16, 'OUTLINE'}, |
65 textFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE'}, | 68 textFont = {[[Interface\Addons\SharedMedia_MyMedia\font\ArchivoNarrow-Regular.ttf]], 16, 'OUTLINE'}, |
76 achievement_account = { | 79 achievement_account = { |
77 titleColor = {.35, 0.7, 1, 1}, | 80 titleColor = {.35, 0.7, 1, 1}, |
78 }, | 81 }, |
79 daily = { | 82 daily = { |
80 titleColor = {0, 0.7, 1, 1}, | 83 titleColor = {0, 0.7, 1, 1}, |
81 titlebg = {'HORIZONTAL', 0, .7, 1, .25, 0, 1, .7, .125}, | 84 titlebg = {'HORIZONTAL', 0, .7, 1, 0, 0, 1, .7, .125}, |
82 textbg = {'HORIZONTAL', 0, .7, 1, .075, 0, 1, .7, .1}, | 85 textbg = {'HORIZONTAL', 0, .7, 1, 0, 0, 1, .7, .1}, |
83 }, | 86 }, |
84 weekly = { | 87 weekly = { |
85 titleColor = {.25, 0.7, 1, 1}, | 88 titleColor = {.25, 0.7, 1, 1}, |
86 titlebg = {'HORIZONTAL', 0, .35, .7, .25, 0, .35, .7, .125}, | 89 titlebg = {'HORIZONTAL', 0, .35, .7, 0, 0, .35, .7, .125}, |
87 textbg = {'HORIZONTAL', 0, .35, .7, .1, 0, .35, .7, .075 }, | 90 textbg = {'HORIZONTAL', 0, .35, .7, .0, 0, .35, .7, .075 }, |
88 }, | 91 }, |
89 account = { | 92 account = { |
90 titlebg = {'HORIZONTAL', .1, .1, .1, .25, .1, .1, .1, .125}, | 93 titlebg = {'HORIZONTAL', .1, .1, .1, 0, .1, .1, .1, .125}, |
91 textbg = {'HORIZONTAL', .1, .1, .1, 0.4, .1, .1, .1, .085 }, | 94 textbg = {'HORIZONTAL', .1, .1, .1, 0, .1, .1, .1, .085 }, |
92 }, | 95 }, |
93 -- alliance | 96 -- alliance |
94 faction_1 = { | 97 faction_1 = { |
95 titlebg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, | 98 titlebg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, |
96 textbg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, | 99 textbg = {'HORIZONTAL', .2, .4, 1, 0.4, .2, .4, 1, .085 }, |
101 textbg = {'HORIZONTAL', .6, 0, 0.4, 0.4, .6, 0, 0.4, .085 }, | 104 textbg = {'HORIZONTAL', .6, 0, 0.4, 0.4, .6, 0, 0.4, .085 }, |
102 } | 105 } |
103 } | 106 } |
104 T.defaults.Schema.line = { | 107 T.defaults.Schema.line = { |
105 default = { | 108 default = { |
106 textColor = {.5,.75,1}, | 109 textColor = {1, 1, 1}, |
107 textSpacing = 3, | 110 textSpacing = 3, |
108 textIndent = 3, | 111 textIndent = 3, |
109 }, | 112 }, |
110 completed = { | 113 completed = { |
111 textColor = {0, 1, 0} | 114 textColor = {0, 1, 0} |
122 monster = { | 125 monster = { |
123 textColor = {1,1,0} | 126 textColor = {1,1,0} |
124 }, | 127 }, |
125 item = { | 128 item = { |
126 textColor = {1,.25,.5} | 129 textColor = {1,.25,.5} |
127 } | 130 }, |
131 achievement_complete = { | |
132 textColor = {1, 1, 1, 1}, | |
133 }, | |
134 achievement = { | |
135 textColor = {0, 0.7, 1, 1}, | |
136 }, | |
137 achievement_account = { | |
138 textColor = {.35, 0.7, 1, 1}, | |
139 }, | |
128 } | 140 } |
129 T.defaults.Schema.widget = { | 141 T.defaults.Schema.widget = { |
130 progressbar = { | 142 progressbar = { |
131 | 143 |
132 }, | 144 }, |