clearWindow(s) removed?

Post Reply
Ramiel
Posts: 15
Joined: Sat Apr 25, 2009 5:57 am

clearWindow(s) removed?

Post by Ramiel » Wed Nov 18, 2009 12:13 am

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

FormerZmudUser
Posts: 13
Joined: Fri May 15, 2009 12:52 pm

Re: clearWindow(s) removed?

Post by FormerZmudUser » Wed Nov 18, 2009 12:59 am

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

Ramiel
Posts: 15
Joined: Sat Apr 25, 2009 5:57 am

Re: clearWindow(s) removed?

Post by Ramiel » Wed Nov 18, 2009 2:45 am

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.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: clearWindow(s) removed?

Post by Heiko » Wed Nov 18, 2009 10:58 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests