class MAGES::Analytics::Editor::ActionUndoneEventUI

Overview

Class that contains and draws the UI elements for the event type that triggers when an action is skipped. More…

class ActionUndoneEventUI: public MAGES::Analytics::Editor::BaseTypeEventUI
{
public:
    // methods

    ActionUndoneEventUI(List actions);

    virtual override void Draw(
        EventsScriptableObject so,
        VisualElement foldout,
        bool editMode = false,
        string entryName = ""
    );

    virtual override void Save(EventsScriptableObject so, string key);
    virtual override void Delete(EventsScriptableObject so, string key);
};

Inherited Members

public:
    // classes

    class PayloadElement;

    // methods

    BaseTypeEventUI(List actions);

    void Initialize(
        EventsScriptableObject so,
        string entryName,
        string savePath,
        VisualElement parent,
        VisualElement foldout,
        ScrollView editExistingItems,
        List> items,
        Type internalType,
        Type internalTypeUI,
        bool editMode,
        EventsStateMachine stateMachine
    );

    virtual void Save(EventsScriptableObject so, string key);
    virtual void Delete(EventsScriptableObject so, string key);

    virtual void Draw(
        EventsScriptableObject so,
        VisualElement foldout,
        bool editMode = false,
        string entryName = ""
    );

Detailed Documentation

Class that contains and draws the UI elements for the event type that triggers when an action is skipped.

Methods

ActionUndoneEventUI(List actions)

Initializes a new instance of the ActionUndoneEventUI class.

Parameters:

actions

The available actions.

virtual override void Draw(
    EventsScriptableObject so,
    VisualElement foldout,
    bool editMode = false,
    string entryName = ""
)

Draws the event specific UI elements for each type.

Parameters:

so

The scriptable object that stores the UI elements values.

foldout

The foldout to attach event specific UI elements to.

editMode

Specifies whether or not we are int edit or create mode.

entryName

The name of the current entry that gets edited.

virtual override void Save(EventsScriptableObject so, string key)

Saves the values of the UI elements to the provided scriptable object.

Parameters:

so

The scriptable object to save the UI elements values to.

key

The name of the event to save.

virtual override void Delete(EventsScriptableObject so, string key)

Deletes the event UI elements and removes their stored reference from the provided scriptable object.

Parameters:

so

The scriptable object to delete the UI elements values from.

key

The name of the event to delete.