Quantcast

Update to a few library changes

Scott Sibley [09-25-10 - 00:17]
Update to a few library changes
Filename
Display.lua
config.lua
diff --git a/Display.lua b/Display.lua
index 695beb3..d1221a1 100644
--- a/Display.lua
+++ b/Display.lua
@@ -408,7 +408,7 @@ function mod:RebuildOpts()
 				options.widgets.args.text.args[k:gsub(" ", "_")] = {
 					name = k:gsub("widget_", ""),
 					type = "group",
-					args = WidgetText:GetOptions(LCD4WoW, v, k),
+					args = WidgetText:GetOptions(v, LCD4WoW.RebuildOpts, LCD4WOW),
 					order = 1
 				}
 				options.widgets.args.text.args[k:gsub(" ", "_")].args.delete = {
@@ -440,7 +440,7 @@ function mod:RebuildOpts()
 				options.widgets.args.histogram.args[k:gsub(" ", "_")] = {
 					name = k,
 					type = "group",
-					args = WidgetHistogram:GetOptions(LCD4WoW, v, k),
+					args = WidgetHistogram:GetOptions(v, LCD4WoW.RebuildOpts, LCD4WoW),
 					order = 1
 				}
 				options.widgets.args.histogram.args[k:gsub(" ", "_")].args.delete = {
@@ -472,7 +472,7 @@ function mod:RebuildOpts()
 				options.widgets.args.key.args[k:gsub(" ", "_")] = {
 					name = k,
 					type = "group",
-					args = WidgetKey:GetOptions(LCD4WoW, v, k),
+					args = WidgetKey:GetOptions(v, LCD4WoW.RebuildOpts, LCD4WoW),
 					order = 3
 				}
 				options.widgets.args.key.args[k:gsub(" ", "_")].args.delete = {
@@ -488,7 +488,7 @@ function mod:RebuildOpts()
 				options.widgets.args.timers.args[k:gsub(" ", "_")] = {
 					name = k,
 					type = "group",
-					args = WidgetTimer:GetOptions(LCD4WoW, v, k),
+					args = WidgetTimer:GetOptions(v, LCD4WoW.RebuildOpts, LCD4WoW),
 					order = 3
 				}
 				options.widgets.args.timers.args[k:gsub(" ", "_")].args.delete = {
diff --git a/config.lua b/config.lua
index d4355a6..86864a3 100644
--- a/config.lua
+++ b/config.lua
@@ -52,7 +52,7 @@ LCD4WoW.config = {
 		["widgets"] = {"widget_key_up", "widget_key_down", "widget_resources_timer"},
 		["layouts"] = {"layout_lcd4wow", "layout_histogram_cpu", "layout_histogram_mem"},
 		["font"] = {normal="Interface\\AddOns\\LCD4WoW\\Fonts\\ttf-bitstream-vera-1.10\\VeraMo.ttf", bold="Interface\\AddOns\\LCD4WoW\\Fonts\\ttf-bitstream-vera-1.10\\VeraMoBd.ttf", size=12},
-		["point"] = {"CENTER", "UIParent", "CENTER", 0, 200}
+		["points"] = {{"CENTER", "UIParent", "CENTER", 0, 200}}
     },
     ["display_character"] = {
 		["addon"] = "LCD4WoW",
@@ -70,8 +70,8 @@ LCD4WoW.config = {
 		["transition_speed"] = 50,
 		["widgets"] = {"widget_key_up", "widget_key_down", "widget_resources_timer"},
 		["layouts"] = {"layout_tiny"},
-		["point"] = {"TOPLEFT", "GameTooltip", "BOTTOMLEFT", 12 * 6 + 6, -130},
-		["parent"] = "GameTooltip",
+		["points"] = {{"CENTER", UIParent, "CENTER"}},
+		["parent"] = "UIParent",
 		["strata"] = 1
     },
 	["display_icon"] = {
@@ -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},
-		["point"] = {"TOPLEFT", "GameTooltip", "BOTTOMLEFT", 0, -100},
+		["points"] = {{"TOPLEFT", "GameTooltip", "BOTTOMLEFT", 0, -100}},
 		["parent"] = "GameTooltip"
 	},
 	["display_health"] = {
@@ -99,7 +99,7 @@ LCD4WoW.config = {
 		["cols"] = 12,
 		["layouts"] = {"layout_health"},
 		["widgets"] = {},
-		["point"] = {"TOPLEFT", "GameTooltip", "BOTTOMLEFT", 0, -130},
+		["points"] = {{"TOPLEFT", "GameTooltip", "BOTTOMLEFT", 0, -130}},
 		["parent"] = "GameTooltip",
 		["strata"] = #stratas,
 	},
@@ -113,7 +113,7 @@ LCD4WoW.config = {
 		["cols"] = 12,
 		["layouts"] = {"layout_mana"},
 		["widgets"] = {},
-		["point"] = {"TOPRIGHT", "GameTooltip", "BOTTOMRIGHT", 0, -130},
+		["points"] = {{"TOPRIGHT", "GameTooltip", "BOTTOMRIGHT", 0, -130}},
 		["parent"] = "GameTooltip",
 		["strata"] = #stratas
 	},