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>
{{User:JulienDethurens/Sandbox|widthoverride=true|name = AutoTruncateTextObject
{{Function
|arguments  = [[TextLabel]] '''textLabelToAutoTruncate'''
|widthoverride=true
|returns    = [[TextLabel]] ''autoTruncatingTextLabel'', [[Function]] ''changeText''
|name = AutoTruncateTextObject
|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.
|arguments  = [[TextLabel]] <var>textLabelToAutoTruncate</var>
|library      = RbxGui
|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}}
</onlyinclude>
 
==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.
The Player List in the top right hand corner is auto-truncating many names (the names ending with ~ are being truncated)


See Also