class MAGES::Analytics::Editor::EventsStateMachine

Overview

The state machine for the events. More…

class EventsStateMachine: public MAGES::Analytics::Editor::BaseAnalyticsStateMachine
{
public:
    // properties

    DropdownField TypesDropdown;

    // methods

    EventsStateMachine(string selectedSceneGraphData);

    VisualElement CreateExistingItemButton(
        EventsScriptableObject so,
        ScrollView parent,
        string buttonText,
        Type entryType,
        ScrollView existingItemsView,
        List> items,
        bool allTypesMode
    );

    virtual override void State0(ScrollView parent);

    virtual override void State1(
        ScrollView parent,
        Action onValueChanged,
        bool reset
    );

    virtual override void State2(
        ScrollView parent,
        Action onValueChanged,
        bool reset
    );
};

Inherited Members

public:
    // properties

    string SelectedSceneGraphData;

    // methods

    BaseAnalyticsStateMachine(string selectedSceneGraphData);
    virtual void State0(ScrollView parent);
    virtual void State1(ScrollView parent, Action onValueChanged, bool reset);
    virtual void State2(ScrollView parent, Action onValueChanged, bool reset);

    VisualElement CreateExistingItemButton(
        AnalyticsScriptableObject so,
        string assetName,
        AnalyticsTypes.Type analyticsType,
        ScrollView parent,
        string buttonText,
        Type entryType,
        ScrollView existingItemsView,
        List> items,
        bool allTypesMode
    );

Detailed Documentation

The state machine for the events.

Properties

DropdownField TypesDropdown

Gets the dropdown field for the types.

Methods

EventsStateMachine(string selectedSceneGraphData)

Initializes a new instance of the EventsStateMachine class.

Parameters:

selectedSceneGraphData

The name of the selected scene graph data.

VisualElement CreateExistingItemButton(
    EventsScriptableObject so,
    ScrollView parent,
    string buttonText,
    Type entryType,
    ScrollView existingItemsView,
    List> items,
    bool allTypesMode
)

Creates a new button for the existing items view.

Parameters:

so

The scriptable object associated with this item.

parent

The parent element of this tab.

buttonText

The text of the button.

entryType

The type of the selected error.

existingItemsView

The scroll view containg all the existing items(buttons).

items

The items that are currently displayed in the existing item scrollview.

allTypesMode

Whether or not the all types option is selected from the dropdown.

Returns:

The created button.

virtual override void State0(ScrollView parent)

The first state of the state machine.

Parameters:

parent

The parent UI element.

virtual override void State1(
    ScrollView parent,
    Action onValueChanged,
    bool reset
)

The second state of the state machine.

Parameters:

parent

The parent UI element.

onValueChanged

Lambda to be called when the value changes.

reset

Whether or not to reset the parent.

virtual override void State2(
    ScrollView parent,
    Action onValueChanged,
    bool reset
)

The third state of the state machine.

Parameters:

parent

The parent UI element.

onValueChanged

Lambda to be called when the value changes.

reset

Whether or not to reset the parent.