using System; using BansheeEngine; namespace BansheeEditor { [AttributeUsage(AttributeTargets.Method)] public sealed class MenuItem : Attribute { public MenuItem(string path, ButtonModifier shortcutModifier, ButtonCode shortcutKey, int priority = 0, bool separator = false, string contextCallback = null) { this.path = path; this.shortcut = new ShortcutKey(shortcutModifier, shortcutKey); this.priority = priority; this.separator = separator; this.contextCallback = contextCallback; } public MenuItem(string path, int priority = 0, bool separator = false, string contextCallback = null) { this.path = path; this.priority = priority; this.separator = separator; this.contextCallback = contextCallback; } private string path; private ShortcutKey shortcut; private int priority; private bool separator; private string contextCallback; } }