AngeliA
Search Results for

    Show / Hide Table of Contents

    Class GenericDialogUI

    Dialog UI entity for general purpose

    Implements
    IMapItem
    IWindowEntityUI

    Constructors

    GenericDialogUI()

    Declaration
    public GenericDialogUI()

    Properties

    BlockEvent

    True if this UI blocks mouse button event

    Declaration
    protected override bool BlockEvent { get; }
    Overrides
    MenuUI.BlockEvent

    Instance

    Global instance of this entity

    Declaration
    public static GenericDialogUI Instance { get; }

    InvokingData

    Custom data for internal logic

    Declaration
    public static object InvokingData { get; }

    ShowingDialog

    True if the dialog is currently displaying

    Declaration
    public static bool ShowingDialog { get; }

    Methods

    DrawMenu()

    Declaration
    protected override void DrawMenu()
    Overrides
    MenuUI.DrawMenu()

    FirstUpdate()

    [1/4] This function is called every frame when entity is in stage. Prioritize using this function to fill collider in to physics system.

    Declaration
    public override void FirstUpdate()
    Overrides
    EntityUI.FirstUpdate()

    LateUpdate()

    [4/4] This function is called every frame when entity is in stage. Prioritize using this function to render the entity.

    Declaration
    public override void LateUpdate()
    Overrides
    EntityUI.LateUpdate()

    OnActivated()

    This function is called when entity enter the stage

    Declaration
    public override void OnActivated()
    Overrides
    MenuUI.OnActivated()

    OnInactivated()

    This function is called when entity leave the stage

    Declaration
    public override void OnInactivated()
    Overrides
    Entity.OnInactivated()

    SetCustomData(object, object, object)

    Set custom data for the specified item. Get this data from GenericDialogUI.InvokingData inside the "action" from SpawnDialog funtion

    Declaration
    public static void SetCustomData(object dataA = null, object dataB = null, object dataC = null)

    SetItemTint(Color32)

    Set content tint of specified item

    Declaration
    public static void SetItemTint(Color32 tintA)

    SetItemTint(Color32, Color32)

    Set content tint of specified item

    Declaration
    public static void SetItemTint(Color32 tintA, Color32 tintB)

    SetItemTint(Color32, Color32, Color32)

    Set content tint of specified item

    Declaration
    public static void SetItemTint(Color32 tintA, Color32 tintB, Color32 tintC)

    SpawnDialog(string, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog(string message, string label, Action action)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string label

    Label content of the button

    Action action

    This function is called when the button is pressed

    SpawnDialog(string, string, Action, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog(string message, string labelA, Action actionA, string labelB, Action actionB)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string labelA

    Label content of the button

    Action actionA

    This function is called when the button is pressed

    string labelB

    Label content of the button

    Action actionB

    This function is called when the button is pressed

    SpawnDialog(string, string, Action, string, Action, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog(string message, string labelA, Action actionA, string labelB, Action actionB, string labelC, Action actionC)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string labelA

    Label content of the button

    Action actionA

    This function is called when the button is pressed

    string labelB

    Label content of the button

    Action actionB

    This function is called when the button is pressed

    string labelC

    Label content of the button

    Action actionC

    This function is called when the button is pressed

    SpawnDialog_Button(string, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog_Button(string message, string label, Action action)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string label

    Label content of the button

    Action action

    This function is called when the button is pressed

    SpawnDialog_Button(string, string, Action, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog_Button(string message, string labelA, Action actionA, string labelB, Action actionB)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string labelA

    Label content of the button

    Action actionA

    This function is called when the button is pressed

    string labelB

    Label content of the button

    Action actionB

    This function is called when the button is pressed

    SpawnDialog_Button(string, string, Action, string, Action, string, Action)

    Start a dialog with buttons with solid-looking part

    Declaration
    public static void SpawnDialog_Button(string message, string labelA, Action actionA, string labelB, Action actionB, string labelC, Action actionC)
    Parameters
    Type Name Description
    string message

    Text message display on top

    string labelA

    Label content of the button

    Action actionA

    This function is called when the button is pressed

    string labelB

    Label content of the button

    Action actionB

    This function is called when the button is pressed

    string labelC

    Label content of the button

    Action actionC

    This function is called when the button is pressed

    Back to top ๐Ÿ„๐Ÿฆโ€โฌ›๐Ÿงฆ๐Ÿˆ๐ŸŽƒ๐Ÿ’“๐ŸŒนโ˜•๐Ÿดโ€โ˜ ๏ธ๐Ÿค