class MAGES::SceneGraph::Editor::ConditionsPanel

Overview

A panel that lists the ConditionData entries of an action, and lets the user add, edit and remove them. More…

class ConditionsPanel: public VisualElement
{
public:
    // classes

    class ConditionItem;

    // methods

    ConditionsPanel(
        BaseActionData data,
        SerializedObject serializedObject,
        Action onClose
    );
};

Detailed Documentation

A panel that lists the ConditionData entries of an action, and lets the user add, edit and remove them.

Follows EffectPanel’s plumbing: no undo, no reordering. The row type is a private nested class on purpose - SG2 declares a public ConditionItem in this same namespace, and a second public one would collide.

Methods

ConditionsPanel(
    BaseActionData data,
    SerializedObject serializedObject,
    Action onClose
)

Initializes a new instance of the ConditionsPanel class.

Parameters:

data

The action data.

serializedObject

The serialized object.

onClose

Action to call when the panel is closed.