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
SafeRect
public static Rect SafeRect { get; }
Property Value
ScreenRect
public static Rect ScreenRect { get; }
Property Value
ScreenScaleFactor
public static float ScreenScaleFactor { get; }
Property Value
WhiteSprite
public static Texture WhiteSprite { get; }
Property Value
Methods
BeginButton(Rect, string, ButtonSettings, TextSettings)
public static extern UI.InteractResult BeginButton(Rect rect, string text, UI.ButtonSettings buttonSettings, UI.TextSettings textSettings)
Parameters
rect
Recttext
stringbuttonSettings
UI.ButtonSettingstextSettings
UI.TextSettings
Returns
Blocker(Rect, string)
public static extern void Blocker(Rect rect, string id)
Parameters
Button(Rect, string, ButtonSettings, TextSettings)
public static extern UI.InteractResult Button(Rect rect, string text, UI.ButtonSettings buttonSettings, UI.TextSettings textSettings)
Parameters
rect
Recttext
stringbuttonSettings
UI.ButtonSettingstextSettings
UI.TextSettings
Returns
CreateSystemButton(string, string, string, SystemButtonLocation)
public static extern SystemButton CreateSystemButton(string id, string iconAssetId, string iconSelectedAssetId, SystemButtonLocation location)
Parameters
id
stringiconAssetId
stringiconSelectedAssetId
stringlocation
SystemButtonLocation
Returns
DragDropSource(Rect, string, object)
public static extern bool DragDropSource(Rect rect, string payloadId, object payload)
Parameters
Returns
DragDropTarget(Rect, string)
public static extern UI.InteractResult DragDropTarget(Rect rect, string payloadId)
Parameters
Returns
DrawSkeleton(Rect, SpineInstance, Vector2, float)
public static void DrawSkeleton(Rect rect, SpineInstance instance, Vector2 scale, float rotationDegrees)
Parameters
rect
Rectinstance
SpineInstancescale
Vector2rotationDegrees
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
GetScrollViewScrollBarRect_Internal(Rect, nint)
public static extern Rect GetScrollViewScrollBarRect_Internal(Rect rect, nint scrollViewPtr)
Parameters
Returns
Gif(Rect, string, Gif)
public static void Gif(Rect rect, string id, Gif gif)
Parameters
Gif_Internal(Rect, string, ulong)
public static extern void Gif_Internal(Rect rect, string id, ulong gif_id)
Parameters
Image(Rect, Texture, NineSlice, float)
public static void Image(Rect rect, Texture texture, UI.NineSlice nineSlice = default, float rotationDegrees = 0)
Parameters
Image(Rect, Texture, Vector4, NineSlice, float)
public static void Image(Rect rect, Texture texture, Vector4 tint, UI.NineSlice nineSlice = default, float rotationDegrees = 0)
Parameters
InvisibleButton(Rect, string)
public static extern UI.InteractResult InvisibleButton(Rect rect, string id)
Parameters
Returns
LitText(Rect, string, TextSettings, bool)
public static extern Rect LitText(Rect rect, string text, UI.TextSettings textSettings, bool dryRun = false)
Parameters
rect
Recttext
stringtextSettings
UI.TextSettingsdryRun
bool
Returns
PUSH_COLOR_MULTIPLIER(Vector4, bool)
public static AllOut.DeferImpl PUSH_COLOR_MULTIPLIER(Vector4 color, bool condition = true)
Parameters
Returns
PUSH_COLOR_MULTIPLIER(float, bool)
public static AllOut.DeferImpl PUSH_COLOR_MULTIPLIER(float all, bool condition = true)
Parameters
Returns
PUSH_COMMAND_LIST()
public static AllOut.DeferImpl PUSH_COMMAND_LIST()
Returns
PUSH_CONTEXT(Context)
public static AllOut.DeferImpl PUSH_CONTEXT(UI.Context ctx)
Parameters
Returns
PUSH_DISABLED(bool)
public static AllOut.DeferImpl PUSH_DISABLED(bool condition)
Parameters
condition
bool
Returns
PUSH_DISABLED_VISUALS(bool)
public static AllOut.DeferImpl PUSH_DISABLED_VISUALS(bool condition)
Parameters
condition
bool
Returns
PUSH_ID(int)
public static AllOut.DeferImpl PUSH_ID(int id)
Parameters
id
int
Returns
PUSH_ID(string)
public static AllOut.DeferImpl PUSH_ID(string id)
Parameters
id
string
Returns
PUSH_LAYER(int)
public static AllOut.DeferImpl PUSH_LAYER(int layer)
Parameters
layer
int
Returns
PUSH_LAYER_RELATIVE(int)
public static AllOut.DeferImpl PUSH_LAYER_RELATIVE(int delta)
Parameters
delta
int
Returns
PUSH_MATERIAL(Material)
public static AllOut.DeferImpl PUSH_MATERIAL(UI.Material material)
Parameters
Returns
PUSH_MATRIX(Matrix4)
public static AllOut.DeferImpl PUSH_MATRIX(Matrix4 matrix)
Parameters
matrix
Matrix4
Returns
PUSH_PLAYER_MATERIAL(Player)
public static AllOut.DeferImpl PUSH_PLAYER_MATERIAL(Player player)
Parameters
player
Player
Returns
PUSH_ROTATE_ABOUT_POINT(float, Vector2)
public static AllOut.DeferImpl PUSH_ROTATE_ABOUT_POINT(float degrees, Vector2 point)
Parameters
Returns
PUSH_SCALE_FACTOR(float, bool)
public static AllOut.DeferImpl PUSH_SCALE_FACTOR(float newScaleFactor, bool condition = true)
Parameters
Returns
PUSH_SCISSOR(Rect)
public static AllOut.DeferImpl PUSH_SCISSOR(Rect rect)
Parameters
rect
Rect
Returns
PUSH_UNLIT_PLAYER_MATERIAL(Player)
public static AllOut.DeferImpl PUSH_UNLIT_PLAYER_MATERIAL(Player player)
Parameters
player
Player
Returns
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
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
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
stringrect
Rectsettings
UI.ScrollViewSettings
Returns
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
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
Recttext
stringtextSettings
UI.TextSettingsdryRun
bool
Returns
TextInput(string, Rect, TextInputSettings, ref string)
public static extern UI.InteractResult TextInput(string id, Rect rect, UI.TextInputSettings settings, ref string text)
Parameters
id
stringrect
Rectsettings
UI.TextInputSettingstext
string
Returns
Tooltip(Rect, string)
public static extern UI.InteractResult Tooltip(Rect rect, string id)
Parameters
Returns
TryGetCurrentDragDropPayload(string)
public static extern object TryGetCurrentDragDropPayload(string payloadId = null)
Parameters
payloadId
string