clearWindow(s) removed?

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

clearWindow(s) removed?

Post 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

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

Re: clearWindow(s) removed?

Post 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

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

Re: clearWindow(s) removed?

Post 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.

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

Re: clearWindow(s) removed?

Post 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.

Post Reply