Quantcast

Update with libs.

Scott Sibley [08-25-10 - 23:08]
Update with libs.
Give users some feedback about reloading the UI when changing error verbosity.
Filename
StarTip.lua
config.lua
diff --git a/StarTip.lua b/StarTip.lua
index fd22d02..e897550 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -167,7 +167,7 @@ local options = {
 					type = "select",
 					values = LibStub("StarLibError-1.0").defaultTexts,
 					get = function() return StarTip.db.profile.errorLevel end,
-					set = function(info, v) StarTip.db.profile.errorLevel = v end,
+					set = function(info, v) StarTip.db.profile.errorLevel = v; StarTip:Print("Note that changing error verbosity requires a UI reload.") end,
 					order = 11
 				}
 			}
diff --git a/config.lua b/config.lua
index ecca704..140f782 100644
--- a/config.lua
+++ b/config.lua
@@ -14,12 +14,10 @@ StarTip.config = {
 		["rows"] = 6,
 		["cols"] = 30,
 		["transition_timeout"] = 500,
-		["timeout"] = 500,
-		["update"] = 25,
-		["widgets"] = {"widget_key_up", "widget_key_down"},
+		["timeout"] = 5000,
 		["transition_speed"] = 50,
-		["refresh_rate"] = 25,
-		["layouts"] = {"layout_histogram", "layout_startip"},
+		["widgets"] = {"widget_key_up", "widget_key_down"},
+		["layouts"] = {"layout_startip", "layout_histogram"},
 		["font"] = {normal="Interface\\AddOns\\startip\\Fonts\\ttf-bitstream-vera-1.10\\VeraMo.ttf", bold="Interface\\AddOns\\startip\\Fonts\\ttf-bitstream-vera-1.10\\VeraMoBd.ttf", size=12},
 		--["font"] = {file = GameTooltipText:GetFont(), size = 12}
     },
@@ -29,9 +27,9 @@ StarTip.config = {
     },
 	["layout_startip"] = {
 		[1] = { -- row
-    		[1] = "widget_name_label", -- column
+    		--[1] = "widget_name_label", -- column
     		[10] = "widget_name"
-        },
+        }, --[[
 		[2] = {
     		[1] = "widget_class_label",
     		[10] = "widget_class"
@@ -53,7 +51,7 @@ StarTip.config = {
 			[1] = "widget_cpu_label",
 			[10] = "widget_cpu",
 			[20] = "widget_cpu_bar"
-		},
+		},]]
 		["transition"] = 1,
 		["timeout"] = 5000
     },
@@ -75,9 +73,9 @@ StarTip.config = {
 	["widget_name"] = {
 		type = "text",
 		value = "return UnitName('player')",
-		cols = 40,
+		cols = 20,
 		align = ALIGN_MARQUEE,
-		update = 100000,
+		update = 1000,
 		speed = 300,
 		direction = SCROLL_LEFT,
 		dontRtrim = true