Initial Commit
This commit is contained in:
parent
53eb92e9af
commit
270ab7d11f
15341 changed files with 700234 additions and 0 deletions
|
@ -0,0 +1,36 @@
|
|||
namespace UnityEditor.Timeline.Actions
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates the validity of an action for a given data set.
|
||||
/// </summary>
|
||||
public enum ActionValidity
|
||||
{
|
||||
/// <summary>
|
||||
/// Action is valid in the provided context.
|
||||
/// If the action is linked to a menu item, the menu item will be visible.
|
||||
/// </summary>
|
||||
Valid,
|
||||
/// <summary>
|
||||
/// Action is not applicable in the current context.
|
||||
/// If the action is linked to a menu item, the menu item will not be shown.
|
||||
/// </summary>
|
||||
NotApplicable,
|
||||
/// <summary>
|
||||
/// Action is not valid in the current context.
|
||||
/// If the action is linked to a menu item, the menu item will be shown but grayed out.
|
||||
/// </summary>
|
||||
Invalid
|
||||
}
|
||||
|
||||
struct MenuActionItem
|
||||
{
|
||||
public string category;
|
||||
public string entryName;
|
||||
public string shortCut;
|
||||
public int priority;
|
||||
public bool isActiveInMode;
|
||||
public ActionValidity state;
|
||||
public bool isChecked;
|
||||
public GenericMenu.MenuFunction callback;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue