API:LogDisplaySetShowLogName
From RoR Wiki
UI Lua API · LogDisplay functions
Version: WAR 1.4.8
Sets whether a LogDisplay window prints the text log's name in front of each line.
LogDisplaySetShowLogName(displayName, show)
Arguments
- displayName
string– Name of a LogDisplay window.- show
boolean–trueto show the log name.
Returns
Nothing.
Details
- The name is printed as
[logName], after the time stamp and before the filter name. - Unlike LogDisplaySetShowTimestamp, this call does not rebuild the display. Lines already shown keep their layout; the setting applies to lines added afterwards. Call it before LogDisplayAddLog to affect every line.
showmust be a real boolean.- The function needs at least two arguments and only reads the last two. Any extra arguments placed in front of them are ignored.
Errors
Error in function call 'TextLogSetShowLogName': Window %s does not existError in function call 'TextLogSetShowLogName': Window %s is not a TextLogDisplay
Example
From ea_guildwindow/source/guildwindowtabprofile.lua:
LogDisplaySetShowTimestamp( "GWProfileNewsText", false ) LogDisplaySetShowLogName( "GWProfileNewsText", false ) LogDisplaySetShowFilterName( "GWProfileNewsText", false)
