GameClient.TileEngine.Engine AddToChatTextBuffer
From VbGORE Visual Basic Online RPG Engine
Contents |
Purpose
Adds text into the chat buffer, wrapping lines at the hyphons (-), underscores (_) and spaces, along with breaking lines at vbCrLf.
Parameters
- Text
- The text to add to the buffer (vbCrLf is supported).
- Color
- The color of the text added (defined in ARGB format, often using the constants starting with FontColor_).
Special notes
The high-light character | does not count towards the overall length since it is removed in the final product.
Words that haven't had a wrapping character (as listed above) within the past few characters just get wrapped at any character. This is to prevent having too much white space from long words.
Every time the buffer changes, it has to be updated with Engine_UpdateChatArray.