comparison Init.lua @ 14:ed642234f017

ObjectiveFrame - implement proper tracker name text - expanded tracker prototypes to cover "objective lines" formatting and accommodation of widget variables - implement the progress bars for bonus objectives ObjectiveStyle - moved `UpdateWrapperStyle` over and renamed it to fit semantics - change the formula for block.`height` to measure non-widget content only - allows widgets to position relative to text - size FontString `status` to match block.`height` - full block height is acquired by adding block.`height` and block.`attachmentHeight` which is calculated during objective parsing ObjectiveWidgets - use string keys for generated widgets to deal with multiple objectives under the same questID, and maybe dungeon objectives - wrapper buttons use a common code path - specialized handlers for wheel scrolling moved over to fit semantics
author Nenue
date Mon, 04 Apr 2016 03:16:22 -0400
parents 9455693fc290
children d5ee940de273
comparison
equal deleted inserted replaced
13:9455693fc290 14:ed642234f017
165 end 165 end
166 print('Veneer defaults being used.') 166 print('Veneer defaults being used.')
167 end 167 end
168 168
169 B.Conf = setmetatable(VeneerData, {__index = function(_, k) return defaults[k] end}) 169 B.Conf = setmetatable(VeneerData, {__index = function(_, k) return defaults[k] end})
170
171
170 172
171 -- suffix tables 173 -- suffix tables
172 for name, display in pairs(displays) do 174 for name, display in pairs(displays) do
173 display.conf = setmetatable({}, { 175 display.conf = setmetatable({}, {
174 __index = function(_, k) 176 __index = function(_, k)
234 236
235 237
236 for level, batch in ipairs(moduleStack) do 238 for level, batch in ipairs(moduleStack) do
237 print('config level', level) 239 print('config level', level)
238 for name, module in pairs(batch) do 240 for name, module in pairs(batch) do
239 print('integrity check', name) 241 if module.defaults then
240 242 print('setting defaults for module', name)
241 --[===[@non-debug@ 243 --[===[@non-debug@
242 if module.defaults and not VeneerData[name] then 244 if not VeneerData[name] then
243 --@end-non-debug@]===] 245 --@end-non-debug@]===]
244 print('Adding defaults from module ', name) 246 VeneerData[name] = {}
245 VeneerData[name] = module.default 247 --[===[@non-debug@
246 --[===[@non-debug@ 248 end
249 --@end-non-debug@]===]
250 for k,v in pairs(module.defaults) do
251 VeneerData[name][k] = v
252 end
253 module.Conf = VeneerData[name]
247 end 254 end
248 --@end-non-debug@]===] 255
249 end 256 end
250 end 257 end
251 258
252 259
253 if #checkForConfig >= 1 then 260 if #checkForConfig >= 1 then