class MAGES::Editor::ConfigurationTaskUI¶
Overview¶
Creates UI for handling a BaseConfigurationTask. More…
class ConfigurationTaskUI: public MAGES::Editor::IConfigurationTaskCallbacksReceiver { public: // properties UnityEngine.UIElements.Button FixButton; UnityEngine.UIElements.Label Label; UnityEvent<BaseConfigurationTask> TaskUpdated; // methods ConfigurationTaskUI(); void BindGUI(VisualElement root, BaseConfigurationTask task); void TaskTypeChanged( BaseConfigurationTask task, ConfigurationTaskType newType, ConfigurationTaskType previousType ); void TaskStateChanged( BaseConfigurationTask task, ConfigurationTaskState newState, ConfigurationTaskState previousState ); void Repaint(); static VisualElement CreateGUI(); };
Inherited Members¶
public: // methods void TaskTypeChanged( BaseConfigurationTask task, ConfigurationTaskType newType, ConfigurationTaskType previousType ); void TaskStateChanged( BaseConfigurationTask task, ConfigurationTaskState newState, ConfigurationTaskState previousState );
Detailed Documentation¶
Creates UI for handling a BaseConfigurationTask.
Properties¶
UnityEngine.UIElements.Button FixButton
Gets the fix button for this task.
UnityEngine.UIElements.Label Label
Gets the label for this task.
UnityEvent<BaseConfigurationTask> TaskUpdated
Gets or sets the unity event to be called when the managed task is updated.
Methods¶
ConfigurationTaskUI()
Initializes a new instance of the ConfigurationTaskUI class.
void BindGUI(VisualElement root, BaseConfigurationTask task)
Binds the UI to the given task.
Parameters:
root |
The root of the TaskUI. |
task |
The task to bind to. |
void Repaint()
Updates the UI of the task.
static VisualElement CreateGUI()
Creates the UI for this task.
Returns:
The UI’s root.