Anvil
Anvil.API.NuiElement Class Reference

A dynamic NUI element with style support. More...

+ Inheritance diagram for Anvil.API.NuiElement:

Properties

float? Aspect [get, set]
 The aspect ratio (x/y) for this element. More...
 
NuiProperty< string >? DisabledTooltip [get, set]
 Tooltips for disabled elements show on mouse hover. More...
 
List< NuiDrawListItem >? DrawList [get, set]
 
NuiProperty< bool >? Enabled [get, set]
 Toggles if this element is active/interactable, or disabled/greyed out. More...
 
NuiProperty< bool >? Encouraged [get, set]
 Encouraged elements have a breathing animated glow inside of it. More...
 
NuiProperty< Color >? ForegroundColor [get, set]
 Style the foreground color of this widget.
This is dependent on the widget in question and only supports solid/full colors right now (no texture skinning).
For example, labels would style their text color; progress bars would style the bar. More...
 
float? Height [get, set]
 The height of this element, in pixels. More...
 
string? Id [get, set]
 A unique identifier for this element. More...
 
float? Margin [get, set]
 The margin on the widget. The margin is the spacing outside of the widget. More...
 
float? Padding [get, set]
 The padding on the widget. The padding is the spacing inside of the widget. More...
 
NuiProperty< bool >? Scissor [get, set]
 
NuiProperty< string >? Tooltip [get, set]
 A tooltip to show when hovering over this element. More...
 
abstract string Type [get]
 
NuiProperty< bool >? Visible [get, set]
 Toggles if this element should/should not be rendered. Invisible elements still take up layout space, and cannot be clicked through. More...
 
float? Width [get, set]
 The width of this element, in pixels. More...
 

Detailed Description

A dynamic NUI element with style support.

Property Documentation

◆ Aspect

float? Anvil.API.NuiElement.Aspect
getset

The aspect ratio (x/y) for this element.

◆ DisabledTooltip

NuiProperty<string>? Anvil.API.NuiElement.DisabledTooltip
getset

Tooltips for disabled elements show on mouse hover.

◆ Enabled

NuiProperty<bool>? Anvil.API.NuiElement.Enabled
getset

Toggles if this element is active/interactable, or disabled/greyed out.

◆ Encouraged

NuiProperty<bool>? Anvil.API.NuiElement.Encouraged
getset

Encouraged elements have a breathing animated glow inside of it.

◆ ForegroundColor

NuiProperty<Color>? Anvil.API.NuiElement.ForegroundColor
getset

Style the foreground color of this widget.
This is dependent on the widget in question and only supports solid/full colors right now (no texture skinning).
For example, labels would style their text color; progress bars would style the bar.

◆ Height

float? Anvil.API.NuiElement.Height
getset

The height of this element, in pixels.

◆ Id

string? Anvil.API.NuiElement.Id
getset

A unique identifier for this element.

◆ Margin

float? Anvil.API.NuiElement.Margin
getset

The margin on the widget. The margin is the spacing outside of the widget.

◆ Padding

float? Anvil.API.NuiElement.Padding
getset

The padding on the widget. The padding is the spacing inside of the widget.

◆ Tooltip

NuiProperty<string>? Anvil.API.NuiElement.Tooltip
getset

A tooltip to show when hovering over this element.

◆ Visible

NuiProperty<bool>? Anvil.API.NuiElement.Visible
getset

Toggles if this element should/should not be rendered. Invisible elements still take up layout space, and cannot be clicked through.

◆ Width

float? Anvil.API.NuiElement.Width
getset

The width of this element, in pixels.


The documentation for this class was generated from the following file: