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
clearWindow(s) removed?
-
- Posts: 13
- Joined: Fri May 15, 2009 12:52 pm
Re: clearWindow(s) removed?
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
but nice function index: http://mudlet.git.sourceforge.net/git/g ... D#apiIndex
Re: clearWindow(s) removed?
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.
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?
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.