FancyInfoLogger
A FancyInfoLogger instance, see FancyInfoLogger for more information.
Functions
getDefaultText
FancyInfoLogger:getDefaultText()
Gets the default text.
Returns:
- defaultText [ string ] The default text.
setDefaultText
FancyInfoLogger:setDefaultText( text, ... )
Sets the default text. Note that text and all variadic arguments are passed through sm.scrapcomputers.languageManager.translatable.
Arguments:
- text [ string ] The translation text to set.
- ... [ any[] ] Arguments for the translation text.
newFromSharedTable
FancyInfoLogger:newFromSharedTable( data )
Creates an instance from the data of a SharedTable.
Arguments:
- data [ table ] The data.
Returns:
- [ self ] The created instance.
showLog
FancyInfoLogger:showLog( text, color, ... )
Sends a log. Note that text and all variadic arguments are passed through sm.scrapcomputers.languageManager.translatable.
Arguments:
- text [ string ] The translation text to set.
- color [ string? ] The color of the log (optional).
- ... [ any[] ] Arguments for the translation text.
getLog
FancyInfoLogger:getLog()
Gets the current log with animation. You should put the returned value into a text widget every tick.
Returns:
- [ string ] The current log.