namespace UIWidgets
{
using System;
using UnityEngine;
///
/// Base class for the dialog to add/edit track.
///
/// Type of the data.
/// Type of the points.
/// TrackForm type.
public class TrackDialogBase : MonoBehaviour
where TTrackForm : TrackFormBase
where TData : class, ITrackData
where TPoint : IComparable
{
///
/// Dialog template.
///
[SerializeField]
public Dialog DialogTemplate;
///
/// Create header text.
///
[SerializeField]
public string HeaderCreate = "Create Track";
///
/// Create button text.
///
[SerializeField]
public string ButtonCreate = "Create";
///
/// Cancel button text.
///
[SerializeField]
public string ButtonCancel = "Cancel";
///
/// Edit header text.
///
[SerializeField]
public string HeaderEdit = "Edit Track";
///
/// Save button text.
///
[SerializeField]
public string ButtonEdit = "Save";
///
/// Create track.
///
/// Function to call after track created.
public void Create(Action