| 1234567891011121314151617181920212223242526272829 |
- 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)
- {
- this.path = path;
- this.shortcut = new ShortcutKey(shortcutModifier, shortcutKey);
- this.priority = priority;
- this.separator = separator;
- }
- public MenuItem(string path, int priority = 0, bool separator = false)
- {
- this.path = path;
- this.priority = priority;
- this.separator = separator;
- }
- private string path;
- private ShortcutKey shortcut;
- private int priority;
- private bool separator;
- }
- }
|