wordwrap

Geyser is an object oriented framework for creating, updating and organizing GUI elements within Mudlet.
Post Reply
branden7
Posts: 16
Joined: Wed Oct 23, 2013 6:27 pm

wordwrap

Post by branden7 » Wed Oct 23, 2013 7:45 pm

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");

User avatar
demonnic
Posts: 534
Joined: Sat Dec 05, 2009 3:19 pm

Re: wordwrap

Post by demonnic » Wed Oct 23, 2013 8:59 pm

GUI.Box1:setWrap(80) would set a wrapwidth of 80 characters for GUI.Box1

branden7
Posts: 16
Joined: Wed Oct 23, 2013 6:27 pm

Re: wordwrap

Post by branden7 » Wed Oct 23, 2013 9:47 pm

And that fixes that too! again, thank you.

User avatar
demonnic
Posts: 534
Joined: Sat Dec 05, 2009 3:19 pm

Re: wordwrap

Post by demonnic » Wed Oct 23, 2013 10:18 pm

No problem, always happy to help =)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest