Table of Contents

Class NuiElement

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

A dynamic NUI element with style support.

public abstract class NuiElement
Inheritance
NuiElement
Derived
Inherited Members
Extension Methods

Properties

Aspect

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

DisabledTooltip

Tooltips for disabled elements show on mouse hover.

DrawList

Gets or sets an optional list of draw commands to render within this element.

Enabled

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

Encouraged

Encouraged elements have a breathing animated glow inside of it.

ForegroundColor

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

The height of this element, in pixels.

Id

A unique identifier for this element.

Margin

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

Padding

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

Scissor

Gets or sets whether draw list items are clipped to the element's bounds.

Tooltip

A tooltip to show when hovering over this element.

Type

Gets the NUI element type identifier used during JSON serialization.

Visible

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

Width

The width of this element, in pixels.