Text list can be used with a UILabel to create a scrollable multi-line text field that's easy to add new entries to. Optimal use: chat window.
More...
|
bool | isValid [get] |
| Whether the text list is usable. More...
|
|
float | scrollValue [get, set] |
| Relative (0-1 range) scroll value, with 0 being the oldest entry and 1 being the newest entry. More...
|
|
float | lineHeight [get] |
| Height of each line. More...
|
|
int | scrollHeight [get] |
| Height of the scrollable area (outside of the visible area's bounds). More...
|
|
Text list can be used with a UILabel to create a scrollable multi-line text field that's easy to add new entries to. Optimal use: chat window.
void UITextList.Add |
( |
string |
text | ) |
|
void UITextList.Add |
( |
string |
text, |
|
|
bool |
updateVisible |
|
) |
| |
|
protected |
void UITextList.Clear |
( |
| ) |
|
void UITextList.OnDrag |
( |
Vector2 |
delta | ) |
|
Allow dragging of the text list.
void UITextList.OnScroll |
( |
float |
val | ) |
|
Allow scrolling of the text list.
void UITextList.Rebuild |
( |
| ) |
|
|
protected |
Rebuild the visible text.
void UITextList.UpdateVisibleText |
( |
| ) |
|
|
protected |
Refill the text label based on what's currently visible.
int UITextList.mLastHeight = 0 |
|
protected |
int UITextList.mLastWidth = 0 |
|
protected |
float UITextList.mScroll = 0f |
|
protected |
char [] UITextList.mSeparator = new char[] { '\n' } |
|
protected |
int UITextList.mTotalLines = 0 |
|
protected |
int UITextList.paragraphHistory = 50 |
Maximum number of chat log entries to keep before discarding them.
Vertical scroll bar associated with the text list.
Style UITextList.style = Style.Text |
Text style. Text entries go top to bottom. Chat entries go bottom to top.
Label the contents of which will be modified with the chat entries.
Whether the text list is usable.
float UITextList.lineHeight |
|
getprotected |
int UITextList.scrollHeight |
|
getprotected |
Height of the scrollable area (outside of the visible area's bounds).
float UITextList.scrollValue |
|
getset |
Relative (0-1 range) scroll value, with 0 being the oldest entry and 1 being the newest entry.
The documentation for this class was generated from the following file: