Example #1
0
        protected override void OnCloned(ToolbarEntry clone)
        {
            base.OnCloned(clone);

            var spell = clone as ToolbarSpell;

            if (spell == null)
            {
                return;
            }

            spell.SpellID = SpellID;
        }
Example #2
0
        protected override void OnCloned(ToolbarEntry clone)
        {
            base.OnCloned(clone);

            var phrase = clone as ToolbarPhrase;

            if (phrase == null)
            {
                return;
            }

            phrase.SpamDelay = SpamDelay;
            phrase.TextType  = TextType;
        }
Example #3
0
        protected override void OnCloned(ToolbarEntry clone)
        {
            base.OnCloned(clone);

            var cmd = clone as ToolbarCommand;

            if (cmd == null)
            {
                return;
            }

            cmd.Args      = (Args != null && Args.Count > 0) ? Args.ToList() : new List <string>();
            cmd.MinAccess = MinAccess;
        }
Example #4
0
 public static void RegisterEntry(int x, int y, ToolbarEntry entry)
 {
     DefaultEntries.SetContent(x, y, entry);
 }