YEcarri Posted December 30, 2018 Share Posted December 30, 2018 Is there a way to group several plugins in one single menu entry? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted December 30, 2018 Share Posted December 30, 2018 (edited) 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 December 30, 2018 by toe_head2001 Quote (June 9th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
YEcarri Posted December 30, 2018 Author Share Posted December 30, 2018 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. Quote Link to comment Share on other sites More sharing options...
YEcarri Posted December 30, 2018 Author Share Posted December 30, 2018 Ok, I found the way, For future references, just implement the SubmenuName property in the plugin code: public static string SubmenuName { get { return "oSoft"; } } Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted December 31, 2018 Share Posted December 31, 2018 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"; } } Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.