API:TextLogDestroy
From RoR Wiki
UI Lua API · TextLog functions
Version: WAR 1.4.8
Removes a text log that was created with TextLogCreate.
TextLogDestroy(logName)
Arguments
- logName
string– Name of the text log.
Returns
Nothing.
Details
- The log and all its entries are freed. Later calls that name the log raise Text Log %s does not exist errors.
- Only logs created by TextLogCreate can be destroyed. For the client's own logs (
"Chat","Combat","System"and so on) the call does nothing. - If no log with this name exists, the call does nothing. No error is raised.
Errors
None. Only the usual Invalid Parameters error for a wrong argument type.
Example
From interfacecore/source/eularocwindow.lua:
function EA_Window_EULAROCPopup.Shutdown()
TextLogDestroy("EULAROCLog")
end
