Synced
EditorToolbarItemAttribute.Constructor
Section titled “EditorToolbarItemAttribute.Constructor”
- Creates a toolbar placement for the annotated targetless action.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Interactions
Declaration
Section titled “Declaration”public Inno.Editor.Interactions.EditorToolbarItemAttribute.EditorToolbarItemAttribute(string area, Inno.Editor.Interactions.EditorToolbarIcon icon, string tooltip, int order = 0, Inno.Editor.Interactions.EditorToolbarIcon activeIcon = Inno.Editor.Interactions.EditorToolbarIcon.None)Parameters
Section titled “Parameters”Parameter area: The exact interaction area whose toolbar receives the action.
Parameter icon: The symbol shown while the action is not checked.
Parameter tooltip: The fallback tooltip shown when the action has no contextual display name.
Parameter order: The stable ordering value within the toolbar.
Parameter activeIcon: The symbol shown while the action is checked, or F:Inno.Editor.Interactions.EditorToolbarIcon.None to retain icon.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: Thrown when area or tooltip is empty, or when icon is F:Inno.Editor.Interactions.EditorToolbarIcon.None.
Exception T:System.ArgumentOutOfRangeException: Thrown when an icon value is not defined.