Don't load none-enabled displays.
Scott Sibley [09-02-10 - 22:18]
Don't load none-enabled displays.
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,