Page 1 of 1

clearWindow(s) removed?

Posted: Wed Nov 18, 2009 12:13 am
by Ramiel
Has clearWindow(string windowname) been removed?

Its still in the documentation but trying to use it on a miniconsole I get this debug:

LUA: ERROR running script Map start (Trigger16) ERROR:Lua error:[string "function cutmap()..."]:8: attempt to call global 'clearWindow' (a nil value)new line arrived:

Using it in a trigger which calls mapstart(). mapstart() is:

function mapstart()
enableTrigger("Map Capture")
clearWindow("mapcap")
end

Re: clearWindow(s) removed?

Posted: Wed Nov 18, 2009 12:59 am
by FormerZmudUser
clearUserWindow( name ) works though. should be clearWindow instead. This is a bit inconsistent.

but nice function index: http://mudlet.git.sourceforge.net/git/g ... D#apiIndex

Re: clearWindow(s) removed?

Posted: Wed Nov 18, 2009 2:45 am
by Ramiel
Ah then, its the documentation thats not quite right.

This line under the createMiniConsole section:

You can use clearWindow/moveCursor etc. functions for this window for custom printing as well as copy & paste functions for colored text copies from the main window or normal echoUserWindow( name, text) for normal printing.

Re: clearWindow(s) removed?

Posted: Wed Nov 18, 2009 10:58 am
by Heiko
I have forgotten to add clearWindow() and make it the default. I'll change the docs to clearWindow() and keep clearUserWindow() for compatibility, but remove it from the documentation.