Rick Brewster

CodeLab v5.4 (for advanced users) Released May 21, 2020

Recommended Posts

Suggested Names will perform a bit differently for Types that implement IEnumerable<T>.

The suggestions will be based on T, and will be plural.  This is how Visual Studio does it.

 

IEnumerable1.png

 

 

IEnumerable2.png

 

 

IEnumerable3.png

Share this post


Link to post
Share on other sites

CodeLab 5.4 Released

This is only for Paint.NET 4.2.11+!

 

Small (but important) update today...

 

Changes:
▪ Improved suggested variable names (toe_head2001)

▪ Improvemens in Autocomplete and Intellisense (toe_head2001)

▪ Generate Type Definitions on F12. You can now see definitions inside of libraries. (toe_head2001)

▪ Remember scroll positions (and other things) when switching tabs (toe_head2001)

▪ Rewrite File New Template for up to 2 Scratch Surfaces, also bug fixes and better code (BoltBait)

 


Grab the CodeLab DLL here:

 

https://www.boltbait.com/pdn/CodeLab/

 

 

File New Template Improvements:

 

When I completely rewrote the File New Templates in CodeLab 5.0, I was under the assumption that it was OK to use the DST surface as a scratch surface during the calculation of your final results.  This is OK under some very narrow circumstances, but generally this should be avoided.  (This could cause your effects to have different results when previewing your effect and when clicking OK to finalize your image.)  In this release, I have removed this capability and replaced it with a second scratch surface called AUX.  So, now you have access to the source surface (SRC) which is your layer before any changes are made, a working surface (WRK) to use as a scratch surface if necessary, a second working surface (AUX) to use if necessary, and of course the destination surface (DST) where you store your final calculated pixels.

 

NewComplexUI.png

 

In previous versions, the blend modes had the top and bottom layers swapped--that's fixed in this build.  The code generated should also be easier to understand.

 

(This is the last update before toe_head2001 rewrites the entire compiler section.)

  • Like 1
  • Upvote 3

Share this post


Link to post
Share on other sites

CodeLab 5.4 in Russian

 

You can find the new version of CodeLab in Russian here.

Вы можете найти новую версию CodeLab на русском языке здесь.

Share this post


Link to post
Share on other sites

Here's a screenshot showing Type Definitions:

 

CodeLab-Surface-Def.png

 

 

You can still look up Definitions on docs.microsoft.com, but you'll have to open the context menu:

 

CodeLab-Look-Up-Def.png

  • Upvote 1

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.