Sign in to follow this  
YEcarri

Grouping Several Plugins in one menu entry

Recommended Posts

Sorry, you can not. The menu placement is chosen by the plugin developer.

 

EDIT:

Oh sorry, I didn't notice this was in the Plugin Dev area of the forum. The menu is defined in the Constructor.

public MyPlugin()
    : base("MyPluginName", MyPluginImage, "xyzMenu", EffectFlags.Configurable)
{
}

 

Edited by toe_head2001

Share this post


Link to post
Share on other sites
1 minute ago, toe_head2001 said:

Sorry, you can not. The menu placement is chosen by the plugin developer.

 

Thank you for your prompt answer. Actually, I am the developer. What I need to know is how to place my plugins in a specific menu entry. I couldn't find anything in PaintDotNet.IPluginSupportInfo to specify the menu entry.

Share this post


Link to post
Share on other sites

Ok, I found the way, For future references, just implement the SubmenuName property in the plugin code:

 

public static string SubmenuName
{
   get
   {
      return "oSoft";
   }
}

 

Share this post


Link to post
Share on other sites

Well done @YEcarri. Here's a list of the most common submenus already in use...

 

      /// <summary>
        /// StaticSubMenuName defines which submenu the Effect will be placed in.  
        /// </summary>       
        public static string StaticSubMenuName
        {
            get
            {
                // return SubmenuNames.Artistic; 
                // return SubmenuNames.Blurs; 
                // return SubmenuNames.Distort; 
                // return SubmenuNames.Noise; 
                // return SubmenuNames.Photo; 
                return SubmenuNames.Render;     // default = Render submenu  
                // return SubmenuNames.Stylize; 
                // return null;             // No submenu (places the Effect directly into the Effects menu without locating it in a submenu)
                // return "My SubMenu";     // Custom submenu called 'My Submenu'.  Please use custom submenus responsibly & don't go populating
                // the Effects menu with a billion arbitrary submenus.  These custom submenus are already well supported:  
                // Advanced
                // Color 
                // Object
                // Object Align
                // Selection
                // Text Formations
                // Texture
                // Tools
                // Transparency
                //return "Test";
            }
        }

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this