Changes the way the button handles the length of the text relative to its length.
| <node3d:GUI:buttonlabel>.overflow( | |
| mode |
)
mode
Can be one of the following:
Overflow Modes |
|
viz.OVERFLOW_GROW |
The node length will grow to fit the length of the selected text. |
viz.OVERFLOW_SHRINK |
The text size will be scaled down so that it fits in the node. |
viz.OVERFLOW_CROP |
The text will be cropped to fit in the node. |
This command controls how the button will behave when the label cannot fit into the bounds of the button. The default overflow mode is viz.OVERFLOW_GROW
None
This will cut the displayed text to just "Hello"