API:TextLogGetEnabled
From RoR Wiki
UI Lua API · TextLog functions
Version: WAR 1.4.8
Returns whether a text log accepts new entries.
enabled = TextLogGetEnabled(logName)
Arguments
- logName
string– Name of the text log.
Returns
- enabled
boolean–trueif the log is enabled.
Details
- See TextLogSetEnabled for what the flag does.
Errors
Error in function call 'TextLogGetPressedFlag': TextLog %s does not exist.
The message namesTextLogGetPressedFlag, not this function.
Example
From ea_uidebugtools/source/debugwindow.lua:
if( IsInternalBuild() and (InterfaceCore.inGame == false) and TextLogGetEnabled( "UiLog" ) )
