Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LogDisplaySetShowTimestamp

From RoR Wiki

UI Lua API · LogDisplay functions
Version: WAR 1.4.8

Sets whether a LogDisplay window prints the time in front of each line.

LogDisplaySetShowTimestamp(displayName, show)

Arguments

displayName
string – Name of a LogDisplay window.
show
boolean – true to show the time.

Returns

Nothing.

Details

  • The time is the local time the entry was added to its text log, as [HH:MM:SS].
  • When the value changes, the display rebuilds all its lines, so existing lines change too.
  • show must 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 'TextLogSetShowTimestamp': Window %s does not exist
  • Error in function call 'TextLogSetShowTimestamp': Window %s is not a TextLogDisplay

Example

From ea_chatwindow/source/chatwindow.lua:

LogDisplaySetShowTimestamp( tabLogDisplayName, tab.showTimestamp )

See also