Table of Contents

Class UI

Namespace
AO
Assembly
CoreAssembly.dll

UI is a core engine system used to draw UI elements with the immediate mode UI.

public static class UI
Inheritance
UI
Inherited Members

Properties

IsBlockingWindowOpen

public static bool IsBlockingWindowOpen { get; }

Property Value

bool

SafeRect

public static Rect SafeRect { get; }

Property Value

Rect

ScreenRect

public static Rect ScreenRect { get; }

Property Value

Rect

ScreenScaleFactor

public static float ScreenScaleFactor { get; }

Property Value

float

WhiteSprite

public static Texture WhiteSprite { get; }

Property Value

Texture

Methods

BeginButton(Rect, string, ButtonSettings, TextSettings)

public static extern UI.InteractResult BeginButton(Rect rect, string text, UI.ButtonSettings buttonSettings, UI.TextSettings textSettings)

Parameters

rect Rect
text string
buttonSettings UI.ButtonSettings
textSettings UI.TextSettings

Returns

UI.InteractResult

Blocker(Rect, string)

public static extern void Blocker(Rect rect, string id)

Parameters

rect Rect
id string

Button(Rect, string, ButtonSettings, TextSettings)

public static extern UI.InteractResult Button(Rect rect, string text, UI.ButtonSettings buttonSettings, UI.TextSettings textSettings)

Parameters

rect Rect
text string
buttonSettings UI.ButtonSettings
textSettings UI.TextSettings

Returns

UI.InteractResult

CreateSystemButton(string, string, string, SystemButtonLocation)

public static extern SystemButton CreateSystemButton(string id, string iconAssetId, string iconSelectedAssetId, SystemButtonLocation location)

Parameters

id string
iconAssetId string
iconSelectedAssetId string
location SystemButtonLocation

Returns

SystemButton

DragDropSource(Rect, string, object)

public static extern bool DragDropSource(Rect rect, string payloadId, object payload)

Parameters

rect Rect
payloadId string
payload object

Returns

bool

DragDropTarget(Rect, string)

public static extern UI.InteractResult DragDropTarget(Rect rect, string payloadId)

Parameters

rect Rect
payloadId string

Returns

UI.InteractResult

DrawSkeleton(Rect, SpineInstance, Vector2, float)

public static void DrawSkeleton(Rect rect, SpineInstance instance, Vector2 scale, float rotationDegrees)

Parameters

rect Rect
instance SpineInstance
scale Vector2
rotationDegrees float

EndButton()

public static extern void EndButton()

ExpandCurrentScrollView(Rect)

public static extern void ExpandCurrentScrollView(Rect rect)

Parameters

rect Rect

GetPlayerRect(Player)

public static Rect GetPlayerRect(Player player)

Parameters

player Player

Returns

Rect

GetScrollViewScrollBarRect_Internal(Rect, nint)

public static extern Rect GetScrollViewScrollBarRect_Internal(Rect rect, nint scrollViewPtr)

Parameters

rect Rect
scrollViewPtr nint

Returns

Rect

Gif(Rect, string, Gif)

public static void Gif(Rect rect, string id, Gif gif)

Parameters

rect Rect
id string
gif Gif

Gif_Internal(Rect, string, ulong)

public static extern void Gif_Internal(Rect rect, string id, ulong gif_id)

Parameters

rect Rect
id string
gif_id ulong

Image(Rect, Texture, NineSlice, float)

public static void Image(Rect rect, Texture texture, UI.NineSlice nineSlice = default, float rotationDegrees = 0)

Parameters

rect Rect
texture Texture
nineSlice UI.NineSlice
rotationDegrees float

Image(Rect, Texture, Vector4, NineSlice, float)

public static void Image(Rect rect, Texture texture, Vector4 tint, UI.NineSlice nineSlice = default, float rotationDegrees = 0)

Parameters

rect Rect
texture Texture
tint Vector4
nineSlice UI.NineSlice
rotationDegrees float

InvisibleButton(Rect, string)

public static extern UI.InteractResult InvisibleButton(Rect rect, string id)

Parameters

rect Rect
id string

Returns

UI.InteractResult

LitText(Rect, string, TextSettings, bool)

public static extern Rect LitText(Rect rect, string text, UI.TextSettings textSettings, bool dryRun = false)

Parameters

rect Rect
text string
textSettings UI.TextSettings
dryRun bool

Returns

Rect

PUSH_COLOR_MULTIPLIER(Vector4, bool)

public static AllOut.DeferImpl PUSH_COLOR_MULTIPLIER(Vector4 color, bool condition = true)

Parameters

color Vector4
condition bool

Returns

AllOut.DeferImpl

PUSH_COLOR_MULTIPLIER(float, bool)

public static AllOut.DeferImpl PUSH_COLOR_MULTIPLIER(float all, bool condition = true)

Parameters

all float
condition bool

Returns

AllOut.DeferImpl

PUSH_COMMAND_LIST()

public static AllOut.DeferImpl PUSH_COMMAND_LIST()

Returns

AllOut.DeferImpl

PUSH_CONTEXT(Context)

public static AllOut.DeferImpl PUSH_CONTEXT(UI.Context ctx)

Parameters

ctx UI.Context

Returns

AllOut.DeferImpl

PUSH_DISABLED(bool)

public static AllOut.DeferImpl PUSH_DISABLED(bool condition)

Parameters

condition bool

Returns

AllOut.DeferImpl

PUSH_DISABLED_VISUALS(bool)

public static AllOut.DeferImpl PUSH_DISABLED_VISUALS(bool condition)

Parameters

condition bool

Returns

AllOut.DeferImpl

PUSH_ID(int)

public static AllOut.DeferImpl PUSH_ID(int id)

Parameters

id int

Returns

AllOut.DeferImpl

PUSH_ID(string)

public static AllOut.DeferImpl PUSH_ID(string id)

Parameters

id string

Returns

AllOut.DeferImpl

PUSH_LAYER(int)

public static AllOut.DeferImpl PUSH_LAYER(int layer)

Parameters

layer int

Returns

AllOut.DeferImpl

PUSH_LAYER_RELATIVE(int)

public static AllOut.DeferImpl PUSH_LAYER_RELATIVE(int delta)

Parameters

delta int

Returns

AllOut.DeferImpl

PUSH_MATERIAL(Material)

public static AllOut.DeferImpl PUSH_MATERIAL(UI.Material material)

Parameters

material UI.Material

Returns

AllOut.DeferImpl

PUSH_MATRIX(Matrix4)

public static AllOut.DeferImpl PUSH_MATRIX(Matrix4 matrix)

Parameters

matrix Matrix4

Returns

AllOut.DeferImpl

PUSH_PLAYER_MATERIAL(Player)

public static AllOut.DeferImpl PUSH_PLAYER_MATERIAL(Player player)

Parameters

player Player

Returns

AllOut.DeferImpl

PUSH_ROTATE_ABOUT_POINT(float, Vector2)

public static AllOut.DeferImpl PUSH_ROTATE_ABOUT_POINT(float degrees, Vector2 point)

Parameters

degrees float
point Vector2

Returns

AllOut.DeferImpl

PUSH_SCALE_FACTOR(float, bool)

public static AllOut.DeferImpl PUSH_SCALE_FACTOR(float newScaleFactor, bool condition = true)

Parameters

newScaleFactor float
condition bool

Returns

AllOut.DeferImpl

PUSH_SCISSOR(Rect)

public static AllOut.DeferImpl PUSH_SCISSOR(Rect rect)

Parameters

rect Rect

Returns

AllOut.DeferImpl

PUSH_UNLIT_PLAYER_MATERIAL(Player)

public static AllOut.DeferImpl PUSH_UNLIT_PLAYER_MATERIAL(Player player)

Parameters

player Player

Returns

AllOut.DeferImpl

