AutoTruncateTextObject (Function): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens Created page with "<onlyinclude> {{User:JulienDethurens/Sandbox|widthoverride=true|name = AutoTruncateTextObject |arguments = TextLabel '''textLabelToAutoTruncate''' |returns = [[TextL..." |
>Anaminus moved clear-floats out of include; moved image under box |
||
(22 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude> | ||
{{ | {{Function | ||
|arguments = [[TextLabel]] | |widthoverride=true | ||
|returns = [[TextLabel]] | |name = AutoTruncateTextObject | ||
|description = Returns 2 objects, (autoTruncatingTextLabel, changeText). The | |arguments = [[TextLabel]] <var>textLabelToAutoTruncate</var> | ||
|returns = [[TextLabel]] <var>autoTruncatingTextLabel</var>, [[Function]] <var>changeText</var> | |||
}} | |description = Returns 2 objects, (<var>autoTruncatingTextLabel</var>, <var>changeText</var>). The <var>textLabelToAutoTruncate</var> input is modified to automatically truncate text (with ellipsis), if it gets too small to fit. <var>changeText</var> is a function that can be used to change the text, it takes 1 string as an argument. | ||
}}</onlyinclude> | |||
[[Image:AutoTruncateOff.jpg|thumb|400px|The Player List in the top right hand corner is auto-truncating many names (the names ending with ~ are being truncated)]] | |||
{{clear floats}} | {{clear floats}} | ||
==See Also== | |||
*[[RbxGui (Library)|RbxGui]] | |||
[[Category:Functions]] |
Latest revision as of 20:45, 15 April 2012
AutoTruncateTextObject( TextLabel textLabelToAutoTruncate ) | |
Returns | TextLabel autoTruncatingTextLabel, Function changeText |
Description: | Returns 2 objects, (autoTruncatingTextLabel, changeText). The textLabelToAutoTruncate input is modified to automatically truncate text (with ellipsis), if it gets too small to fit. changeText is a function that can be used to change the text, it takes 1 string as an argument. |