This script creates the autoWrap class that is a mini console that automatically rewraps text as it is resized or has the font size changed, and allows access to the most commonly used mini console functions. For functions that don't affect the text or the size of the text display area in the mini console, you would just use the regular functions with the same name you used when creating the autoWrap object, while for the relevant functions, you can either call them as methods on the object returned when the autoWrap object is created, or call them via autoWrap.<function>(name,...).
resize, clear, append, setFontSize, echo, cecho, decho, hecho, deleteLine, moveCursor, moveCursorEnd, insertText, cinsertText
The resize function mimics the resizeWindow function, the clear function mimics the clearWindow function, the append function mimics the appendBuffer function, and the setFontSize function mimics the setMiniConsoleFontSize function. Additionally, there is a delete function which clears the window, hides it, and removes it from the list of autoWrap consoles.
To create a new autoWrap window, use the autoWrap.new function. Syntax: autoWrap.new(name, font_size, [optional] x, y, width, height). Ex: my_win = autoWrap.new("my console",12,0,0,300,400)
Share your scripts and packages with other Mudlet users.
1 post • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest