Braiden Posted May 15, 2008 Share Posted May 15, 2008 So, as the title suggests, im a self proclaimed VB.net 'Hacker' ( please do not think of me as the 'illegal' 'live in my basement' type of person, go to wikipedia and search hacker... ) Ive noticed that one thing i hate is organising my plugins, because the names arent all too helpful, so im going to make a PaintDOTNet Plugin Manager, i have all the coding done, i just need to know how PDN's plugin casing gets the 'Plugin name' from the .dll file. Its most probably a couple of namespace definitions and some lines of code! Any advice would be great, as i work with stand alones due to my Part-Time work. Thanks! and im glad to be part of an awesome project! Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 15, 2008 Share Posted May 15, 2008 This is where Paint.NET parses the plugin for the name, submenu, and icon: namespace EffectsPluginTemplate1 { public class EffectPlugin : PaintDotNet.Effects.Effect { public static string StaticName { get { return "Effect Plugin"; } } public static Bitmap StaticIcon { get { return new Bitmap(typeof(EffectPlugin), "EffectPluginIcon.png"); } } public static string StaticSubMenuName { get { return null; // Use for no submenu // return "My SubMenu"; // Use for custom submenu } } Quote Link to comment Share on other sites More sharing options...
Braiden Posted May 15, 2008 Author Share Posted May 15, 2008 So i suppose the same architecture would work for all set variables? Anyhow, thats a great help, and now i can add it to my 'Paint DOT Net Manager' program, as to work upon the features to come. on looking at that again, that looks like C#? either way its pretty close to VB.net Im actually amazed at how two .net languages can be so different, as i would think that VB.net is easier due to the fact its like a version of Pseudo Code [citation needed] and C# is like a mix of Java and Pseudo Code ( or atleast thats what i think ) Thanks Mike, i hope to bring out more and more software tools for P.Net! Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 15, 2008 Share Posted May 15, 2008 Mainly, yes. I recommend using reflector for looking at Pyrochild's ScriptLab for learning purposes only. IF the C# confuses you, then I will tell you I took that straight from the Effects Template. There is also a VB.NET version of that to, and can be found here: viewtopic.php?f=5&t=23004 Quote Link to comment Share on other sites More sharing options...
Braiden Posted May 15, 2008 Author Share Posted May 15, 2008 Ill have a look at ScriptLab, must be interesting because ive seen a lot of people talk about it. I understand the C# fine, ive coded in that a little bit too [ http://redvex.d2help.com/ ], i worked on the C# Version of RedVex, which is a Packet SNiffer/Sender/Spoofer for the game Diablo II, used to make follow bots, auto TP's, Map Hacks etc etc, but i didnt do that much, mainly offering VB.net solutions, converted to C# I work with Visual Studio 2008 Professional, so it usually can convert the code or offer alternatives for me cheap i know So i will have to get working on that, ill probably just add an about box, modify what it displays upon loading by using Public variables, and ill be set! I guess your the man to PM about code then Quote Link to comment Share on other sites More sharing options...
Mike Ryan Posted May 15, 2008 Share Posted May 15, 2008 Actually, I am just learning :oops: But I love to help others out and am interested in your project. Like I said, I have a few more feature requests but I am interested to see how this plays out first. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted May 15, 2008 Share Posted May 15, 2008 Please remember to post in the correct section of the forum ... Moved to Effects API/Development Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html 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.