comparison Config.lua @ 24:66b927b46776

Refine the XML data logic, and sort out some EnableMouse inconsistencies.
author Nenue
date Mon, 11 Apr 2016 09:07:40 -0400
parents 3dbcad2b387d
children
comparison
equal deleted inserted replaced
23:e837384ac363 24:66b927b46776
16 return ('%d'):format(number) 16 return ('%d'):format(number)
17 end 17 end
18 18
19 return (("%%.%df"):format(decimals)):format(number) 19 return (("%%.%df"):format(decimals)):format(number)
20 end 20 end
21
22 M.defaults = {
23 enable = true
24 }
21 25
22 --- STATE VARIABLES 26 --- STATE VARIABLES
23 local configInit 27 local configInit
24 --- Dummies for addon table upvalues 28 --- Dummies for addon table upvalues
25 local configFrames = {} -- actual frame objects 29 local configFrames = {} -- actual frame objects
375 379
376 B.UpdateConfigLayers() 380 B.UpdateConfigLayers()
377 end 381 end
378 382
379 M.OnEnable = function() 383 M.OnEnable = function()
384 print('|cFFFF0088config module', B.Conf.ConfigMode)
380 M.Command(B.Conf.ConfigMode) 385 M.Command(B.Conf.ConfigMode)
381 end 386 end
382 387
383 M.OnInitialize = function() 388 M.OnInitialize = function()
384 DEFAULT_CHAT_FRAME:AddMessage("|cFF22D822Veneer|r") 389 DEFAULT_CHAT_FRAME:AddMessage("|cFF22D822Veneer|r")