diff --git a/.docmeta b/.docmeta
deleted file mode 100644
index acbb055..0000000
--- a/.docmeta
+++ /dev/null
@@ -1,3 +0,0 @@
-type: luadoc
-input-files: "**/*.lua"
-output-directory: API
diff --git a/Modules/Text.lua b/Modules/Text.lua
index 3b0e41e..b40136a 100644
--- a/Modules/Text.lua
+++ b/Modules/Text.lua
@@ -441,11 +441,14 @@ function mod:CreateLines()
local lineNum = 0
GameTooltip:ClearLines()
for i, v in ipairs(self) do
- if not self.leftProperty then
- --[[self.leftProp = LibProperty:New(mod, v.name .. " left", v.left)
- self.rightProp = LibProperty:New(mod, v.name .. " right", v.right)
- self.prefixProp = LibProperty:New(mod, v.name .. " prefix", v.prefix)
- self.postfixProp = LibProperty:New(mod, v.name .. " postfix", v.postfix)
+ if not v.leftProp then
+ --[[
+ v.leftProp = LibProperty:New(mod, v.name .. " left", v.left, "", StarTip.db.profile.errorLevel)
+ v.rightProp = LibProperty:New(mod, v.name .. " right", v.right, "", StarTip.db.profile.errorLevel)
+ v.prefixProp = LibProperty:New(mod, v.name .. " prefix", v.prefix, "", StarTip.db.profile.errorLevel)
+ v.postfixProp = LibProperty:New(mod, v.name .. " postfix", v.postfix, "", StarTip.db.profile.errorLevel)
+ v.leftProp:Eval()
+ StarTip:Print(v.leftProp:P2S())
]]
end
if v.enabled and not v.deleted then
@@ -458,12 +461,7 @@ function mod:CreateLines()
right = ''
left, c = Evaluator.ExecuteCode(mod, v.name, v.left)
end
-
- if v.marquee and v.width and left then
- left = makeMarquee(v, left)
- right = ''
- end
-
+
if left and right then
lineNum = lineNum + 1
if v.right then
@@ -489,14 +487,17 @@ function mod:CreateLines()
end
local tmp = v.marquee
- if v.marquee and not v.marqueeObj then
+ if v.marquee then
+ GameTooltip:AddLine(' ', 1, 1, 1)
+ lineNum = lineNum + 1
v.string = v.left
if v.marqueeObj then
v.marqueeObj:Stop() -- just to be double sure
v.marqueeObj:Del()
end
- v.marqueeObj = LibMarquee:New(mod.leftLines[lineNum], mod, v)
+ v.marqueeObj = LibMarquee:New(mod.leftLines[lineNum], mod, v, StarTip.db.profile.errorLevel)
v.marqueeObj:Start()
+
end
end
diff --git a/StarTip.lua b/StarTip.lua
index 96600fa..21e4ff3 100644
--- a/StarTip.lua
+++ b/StarTip.lua
@@ -74,7 +74,8 @@ local defaults = {
unitShow = 1,
objectShow = 1,
unitFrameShow = 1,
- otherFrameShow = 1
+ otherFrameShow = 1,
+ errorLevel = 1
}
}
@@ -159,6 +160,15 @@ local options = {
set = function(info, v) StarTip.db.profile.otherFrameShow = v end,
order = 10
},
+ errorLevel = {
+ name = "Error Level",
+ desc = "StarTip's error level",
+ type = "select",
+ values = {"Quiet", "Normal", "Verbose"},
+ get = function() return StarTip.db.profile.errorLevel end,
+ set = function(info, v) StarTip.db.profile.errorLevel = v end,
+ order = 11
+ }
}
}
}