Mercurial > wow > buffalo2
diff 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 |
line wrap: on
line diff
--- a/Init.lua Sat Apr 02 17:46:52 2016 -0400 +++ b/Init.lua Mon Apr 04 03:16:22 2016 -0400 @@ -168,6 +168,8 @@ B.Conf = setmetatable(VeneerData, {__index = function(_, k) return defaults[k] end}) + + -- suffix tables for name, display in pairs(displays) do display.conf = setmetatable({}, { @@ -236,16 +238,21 @@ for level, batch in ipairs(moduleStack) do print('config level', level) for name, module in pairs(batch) do - print('integrity check', name) + if module.defaults then + print('setting defaults for module', name) + --[===[@non-debug@ + if not VeneerData[name] then + --@end-non-debug@]===] + VeneerData[name] = {} + --[===[@non-debug@ + end + --@end-non-debug@]===] + for k,v in pairs(module.defaults) do + VeneerData[name][k] = v + end + module.Conf = VeneerData[name] + end - --[===[@non-debug@ - if module.defaults and not VeneerData[name] then - --@end-non-debug@]===] - print('Adding defaults from module ', name) - VeneerData[name] = module.default - --[===[@non-debug@ - end - --@end-non-debug@]===] end end