public void ShowMenu(ActionMenuItemBuilder builder)
 {
     _menu.SetItems("", builder.Get());
     _menu.Show();
     _menu.Activate();
 }
        public ActionMenuPlugin(ActionMenuPluginConfig config)
        {
            _config = config;

            DefaultMenu = CreateDefault();
        }
 public void ShowMenu(string message, ActionMenuItemBuilder builder)
 {
     _menu.SetItems(message, builder.Get());
     _menu.Show();
     _menu.Activate();
 }
Exemple #4
0
 public ActionMenuItemBuilder AddMenu(string text, ActionMenuItemBuilder builder)
 {
     Add(text, () => _plugin.ShowMenu(text, builder));
     return(this);
 }