textItemSetScale
Client-side
Server-side
Shared
This page is incomplete! Help wanted!
Please finish this page using the corresponding Old Wiki article.
Go to Contribution guidelines for more information.
This function allows the setting of the scale of a text item.
Syntax
textItemSetScale ( )Code Examples
server
This example retrieves the scale of thetheTextitemtext item, and if it is too small it enlarges it so it is more visible.
local scale = textItemGetScale ( theTextItem ) --get the scale of theTextitem and define it as 'scale'if (scale < 0.5) then --if the scale is smaller than 0.5 textItemSetScale ( theTextItem, 1.0 ) --then restore it to default size, 1.0.endSee Also
Text Functions
- textCreateDisplay
- textCreateTextItem
- textDestroyDisplay
- textDestroyTextItem
- textDisplayAddObserver
- textDisplayAddText
- textDisplayGetObservers
- textDisplayIsObserver
- textDisplayRemoveObserver
- textDisplayRemoveText
- textItemGetColor
- textItemGetPosition
- textItemGetPriority
- textItemGetScale
- textItemGetText
- textItemSetColor
- textItemSetPosition
- textItemSetPriority
- textItemSetScale
- textItemSetText