// Animancer // https://kybernetik.com.au/animancer // Copyright 2018-2024 Kybernetik //
#if UNITY_EDITOR
using System;
using UnityEngine;
namespace Animancer.Editor.TransitionLibraries
{
/// [Editor-Only]
/// Manages the selection of pages in the .
///
/// https://kybernetik.com.au/animancer/api/Animancer.Editor.TransitionLibraries/TransitionLibraryWindowPage
[Serializable]
public abstract class TransitionLibraryWindowPage : IComparable
{
/************************************************************************************************************************/
/// The window containing this page.
public TransitionLibraryWindow Window { get; set; }
/************************************************************************************************************************/
/// The name of this page.
public abstract string DisplayName { get; }
/// The text to use for the tooltip on the help button while this page is visible.
public abstract string HelpTooltip { get; }
/************************************************************************************************************************/
/// The sorting index of this page.
public abstract int Index { get; }
/// Compares the .
public int CompareTo(TransitionLibraryWindowPage other)
=> Index.CompareTo(other.Index);
/************************************************************************************************************************/
/// Draws the GUI of this page.
public abstract void OnGUI(Rect area);
/************************************************************************************************************************/
}
}
#endif