Page 1 of 1

wordwrap

Posted: Wed Oct 23, 2013 7:45 pm
by branden7
sorry for all the questions..but...
Can anyone help me got a MiniConsole to wordwrap?

I have no idea how to go about doing that.
I took the stock GUI and changed one of the label boxes to a MiniConsole box because it seemed to work better for capturing arrivals, departures, and OOC tells. But now the text goes off the screen. I tried to add CSS but it just broke the whole thing. Heres what it looks like now:
Code: [show] | [select all] lua
GUI.Box1 = Geyser.MiniConsole:new({
  name = "GUI.Box1",
  x = 0, y = 0,
  width = "100%",
  height = "50%",
},GUI.Right)
and my trigger is:
Code: [show] | [select all] lua
GUI.Box1:echo(line .. "\n");

Re: wordwrap

Posted: Wed Oct 23, 2013 8:59 pm
by demonnic
GUI.Box1:setWrap(80) would set a wrapwidth of 80 characters for GUI.Box1

Re: wordwrap

Posted: Wed Oct 23, 2013 9:47 pm
by branden7
And that fixes that too! again, thank you.

Re: wordwrap

Posted: Wed Oct 23, 2013 10:18 pm
by demonnic
No problem, always happy to help =)