Counter Strike Online Wiki
Advertisement

Draw a specific string on the text UI screen.


Tables[]

UI.Text.SetArg[]

Data type for setting properties
Fields:
  • text: (Optional string) Text to display on the screen
  • font: (Optional string) Text Size (small, medium, large, verylarge)
  • align: (Optional string) Text alignment (left, center, right)
  • x: (Optional int) x coordinate
  • y: (Optional int) y coordinate
  • width: (Optional int) width
  • height: (Optional int) height
  • r: (Optional int) Text color (Red). 0 ~ 255 range
  • g: (Optional int) Text color (Green). 0 ~ 255 range
  • b: (Optional int) Text color (Blue). 0 ~ 255 range
  • a: (Optional int) text color (Transparency). 0 ~ 255 range


Methods[]

UI.Text:Create ()[]

Create a text UI object.
Up to 1024 can be created at the same time.
Returns:
(UI.Text or nil) If the number limit is exceeded, nil


UI.Text:Show ()[]

Display on the screen.


UI.Text:Hide ()[]

Change it so it is not displayed on the screen.


UI.Text:IsVisible ()[]

Gets whether or not it is currently displayed on the screen.
Returns:
(bool)


UI.Text:Set (arg)[]

Change the properties of an object.
Parameters:


UI.Text:Get ()[]

Get a table containing the properties of an object.
Returns:
(SetArg) info

Advertisement