From 83e14c15692012536d83c0c2803b88798914cc25 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Wed, 1 Sep 2010 22:36:58 +0000 Subject: [PATCH] There's a nice demonstration --- Display.lua | 4 ++-- config.lua | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Display.lua b/Display.lua index 4adff47..a22f134 100644 --- a/Display.lua +++ b/Display.lua @@ -382,12 +382,12 @@ function mod:StartDisplays() if k:match("^display_") then if v.driver == "qtip" then local display = LibDriverQTip:New(self, self.environment, k, self.db.profile.config, LCD4WoW.db.profile.errorLevel) - if ResourceServer then ResourceServer:New(display.environment) end + --if ResourceServer then ResourceServer:New(display.environment) end display:Show() tinsert(displays, display) elseif v.driver == "character" then local display = LibDriverCharacter:New(self, self.environment, k, self.db.profile.config, LCD4WoW.db.profile.errorLevel) - if ResourceServer then ResourceServer:New(display.environment) end + --if ResourceServer then ResourceServer:New(display.environment) end display:Show() tinsert(displays, display) end diff --git a/config.lua b/config.lua index 53bcfd7..8a1a87e 100644 --- a/config.lua +++ b/config.lua @@ -8,8 +8,8 @@ local foo = 500 LCD4WoW.config = { ["display_startip"] = { ["enabled"] = true, - --["driver"] = "qtip", - ["layers"] = 1, + ["driver"] = "qtip", + ["layers"] = 2, ["background"] = "d9ccf16f", ["row"] = 500, ["col"] = 0, @@ -27,7 +27,7 @@ LCD4WoW.config = { ["driver"] = "character", ["layers"] = 1, ["background"] = "d9ccf16f", - ["pixel"] = 5, + ["pixel"] = 3, ["row"] = -50, ["col"] = 0, ["rows"] = 1, @@ -152,7 +152,7 @@ LCD4WoW.config = { type = "text", value = [[ --do return random(100) .. "%" end -mem = GetMemUsage("StarLibs-1.0") +mem = GetMemUsage("LCD4WoW") if mem then return memshort(tonumber(format("%.2f", mem))) end @@ -244,7 +244,7 @@ end ["widget_cpu_histogram"] = { type = "histogram", expression = [[ ---do return random(100) end +do return random(100) end cpu, percent, cpudiff, totalCPU, totaldiff = GetCPUUsage("StarLibs-1.0") if cpu then if totaldiff == 0 then return 0 end -- 1.7.9.5