Skip to content

Return of Reckoning

Wiki

RoR Wiki

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 – true if the log is enabled.

Details

Errors

  • Error in function call 'TextLogGetPressedFlag': TextLog %s does not exist.
    The message names TextLogGetPressedFlag, not this function.

Example

From ea_uidebugtools/source/debugwindow.lua:

if( IsInternalBuild() and (InterfaceCore.inGame == false) and TextLogGetEnabled( "UiLog" ) )

See also