class MAGES::Analytics::Editor::TimeLimitUI

Overview

Class that contains and draws the UI for the analytics type that triggers when an action / the entire operation running time is more / less than a specified value. More…

class TimeLimitUI: public MAGES::Analytics::Editor::BaseAnalyticsUI
{
public:
    // methods

    TimeLimitUI(List actions);

    virtual override void Draw(
        AnalyticsScriptableObject so,
        VisualElement foldout,
        bool isObjective,
        bool editMode,
        string entryName
    );

    virtual override void Save(
        AnalyticsScriptableObject so,
        string name,
        string typeOfError,
        string info,
        int penalty
    );

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

Inherited Members

public:
    // methods

    void Initialize(
        AnalyticsScriptableObject so,
        string entryName,
        string assetName,
        string savePath,
        VisualElement parent,
        VisualElement foldout,
        AnalyticsTypes.Type type,
        Type internalType,
        Type internalTypeUI,
        bool editMode,
        ScrollView existingItemsView,
        List> items,
        BaseAnalyticsStateMachine stateMachine
    );

    virtual void Save(
        AnalyticsScriptableObject so,
        string name,
        string typeOfError,
        string info,
        int penalty
    );

    virtual void Delete(AnalyticsScriptableObject so, string key);

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

Detailed Documentation

Class that contains and draws the UI for the analytics type that triggers when an action / the entire operation running time is more / less than a specified value.

Methods

TimeLimitUI(List actions)

Initializes a new instance of the TimeLimitUI class.

Parameters:

actions

The available actions.

virtual override void Draw(
    AnalyticsScriptableObject so,
    VisualElement foldout,
    bool isObjective,
    bool editMode,
    string entryName
)

Draws the analytics object specific UI elements.

Parameters:

so

The scriptable object that the data are stored to.

foldout

The parent foldout element that the analytics object specific UI elements will be under.

isObjective

Specifies is the analytics object is for the objective UI or not.

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(
    AnalyticsScriptableObject so,
    string name,
    string typeOfError,
    string info,
    int penalty
)

Saves the changes made to this analytics entry.

Parameters:

so

The scriptable object that the data are stored to.

name

The name of the error to save.

typeOfError

The type of the error to save.

info

The info of the error to save.

penalty

The penalty of the error to save.

virtual override void Delete(AnalyticsScriptableObject so, string key)

Deletes the specified analytics object from the scriptable object and UI.

Parameters:

so

The scriptable object that the data are stored to.

key

The name of the error to delete.