Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TextLogCreate

From RoR Wiki
Revision as of 19:49, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · TextLog functions
Version: WAR 1.4.8

Creates a new, empty text log.

TextLogCreate(logName, entryLimit)

Arguments

logName
string – Name of the new text log.
entryLimit
number – Maximum number of entries the log keeps.

Returns

Nothing.

Details

  • If a text log with this name already exists, nothing happens. Its entry limit is not changed; use TextLogSetEntryLimit for that.
  • entryLimit is cut to a whole number and clamped to the range 0–8192.
  • When the log is full, adding an entry first removes the oldest ones. With a limit of 0 the log never stores any entry.
  • A new log starts enabled (see TextLogSetEnabled) and with incremental saving off.
  • Logs created with this function are marked as addon-created. Only such logs can be removed with TextLogDestroy; the client's own logs ("Chat", "Combat", "System" and so on) cannot.
  • No error is raised in any case.

Errors

None. Only the usual Invalid Parameters error for wrong argument types.

Example

From ea_helpwindow/source/editappealwindow.lua:

TextLogCreate("AppealLog", 256)
TextLogAddFilterType("AppealLog", 999, L"")
LogDisplayAddLog("EditAppealWindowLogDisplay", "AppealLog", true)

See also