#300 graphics alias functions
This commit is contained in:
@@ -45,14 +45,14 @@ local function textbox(args)
|
||||
|
||||
-- use cursor position to align this line
|
||||
if alignment == TEXT_ALIGN.CENTER then
|
||||
e.window.setCursorPos(math.floor((e.frame.w - len) / 2) + 1, i)
|
||||
e.w_set_cur(math.floor((e.frame.w - len) / 2) + 1, i)
|
||||
elseif alignment == TEXT_ALIGN.RIGHT then
|
||||
e.window.setCursorPos((e.frame.w - len) + 1, i)
|
||||
e.w_set_cur((e.frame.w - len) + 1, i)
|
||||
else
|
||||
e.window.setCursorPos(1, i)
|
||||
e.w_set_cur(1, i)
|
||||
end
|
||||
|
||||
e.window.write(lines[i])
|
||||
e.w_write(lines[i])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user