small bugfix
This commit is contained in:
@@ -64,8 +64,10 @@ local bInstance = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
local function drawFrames()
|
local function drawFrames()
|
||||||
mainFrame:draw()
|
if(mainFrame~=nil)then
|
||||||
mainFrame:drawUpdate()
|
mainFrame:draw()
|
||||||
|
mainFrame:drawUpdate()
|
||||||
|
end
|
||||||
for _,v in pairs(monFrames)do
|
for _,v in pairs(monFrames)do
|
||||||
v:draw()
|
v:draw()
|
||||||
v:drawUpdate()
|
v:drawUpdate()
|
||||||
|
|||||||
@@ -86,9 +86,10 @@ return function(name)
|
|||||||
local splittedText = utils.splitString(self:getValue(), " ")
|
local splittedText = utils.splitString(self:getValue(), " ")
|
||||||
local text = {}
|
local text = {}
|
||||||
local line = ""
|
local line = ""
|
||||||
for _,v in pairs(splittedText)do
|
for k,v in pairs(splittedText)do
|
||||||
if(line:len()+v:len()<=self.width)then
|
if(line:len()+v:len()<=self.width)then
|
||||||
line = line=="" and v or line.." "..v
|
line = line=="" and v or line.." "..v
|
||||||
|
if(k==#splittedText)then table.insert(text, line) end
|
||||||
else
|
else
|
||||||
table.insert(text, line)
|
table.insert(text, line)
|
||||||
line = v:sub(1,self.width)
|
line = v:sub(1,self.width)
|
||||||
@@ -98,11 +99,7 @@ return function(name)
|
|||||||
self.parent:setText(obx, oby+k-1, v)
|
self.parent:setText(obx, oby+k-1, v)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
for n = 1, self.height do
|
self.parent:setText(obx, oby, utils.getTextHorizontalAlign(self:getValue(), self.width, textHorizontalAlign))
|
||||||
if (n == verticalAlign) then
|
|
||||||
self.parent:setText(obx, oby + (n - 1), utils.getTextHorizontalAlign(self:getValue(), self.width, textHorizontalAlign))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local tData = bigFont(fontsize, self:getValue(), self.fgColor, self.bgColor or colors.black)
|
local tData = bigFont(fontsize, self:getValue(), self.fgColor, self.bgColor or colors.black)
|
||||||
|
|||||||
Reference in New Issue
Block a user