class MAGES::Analytics::Editor::SessionEndedEventUI

Overview

Class that contains and draws the UI elements for the event type that triggers when a session ends. More…

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

    SessionEndedEventUI(List list);

    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 a session ends.

Methods

SessionEndedEventUI(List list)

Initializes a new instance of the SessionEndedEventUI class.

Parameters:

list

Unused argument.

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.