I am trying to get the scrolling text window plugin to work. Nick posted it here: https://www.gammon.com.au/forum/?id=13916
Just experimenting with it, I could NOT get the text to wrap at all. Everything else works as is.
Replacing with does not wrap the line either. How do I get this plugin to wrap the text?
Just experimenting with it, I could NOT get the text to wrap at all. Everything else works as is.
Quote:
require "serialize"
ScrollingPlugin = "a160a0dc029b28fc970a935d"
width = 200
height = 400
CallPlugin (ScrollingPlugin, "SetSize" , width, height)
CallPlugin (ScrollingPlugin, "SetTitle", "Tells")
lines = { }
for x = 1, 300 do
lines [x] = string.format ("Line Line Line Line End %x", x)
end -- for
CallPlugin (ScrollingPlugin, "SetText", serialize.save_simple (lines))
require "serialize"
ScrollingPlugin = "a160a0dc029b28fc970a935d"
width = 200
height = 400
CallPlugin (ScrollingPlugin, "SetSize" , width, height)
CallPlugin (ScrollingPlugin, "SetTitle", "Tells")
lines = { }
for x = 1, 300 do
lines [x] = string.format ("Line Line Line Line End %x", x)
end -- for
CallPlugin (ScrollingPlugin, "SetText", serialize.save_simple (lines))
Replacing
CallPlugin (ScrollingPlugin, "SetText", serialize.save_simple (lines))CallPlugin ("ScrollingPlugin, "AddLine", serialize.save_simple (lines), wrap)