ExternalLog
A basic Log window that can be used with any windowed cart
Running this will open a readme.txt with this same text in it
Look inside to find the actual ExternalLog.lua file
Also see 'Example.lua' to see how to use this
Simple Usage
- Place ExternalLog.lua into the same directory as your main.lua
- Inlcude the ExternalLog.lua file with: include("ExternalLog.lua")
- Call ExternalLogWindow() in _init()
- Call Log("Hello World") to add a log message
Other Features
PassPrintToLog():
Call this in _init to be able to use print() to send Log messages
(you can also pass 'false' as a parameter to disable regular printing)
LogMenuItems(OPEN_SHORTCUT, CLEAR_SHORTCUT):
Call this to create menuitems for opening and clearing the Log
(OPEN_SHORTCUT & CLEAR_SHORTCUT should be strings in the form "CTRL-X")
[Please log in to post a comment]