Quantcast

Bug fix and adjusted defaults a bit to not use DriverCharacter out of the box. Looks better but it's a bit heavy on CPU usage.

Scott Sibley [03-19-11 - 22:59]
Bug fix and adjusted defaults a bit to not use DriverCharacter out of the box. Looks better but it's a bit heavy on CPU usage.
Filename
Display.lua
config.lua
diff --git a/Display.lua b/Display.lua
index 816b54a..edc6e77 100644
--- a/Display.lua
+++ b/Display.lua
@@ -374,7 +374,7 @@ function mod:RebuildOpts()
 			for kk, vv in pairs(driverOptions) do
 				options.displays.args[k:gsub(" ", "_")].args[kk] = vv
 			end
-			if v.widgets then
+			if v.widgets and false then -- FIXME: ...args.widgets is nil?
 				for i, widget in ipairs(v.widgets) do
 					options.displays.args[k:gsub(" ", "_")].args.widgets.args[widget] = {
 						name = widget,
diff --git a/config.lua b/config.lua
index c4694c2..860422b 100644
--- a/config.lua
+++ b/config.lua
@@ -56,7 +56,7 @@ LCD4WoW.config = {
     },
     ["display_character"] = {
 		["addon"] = "LCD4WoW",
-		["enabled"] = true,
+		["enabled"] = false,
 		["driver"] = "character",
 		["layers"] = 1,
 		["background"] = "d9ccf16f",
@@ -86,7 +86,7 @@ LCD4WoW.config = {
 		["layouts"] = {"layout_icon"},
 		["widgets"] = {},
 		["font"] = {normal="Interface\\AddOns\\LCD4WoW\\Fonts\\ttf-bitstream-vera-1.10\\VeraMo.ttf", size=1},
-		["points"] = {{"CENTER"}},
+		["points"] = {{"CENTER", "UIParent", "CENTER", 400, 0}},
 		["parent"] = "UIParent"
 	},
 	["display_health"] = {
@@ -153,7 +153,7 @@ Update()
 			[1] = {
 				[1] = "widget_name"
 			},
-			--[[[2] = {
+			[2] = {
 				[1] = "widget_icon_blob",
 				[2] = "widget_icon_ekg",
 				[3] = "widget_icon_timer",
@@ -174,7 +174,7 @@ Update()
 				[18] = "widget_icon_wave",
 				[19] = "widget_icon_blob",
 				[20] = "widget_icon_ekg",
-			}]]
+			}
 		}
 	},
 	["layout_blank"] = {