ReMake Posted November 23, 2019 Share Posted November 23, 2019 CodeLab 4.4 in Russian You can find the new version of CodeLab in Russian here. Вы можете найти новую версию CodeLab на русском языке здесь. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted November 23, 2019 Share Posted November 23, 2019 (edited) Here's some commentary for the items that may not be obvious: Snippet Manager This can be accessed from the toolbar. The icon for it is on the far right. Snippets can be shared. They are Imported and Exported in the JSON format. Here's an example you can import: { "preRender": "void PreRender(Surface dst, Surface src)\r\n{\r\n $\r\n}", "dw": "Debug.WriteLine($);", "curPal": "IReadOnlyList<ColorBgra> currentPalette = Services.GetService<IPalettesService>().CurrentPalette;" } A dollar sign ($) can used to control the placement of the text caret. RadioButtonControl<TEnum> and ListBoxControlControl<TEnum> This is kind of a hidden feature, since the UI Designer doesn't generate them for you. If you want to take advantage of this feature, you just need to know it exists and how to use it. Here's an example: #region UICode RadioButtonControl<Positions> position = Positions.Center; // Image Position|On the Left|In the Center|On the Right #endregion enum Positions { Left, Center, Right } void Render(Surface dst, Surface src, Rectangle rect) { switch (position) { case Positions.Left: // Code Here break; case Positions.Center: // Code Here break; case Positions.Right: // Code Here break; } dst.CopySurface(src, rect.Location, rect); } Q. Doesn't this just add more code to my plugin, since it now has to include an extra Enum and the RadioButtonControl<TEnum> generic class? A. No. 1) CodeLab would have to generated an Enum behind-the-scenes anyway. Your user-defined Enum negates the need for CodeLab to generate one. 2) A RadioButtonControl<TEnum> generic class doesn't exist. This is implemented as "syntax sugar". When the code is compiled, RadioButtonControl<> is stripped away leaving just your enum. Argument Constraints for Generics in Tooltips Not too many of the Generics you see in CodeLab have constraints, so here's a screenshot: Edited May 27, 2020 by toe_head2001 typos 3 Quote (September 25th, 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...
Ego Eram Reputo Posted November 24, 2019 Share Posted November 24, 2019 Excellent update! Thanks guys. I have to say I'm also a BIG fan of the icon in the installer! It looks great! 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...
xod Posted December 7, 2019 Share Posted December 7, 2019 Thanks for this update! Maybe in a later version this message will be resized on two lines of text to avoid the appearance of this extremely long window. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted December 8, 2019 Share Posted December 8, 2019 2 hours ago, xod said: Maybe in a later version this message will be resized on two lines of text to avoid the appearance of this extremely long window. Yes, it's a run-on sentence, and needs a rewrite. Quote (September 25th, 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...
BoltBait Posted January 10, 2020 Share Posted January 10, 2020 CodeLab 5.0 Released This is only for Paint.NET 4.2+! HUGE update today... Changes: ▪ Added TXT file support (toe_head2001) ▪ Added File Type plugin development support (toe_head2001) ▪ Added Shape (xaml) editing support (toe_head2001) ▪ File New Templates completely rewritten to allow multi-effect pipeline (BoltBait) ▪ Lots of bug fixes, refactorings, and optimizations Grab the CodeLab DLL here: https://www.boltbait.com/pdn/CodeLab/ Screenshots: How to access the new features we added to CodeLab: New Effect screen: It is now possible to string together as many Effects, Pixel Ops, Blend Modes, Surface Fills, and Surface Copies as you want. CodeLab will then write the code for you to combine all this into an effect. Now, we understand that this is going to lead to an explosion of new plugins that just throw everything together into one UI. As mods, we will be reviewing plugins posted in the Plugin Forum and deleting those that just aren't up to standards. We don't want to discourage everyone from making their own plugins for their own machine. But, let's keep the quality up in our plugin forum. (Remember, noobs should be using plugins, not writing them.) New Shape screen: This is not an inclusion of the Shape Maker plugin. This is simply an editor for the actual .xaml shape files that Paint.NET uses. It includes syntax highlighting and code completion. CodeLab is now a complete replacement for the KAXAML editor in this tutorial. Editing text files (nothing special, no syntax highlighting, just a place to keep notes, etc.): Designing and Implementing File Type Plugins: And, with this release, MY wish list for CodeLab is complete. Enjoy! 😎 2 4 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
ReMake Posted January 10, 2020 Share Posted January 10, 2020 Grandly!!! Due to a chronic lack of time, I am not ready to publish the Russian version now - it will take 4-5 days. Quote Link to comment Share on other sites More sharing options...
ReMake Posted January 10, 2020 Share Posted January 10, 2020 Action sequenceFile -> New -> Effect -> Category: Blend, Mode: User selected -> Add -> Generate Code causes an error in the script because it does not create a control in #region UICode. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted January 10, 2020 Share Posted January 10, 2020 I knew I’d forgotten something! I’ll take a look at it tonight. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
BoltBait Posted January 11, 2020 Share Posted January 11, 2020 OK, I checked in a fix for this. As this is pretty minor, let's see if anything else needs fixing before publishing a new release. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
ReMake Posted January 12, 2020 Share Posted January 12, 2020 Try File -> New -> Effect -> Fill -> Primary (or Secondary) -> Add -> Generate Code and we have another error in the script. Quote Link to comment Share on other sites More sharing options...
BoltBait Posted January 12, 2020 Share Posted January 12, 2020 27 minutes ago, ReMake said: we have another error Yes we do! Thanks, I will fix it right now. Keep looking for errors! When I rewrote the File New screen it was over 2,000 lines of all new code. So, finding an error or two in that section is not surprising. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
BoltBait Posted January 12, 2020 Share Posted January 12, 2020 1 hour ago, ReMake said: Try File -> New -> Effect -> Fill -> Primary (or Secondary) -> Add -> Generate Code and we have another error in the script. OK, that's fixed. Anything else? Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Reptillian Posted January 13, 2020 Share Posted January 13, 2020 Can't help, but felt like commenting on this even though I don't use codelab. I'm actually impressed at how far codelab went. 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 13, 2020 Share Posted January 13, 2020 Codelab has had an astonishing overhaul. BoltBait and toe_head2001 have made an awesome tool into something quite incredible. I still want them to write a book on it.... 1 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...
BoltBait Posted January 13, 2020 Share Posted January 13, 2020 7 minutes ago, Ego Eram Reputo said: I still want them to write a book on it.... With a potential audience of at most a dozen people... I'll get right on that! Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 13, 2020 Share Posted January 13, 2020 Working title "learn to code in C# using...Codelab and paint.net!" 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...
lynxster4 Posted January 13, 2020 Share Posted January 13, 2020 7 hours ago, Ego Eram Reputo said: Working title "learn to code in C# using...Codelab and paint.net!" I'd read it @BoltBait! Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Panchdara Posted January 14, 2020 Share Posted January 14, 2020 On 1/13/2020 at 5:26 AM, Ego Eram Reputo said: Working title "learn to code in C# using...Codelab and paint.net!" On 1/13/2020 at 12:57 PM, lynxster4 said: I'd read it @BoltBait! Me too. Any good explanation of coding is a welcome. Best Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 14, 2020 Share Posted January 14, 2020 55 minutes ago, Panchdara said: Me too. Any good explanation of coding is a welcome. @ReMake created some CodeLab-oriented coding tutorials. Lines/Grid Saturation RGB Neon Edges Sponge Sponge (v2) Linocut Color Sketch 2 2 Quote (September 25th, 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...
anon3 Posted January 16, 2020 Share Posted January 16, 2020 (edited) _ Edited January 15, 2021 by anon3 Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 16, 2020 Share Posted January 16, 2020 1 hour ago, anon3 said: The new version removed the ability to open a file and build a dll. Now the only way to do it is to copy the file content into the editor and save it to a file to be allowed to build a dll, preview the plugin and etc. It works for me. Can you give the specific steps that demonstrate the issue? 1 hour ago, anon3 said: Is there possibility to be added character for identation and space width of it (like 1 tab with width of 2 spaces)? A tab width of 2 spaces instead of 4 spaces? Yes, it would be very easy to add that option. 1 hour ago, anon3 said: Could you add ability to save the dll directly and to a directory instead to zipping it to the desktop? Possible? Yes. Please explain why you would want to do that. 1 hour ago, anon3 said: Can you allow reloading of a tab if you edit it from outside the editor, because now reopening it will cause a creation of a new tab? Maybe. 1 hour ago, anon3 said: The last one is a bit tricky probably, but I see the generated code in the region "User Entered Code". Can you add ability to see the full source in the editor and directly change it. It can be done easily with user regions inside the generated code or vice versa. Absolutely not. That would defeat the purpose of using CodeLab. If you want the full source code, you should be using Visual Studio. Quote (September 25th, 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...
NSD Posted January 16, 2020 Share Posted January 16, 2020 Display issues: Display settings > Custom scaling 125%. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 16, 2020 Share Posted January 16, 2020 3 minutes ago, NSD said: Display issues: Display settings > Custom scaling 125%. Looks like I didn't fully test HiDPI when I changed the font to Segoe UI. I'll get that fixed. 1 Quote (September 25th, 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...
NSD Posted January 16, 2020 Share Posted January 16, 2020 Thank you for giving us this great tool for free! Another useful thing would be, in my opinion, the insertion of a space after a comma when formatting the code. For example the next line: using (Pen pen = new Pen(Color.FromArgb(80,0,0,255))) it will look like this: using (Pen pen = new Pen(Color.FromArgb(80, 0, 0, 255))) Quote 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.