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 »

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: 884
Joined: Sat Dec 05, 2009 3:19 pm

Re: wordwrap

Post by demonnic »

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 »

And that fixes that too! again, thank you.

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

Re: wordwrap

Post by demonnic »

No problem, always happy to help =)

Post Reply