Counter Strike Online Wiki
Advertisement

Rectangle UI screen draws a specific rectangle.


Tables[]

UI.Box.SetArg[]

Data type for setting properties
Fields:
  • x: (Optional int) x coordinate
  • y: (Optional int) y coordinate
  • width: (Optional int) width
  • height: (Optional int) height
  • r: (Optional int) Retangle color (Red). 0 ~ 255 range
  • g: (Optional int) Retangle color (Green). 0 ~ 255 range
  • b: (Optional int) Rectangle color (Blue). 0 ~ 255 range
  • a: (Optional int) rectangle color (Transparency). 0 ~ 255 range


Methods[]

UI.Box:Create ()[]

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


UI.Box:Show ()[]

Display on the screen.


UI.Box:Hide ()[]

Change it so that it is not displayed on the screen.


UI.Box:IsVisible ()[]

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


UI.Box:Set (arg)[]

Change the properties of an object.
Parameters:


UI.Box:Get ()[]

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

Advertisement