The LogDisplay provides a scrolling display to view any number of TextLogs.
LogDisplay | The LogDisplay provides a scrolling display to view any number of TextLogs. |
Implementation Details | The LogDisplay works in conjuction with the TextLog element to provide the an in-game visual display for the log entries. |
XML Definition | This is the LogDisplay XML definition. |
XML Tag | |
Required Attributes | You need to specify valid values for all of these elements to get the LogDisplay to create properly. |
font | The name of the Font definition to use. |
Optional Attributes | These are optional. |
scrollbar | The name of a <VerticalScrollBar> to use if the text exceeds the height of the window when in . |
background | The name of a FullResizeImage to use as a background. |
linespacing | An override value for the font line spacing. |
maxchars | The maximum number of characters allowed to be displayed. |
maxentries | The maximum number of entry lines to be displayed for each text log shown. |
textFadeTime | The amount time the text should remain on the screen after a new entry is added. |
autoHideScrollBar | Auto-hides the scroll bar when the window the contents current LogDisplay contents fill less than one page. |
Functions | |
Functions | |
LogDisplayAddLog() | Adds the specified TextLog to the LogDisplay |
LogDisplayRemoveLog() | Removes the specified TextLog to the LogDisplay |
Functions | |
Functions | |
LogSetLimit() | Sets the maximum number of entries to display in the LogDisplay. |
LogDisplaySetShowTimestamp() | Sets if the timestamps should be display at the beginning of each entry. |
LogDisplayGetShowTimestamp() | Return if the timestamps is currently displayed at the beginning of each entry. |
LogDisplaySetShowLogName() | Sets if the TextLog name should be display at the beginning of each entry. |
LogDisplayGetShowLogName() | Returns if the TextLog name is currently displayed at the beginning of each entry. |
LogDisplaySetShowFilterName() | Sets if the Filter Type name should be display at the beginning of each entry. |
LogDisplayGetShowFilterName() | Returns if the Filter Type name is currently displayed at the beginning of each entry. |
LogDisplaySetFilterColor() | Sets the text color to use for the specified TextLog and Filter Type. |
LogDisplayGetFilterColor() | Returns the color currently used for the specified TextLog and Filter Type. |
LogDisplaySetFilterState() | Sets the specified Filter Type for the specified TextLog should be displayed. |
LogDisplayGetFilterState() | Returns if the specified Filter Type for the specified TextLog is currentlydisplayed. |
LogDisplayHideFilterSubType() | Sets if a filter sub type should be shown. |
LogDisplaySetTextFadeTime() | Sets the amount of time the text should be displayed before fading out. |
LogDisplayGetTextFadeTime() | Returns the current the amount of time the text is displayed before fading out. |
LogDisplayIsScrollbarActive() | Returns whether a Scrollbar is needed for this display. |
LogDisplaySetFont() | Sets the Font for the text display |
LogDisplayGetFont() | Returns the the name of the Font for the text display. |
LogDisplayScrollToBottom() | Scrolls the display all the way to the bottom. |
LogDisplayIsScrolledToBottom() | Returns if the display is scrolled all the way to the bottom. |
LogDisplayResetLineFadeTime() | Resets the fade time for all of the text lines. |
LogDisplayShowScrollbar() | Sets if the scrollbar should be shown or hidden. |
LogDisplayScrollToTop() | Scrolls the display all the way to the top. |
LogDisplayIsScrolledToTop() | Returns if the display is scrolled all the way to the top. |
The LogDisplay works in conjuction with the TextLog element to provide the an in-game visual display for the log entries.
Through the text log display you can do the following...
Unlike the ScrollWindow or PageWindow controls, which create rendered version of all the text, the TextLogDisplay only renders the section of text that you actively see on the window. Internally, the TextLog display parse out the lines for each entry according to the window’s font size and dimenions.
(see ..\docs\images\LogDisplay_Example1.jpg)
A scrollbar is automatically created and updated to fit the number of entries. The LogDisplay also has a number of special features that cater to use for an incoming-chat text window. These include..
This is the LogDisplay XML definition.
XML Tag | |
Required Attributes | You need to specify valid values for all of these elements to get the LogDisplay to create properly. |
font | The name of the Font definition to use. |
Optional Attributes | These are optional. |
scrollbar | The name of a <VerticalScrollBar> to use if the text exceeds the height of the window when in . |
background | The name of a FullResizeImage to use as a background. |
linespacing | An override value for the font line spacing. |
maxchars | The maximum number of characters allowed to be displayed. |
maxentries | The maximum number of entry lines to be displayed for each text log shown. |
textFadeTime | The amount time the text should remain on the screen after a new entry is added. |
autoHideScrollBar | Auto-hides the scroll bar when the window the contents current LogDisplay contents fill less than one page. |
You need to specify valid values for all of these elements to get the LogDisplay to create properly.
The name of a <VerticalScrollBar> to use if the text exceeds the height of the window when in .
A string value, which is the name of a valid Button.
The name of a FullResizeImage to use as a background.
A string value, which is the name of a valid FullResizeImage.
An override value for the font line spacing.
The maximum number of characters allowed to be displayed.
The maximum number of entry lines to be displayed for each text log shown.
The amount time the text should remain on the screen after a new entry is added.
Text will only fade when the LogDisplay is scrolled all the way to the bottom.
Auto-hides the scroll bar when the window the contents current LogDisplay contents fill less than one page.
A boolean value.
Functions | |
LogDisplayAddLog() | Adds the specified TextLog to the LogDisplay |
LogDisplayRemoveLog() | Removes the specified TextLog to the LogDisplay |
Adds the specified TextLog to the LogDisplay
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) Name of the TextLog to add. |
addEntries | (boolean) Should entries already in the log be added to the display? |
nil | no return value |
LogDisplayAddLog("ChatWindowChatLogDisplay", "Chat", true)
Removes the specified TextLog to the LogDisplay
logDisplayName | (string) The name of the LogDisplay. |
logName | (string) The name of the TextLog. |
nil | no return value |
LogDisplayRemoveLog("ChatWindowChatLogDisplay", "Chat" )
Functions | |
LogSetLimit() | Sets the maximum number of entries to display in the LogDisplay. |
LogDisplaySetShowTimestamp() | Sets if the timestamps should be display at the beginning of each entry. |
LogDisplayGetShowTimestamp() | Return if the timestamps is currently displayed at the beginning of each entry. |
LogDisplaySetShowLogName() | Sets if the TextLog name should be display at the beginning of each entry. |
LogDisplayGetShowLogName() | Returns if the TextLog name is currently displayed at the beginning of each entry. |
LogDisplaySetShowFilterName() | Sets if the Filter Type name should be display at the beginning of each entry. |
LogDisplayGetShowFilterName() | Returns if the Filter Type name is currently displayed at the beginning of each entry. |
LogDisplaySetFilterColor() | Sets the text color to use for the specified TextLog and Filter Type. |
LogDisplayGetFilterColor() | Returns the color currently used for the specified TextLog and Filter Type. |
LogDisplaySetFilterState() | Sets the specified Filter Type for the specified TextLog should be displayed. |
LogDisplayGetFilterState() | Returns if the specified Filter Type for the specified TextLog is currentlydisplayed. |
LogDisplayHideFilterSubType() | Sets if a filter sub type should be shown. |
LogDisplaySetTextFadeTime() | Sets the amount of time the text should be displayed before fading out. |
LogDisplayGetTextFadeTime() | Returns the current the amount of time the text is displayed before fading out. |
LogDisplayIsScrollbarActive() | Returns whether a Scrollbar is needed for this display. |
LogDisplaySetFont() | Sets the Font for the text display |
LogDisplayGetFont() | Returns the the name of the Font for the text display. |
LogDisplayScrollToBottom() | Scrolls the display all the way to the bottom. |
LogDisplayIsScrolledToBottom() | Returns if the display is scrolled all the way to the bottom. |
LogDisplayResetLineFadeTime() | Resets the fade time for all of the text lines. |
LogDisplayShowScrollbar() | Sets if the scrollbar should be shown or hidden. |
LogDisplayScrollToTop() | Scrolls the display all the way to the top. |
LogDisplayIsScrolledToTop() | Returns if the display is scrolled all the way to the top. |
Sets the maximum number of entries to display in the LogDisplay.
logDisplayName | (string) The name of the LogDisplay. |
limit | (number) Maximum number of entries to display. A negative value specifies unlimited. |
nil | no return value |
LogSetLimit("ChatWindowChatLogDisplay", 1000)
Sets if the timestamps should be display at the beginning of each entry.
logDisplayName | (string) The name of the LogDisplay. |
showTimestamp | (boolean) Should the timestamp be displayed? |
nil | no return value |
LogDisplaySetShowTimestamp("ChatWindowChatLogDisplay", false )
Return if the timestamps is currently displayed at the beginning of each entry.
logDisplayName | (string) The name of the LogDisplay. |
showTimestamp | (boolean) is the timestamp currently displayed? |
local showTimestamp = LogDisplayGetShowTimestamp("ChatWindowChatLogDisplay" )
Sets if the Filter Type name should be display at the beginning of each entry.
logDisplayName | (string) The name of the LogDisplay. |
showFilterName | (boolean) Should the Filter Type name be displayed? |
nil | no return value |
LogDisplaySetShowFilterName("ChatWindowChatLogDisplay", true )
Returns if the Filter Type name is currently displayed at the beginning of each entry.
logDisplayName | (string) The name of the LogDisplay. |
showFilterName | (boolean) Is the Filter Type currently displayed? |
local showFilterName = LogDisplayGetShowFilterName("ChatWindowChatLogDisplay" )
Sets the text color to use for the specified TextLog and Filter Type.
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) The of the TextLog. |
filterId | (number) The filter id within the TextLog. |
red | (number) The red value for the text color (0-255) |
green | (number) The green value for the text color (0-255) |
blue | (number) The blue value for the text color (0-255) |
nil | no return value |
LogDisplaySetFilterColor("ChatWindowChatLogDisplay", SystemData.ChatLogFilters.SAY, 255, 255, 255 )
Returns the color currently used for the specified TextLog and Filter Type.
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) The of the TextLog. |
filterId | (number) The filter id within the TextLog. |
red | (number) The red value for the text color (0-255) |
green | (number) The green value for the text color (0-255) |
blue | (number) The blue value for the text color (0-255) |
LogDisplayGetFilterColor("ChatWindowChatLogDisplay", SystemData.ChatLogFilters.SAY, 255, 255, 255 )
Sets the specified Filter Type for the specified TextLog should be displayed.
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) The of the TextLog. |
filterId | (number) The filter id within the TextLog. |
showFilterType | (boolean) Should the filter type be displayed? |
nil | no return value |
LogDisplaySetFilterState("ChatWindowChatLogDisplay", SystemData.ChatLogFilters.SAY, true )
Returns if the specified Filter Type for the specified TextLog is currentlydisplayed.
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) The of the TextLog. |
filterId | (number) The filter id within the TextLog. |
showFilterType | (boolean) Is the the filter type currently displayed? |
local isDisplayed = LogDisplayGetFilterState("ChatWindowChatLogDisplay", SystemData.ChatLogFilters.SAY )
Sets if a filter sub type should be shown.
logDisplayName | (string) The name of the LogDisplay. |
textLogName | (string) The of the TextLog. |
filterId | (number) The filter id within the TextLog. |
showFilterType | (boolean) Should the filter type be displayed? |
filterSubTypeName | (string) The name of the filter sub type. |
hideSubType | (string) Should the sub type be hidden? |
nil | no return value |
LogDisplayHideFilterSubType( "ChatWindowChatLogDisplay", "Chat", SystemData.ChatLogFilters.TELL_RECEIVE, name, true )
Sets the amount of time the text should be displayed before fading out. A fade time of 0 means that the text will not fade at all.
logDisplayName | (string) The name of the LogDisplay. |
textDisplayTime | (number) How long the text should be displayed before fading. |
nil | no return value |
LogDisplaySetTextFadeTime( "ChatWindowChatLogDisplay", visibleTime )
Returns the current the amount of time the text is displayed before fading out.
logDisplayName | (string) The name of the LogDisplay. |
textDisplayTime | (number) The time the text is currently displayed before fading. |
local fadeTime = LogDisplayGetTextFadeTime( "ChatWindowChatLogDisplay" )
Returns whether a Scrollbar is needed for this display. Checks the bounds of the scroll to see if it should be active
logDisplayName | (string) The name of the LogDisplay. |
local bScrollbarNeeded = LogDisplayIsScrollbarActive( "ChatWindowChatLogDisplay" )
Scrolls the display all the way to the bottom.
logDisplayName | (string) The name of the LogDisplay. |
nil | no return values |
LogDisplayScrollToBottom( "ChatWindowChatLogDisplay" )
Returns if the display is scrolled all the way to the bottom.
logDisplayName | (string) The name of the LogDisplay. |
atBottom | (boolean) Is the display scroll to the bottom? |
local scrolledDown = LogDisplayIsScrolledToBottom( "ChatWindowChatLogDisplay" )
Resets the fade time for all of the text lines.
logDisplayName | (string) The name of the LogDisplay. |
nil | no return values |
LogDisplayResetLineFadeTime( "ChatWindowChatLogDisplay" )
Sets if the scrollbar should be shown or hidden.
logDisplayName | (string) The name of the LogDisplay. |
showBar | (boolean) Should the scrollbar be shown? |
nil | no return values |
LogDisplayShowScrollbar( "ChatWindowChatLogDisplay", true )