PopColorMultiplier()

public static extern void PopColorMultiplier()

PopCommandList()

public static extern void PopCommandList()

PopContext()

public static extern void PopContext()

PopDisabled()

public static extern void PopDisabled()

PopDisabledVisuals()

public static extern void PopDisabledVisuals()

PopId()

public static extern void PopId()

PopLayer()

public static extern void PopLayer()

PopMaterial()

public static extern void PopMaterial()

PopMatrix()

public static extern void PopMatrix()

PopPlayerMaterial()

public static extern void PopPlayerMaterial()

PopScaleFactor()

public static extern void PopScaleFactor()

PopScissor()

public static extern void PopScissor()

PopScrollView()

public static extern void PopScrollView()

PopUnlitPlayerMaterial()

public static extern void PopUnlitPlayerMaterial()

PushColorMultiplier(Vector4)

public static extern void PushColorMultiplier(Vector4 color)

Parameters

color Vector4

PushCommandList()

public static extern void PushCommandList()

PushContext(Context)

public static extern void PushContext(UI.Context ctxt)

Parameters

ctxt UI.Context

PushDisabled(bool)

public static extern void PushDisabled(bool condition)

Parameters

condition bool

PushDisabledVisuals(bool)

public static extern void PushDisabledVisuals(bool condition)

Parameters

condition bool

PushId(string)

public static extern void PushId(string id)

Parameters

id string

PushIdInt(int)

public static extern void PushIdInt(int id)

Parameters

id int

PushLayer(int)

public static extern void PushLayer(int layer)

Parameters

layer int

PushLayerRelative(int)

public static extern void PushLayerRelative(int delta)

Parameters

delta int

PushMaterial(Material)

public static extern void PushMaterial(UI.Material material)

Parameters

material UI.Material

PushMatrix(Matrix4)

public static extern void PushMatrix(Matrix4 matrix)

Parameters

matrix Matrix4

PushPlayerMaterial(Player)

public static void PushPlayerMaterial(Player player)

Parameters

player Player

PushScaleFactor(float)

public static extern void PushScaleFactor(float newScaleFactor)

Parameters

newScaleFactor float

PushScissor(Rect)

public static extern void PushScissor(Rect rect)

Parameters

rect Rect

PushScrollView(string, Rect, ScrollViewSettings)

public static extern UI.ScrollView PushScrollView(string id, Rect rect, UI.ScrollViewSettings settings)

Parameters

id string
rect Rect
settings UI.ScrollViewSettings

Returns

UI.ScrollView

PushUnlitPlayerMaterial(Player)

public static void PushUnlitPlayerMaterial(Player player)

Parameters

player Player

ScrollTo_Internal(Rect, nint, int)

public static extern void ScrollTo_Internal(Rect rect, nint scrollViewPtr, int kind)

Parameters

rect Rect
scrollViewPtr nint
kind int

SetChatOpen(bool)

public static extern void SetChatOpen(bool open)

Parameters

open bool

SetLeaderboardOpen(bool)

public static extern void SetLeaderboardOpen(bool open)

Parameters

open bool

Text(Rect, string, TextSettings, bool)

public static extern Rect Text(Rect rect, string text, UI.TextSettings textSettings, bool dryRun = false)

Parameters

rect Rect
text string
textSettings UI.TextSettings
dryRun bool

Returns

Rect

TextInput(string, Rect, TextInputSettings, ref string)

public static extern UI.InteractResult TextInput(string id, Rect rect, UI.TextInputSettings settings, ref string text)

Parameters

id string
rect Rect
settings UI.TextInputSettings
text string

Returns

UI.InteractResult

Tooltip(Rect, string)

public static extern UI.InteractResult Tooltip(Rect rect, string id)

Parameters

rect Rect
id string

Returns

UI.InteractResult

TryGetCurrentDragDropPayload(string)

public static extern object TryGetCurrentDragDropPayload(string payloadId = null)

Parameters

payloadId string

Returns

object