Log In  


Cart #external_log-0 | 2024-04-05 | Embed ▽ | License: CC4-BY-NC-SA
1

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

  1. Place ExternalLog.lua into the same directory as your main.lua
  2. Inlcude the ExternalLog.lua file with: include("ExternalLog.lua")
  3. Call ExternalLogWindow() in _init()
  4. 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")

1



[Please log in to post a comment]