From fcab772d1d810adc8188263a21115eadef23fcc2 Mon Sep 17 00:00:00 2001 From: Scott Sibley Date: Thu, 2 Sep 2010 22:18:36 +0000 Subject: [PATCH] Don't load none-enabled displays. --- Display.lua | 4 ++-- LCD4WoW.lua | 2 +- config.lua | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Display.lua b/Display.lua index a22f134..79483df 100644 --- a/Display.lua +++ b/Display.lua @@ -380,12 +380,12 @@ end function mod:StartDisplays() for k, v in pairs(self.db.profile.config) do if k:match("^display_") then - if v.driver == "qtip" then + if v.driver == "qtip" and v.enabled 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 display:Show() tinsert(displays, display) - elseif v.driver == "character" then + elseif v.driver == "character" and v.enabled 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 display:Show() diff --git a/LCD4WoW.lua b/LCD4WoW.lua index 4d70c8a..d75b620 100644 --- a/LCD4WoW.lua +++ b/LCD4WoW.lua @@ -70,7 +70,7 @@ end function LCD4WoW:RebuildOpts() - local driver = self:GetModule("LCD4WoWDriver") + local driver = self:GetModule("LCD4WoW") options.args = driver:GetOptions() options.args.errorLevel = { name = "Error Verbosity", diff --git a/config.lua b/config.lua index 1c98b4b..a4b21ff 100644 --- a/config.lua +++ b/config.lua @@ -8,7 +8,7 @@ local foo = 500 LCD4WoW.config = { ["display_startip"] = { ["enabled"] = true, - --["driver"] = "qtip", + ["driver"] = "qtip", ["layers"] = 2, ["background"] = "d9ccf16f", ["row"] = 500, @@ -23,14 +23,14 @@ LCD4WoW.config = { ["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}, }, ["display_character"] = { - ["enabled"] = true, + ["enabled"] = false, ["driver"] = "character", ["layers"] = 2, ["background"] = "d9ccf16f", ["pixel"] = 2, ["row"] = -50, ["col"] = 0, - ["rows"] = 6, + ["rows"] = 3, ["cols"] = 30, ["update"] = 100, ["timeout"] = 7000, -- 1.7.9.5