Rick Brewster

CodeLab v4.1 (for advanced users) Released October 22, 2018

Recommended Posts

On 12/27/2017 at 4:05 AM, toe_head2001 said:
On 12/2/2017 at 4:43 PM, MadJik said:

I'm having trouble with radiobuttons (same for dropdownlist).

In CodeLab I can change the value in the UI part of the code

Once built the Radiobutton is set to 0 ('None')

 

Howdy, I've fixed this for the next release.

However, anytime you use the UI Designer, it will revert the number back to 0 in your script. You'll need to make sure it's correct before building a DLL.

 

I've fully fixed this: Using the UI Designer will no longer revert the value back to 0.

Share this post


Link to post
Share on other sites
7 hours ago, toe_head2001 said:

I've fully fixed this: Using the UI Designer will no longer revert the value back to 0.

 

Where could I download the updated version? CodeLab from BoltBait site still reverts the value to 0.

 

Share this post


Link to post
Share on other sites
7 hours ago, MadJik said:

Where could I download the updated version? CodeLab from BoltBait site still reverts the value to 0.

 

@toe_head2001 and I work together on CodeLab.  So, when he says he fixed something it means it will show up in the next official release of CodeLab.

 

When will the next official release happen?  I'm not sure.  Generally, we both work on stuff until we feel that we have a "release full" of stuff done.  Currently, there's only a "handfull" of stuff done.  But, I'm sure it won't be too long.

Share this post


Link to post
Share on other sites

Thinking of getting this so I can edit dpy's speech bubble plugin for my own personal use. Problem is...I have no idea how to code. Does this work as a text editor using nodepad/notepad++ ?

Share this post


Link to post
Share on other sites
6 minutes ago, Sonario648 said:

Does this work as a text editor using nodepad/notepad++ ?

 

Yes, CodeLab is essentially a text editor.

Both CodeLab and Notepad++ use the Scintilla component for the actual text editing.

 

7 minutes ago, Sonario648 said:

Problem is...I have no idea how to code.

 

You'll need to know how to code, if you want to make meaningful changes to the Speech Bubble effect.

It's not to late to learn though. :)

Share this post


Link to post
Share on other sites
Just now, toe_head2001 said:

 

Yes, CodeLab is essentially a text editor.

Both CodeLab and Notepad++ use the Scintilla component for the actual text editing.

 

 

You'll need to know how to code, if you want to make meaningful changes to the Speech Bubble effect.

It's not to late to learn though. :)

Even if I simply want to add a few more directions for the....tail that's used to show who is talking and where the speech is coming from?

Edited by Sonario648
Just found out finally that the thingamabob line thingy is called a tail.

Share this post


Link to post
Share on other sites

CodeLab 4.1 Released

This is only for Paint.NET 4.1.2+!

 

Small update today...

 

Changes:

▪ Added a 'Find Next' button to the Find panel. (toe_head2001)
▪ Ensure the .rtz file is part of the generated Solution. (toe_head2001)
▪ Retain default values when using UI Designer. (toe_head2001)
▪ Changed "while" snippet. (toe_head2001)
▪ Fixed generated OnDispose code. (BoltBait)
▪ Fixed a bug in Install.BAT files for the Store versions of PdN. (BoltBait)
▪ Lots of code cleanup, minor fixes, and HiDPI fixes. (toe_head2001 and BoltBait)

 

Grab the CodeLab DLL here:

 

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

 

 

OnDispose code fix:

 

In previous builds of CodeLab, if you used the File>New templates to generate a CodeLab script and you used an effect or a working surface, CodeLab would generate an OnDispose method like this:

 

protected override void OnDispose(bool disposing)
{
    // Release any surfaces or effects you've created.
    if (wrk != null) wrk.Dispose();
    wrk = null;
    if (blurEffect != null) blurEffect.Dispose();
    blurEffect = null;

    base.OnDispose(disposing);
}

This is no good because it will dispose your effects and work surface without looking at the "disposing" flag variable.

 

This release of CodeLab corrects the generated code to the following:

 

protected override void OnDispose(bool disposing)
{
    if (disposing)
    {
        // Release any surfaces or effects you've created.
        if (wrk != null) wrk.Dispose();
        wrk = null;
        if (blurEffect != null) blurEffect.Dispose();
        blurEffect = null;
    }

    base.OnDispose(disposing);
}

Notice that it is now checking the "disposing" variable before actually disposing the work surface and effect.

 

You may need to revisit any effects you've written in the past to be sure the OnDispose code is written properly.

 

  • Like 1
  • Upvote 3

Share this post


Link to post
Share on other sites

Also in CodeLab v4.1

You can now set the Min/Max range for the AngleChooser control.

angleRange.png

 

Previously, you'd have to export the project to Visual Studio if you wanted to do this.

  • Like 1
  • Upvote 3

Share this post


Link to post
Share on other sites

CodeLab 4.1 in Russian

 

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

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

  • Upvote 2

Share this post


Link to post
Share on other sites

First of all, thank you very much for your work.

 

Secondly, about AngleChooser, sometimes it's useful to set a zero-trigonometric value to +90 degrees. This could be added as an option in the Style drop-down list.
Default: trigonometric zeros
Custom: zeros to +90 degree

 

I don't know how much work this option requires and that's why I don't want to insist. Anyway, I can live without it. ?

Edited by xod

Share this post


Link to post
Share on other sites
2 minutes ago, xod said:

Secondly, sometimes it's useful to set a zero-trigonometric value to +90 degrees.

 

My trigonometry is a bit "rusty"; what's a zero-trigonometric value?

Share this post


Link to post
Share on other sites

Apologies if I missed a link somewhere. Is there a zip for CodeLab 4.1 that is not an installer?

Alternatively is there a why to have the CodeLabInstaller exe work with the Windows Store version of Paint.net?

Share this post


Link to post
Share on other sites

I've created some work-in-progress documentation for CodeLab.  This covers the actual features of CodeLab; nothing code related.

It is written in markdown files, and then MkDocs is used to build those files into a website.

 

https://toehead2001.github.io/codelab-docs/

 

Each page has an edit icon in the top right corner. Feel free to fill in any missing content.

A GitHub account to required to submit changes though.

 

  • Upvote 1

Share this post


Link to post
Share on other sites

I don't know if this is intentional behavior or a bug.

 

b23bteT.png

 

Also, for Display setting to 125% if the UI becomes too high and the scroll bar appears, the control is not properly resized and the color rectangle is not entirely visible.

 

KiXBtYm.png

Edited by xod

Share this post


Link to post
Share on other sites
6 hours ago, xod said:

 

I don't know if this is intentional behavior or a bug.

 

 

What at do you expect to happen?

 

Currently, the selection is displayed in the control so the + is constrained to the selection. 

 

BTW, 125% is an evil abomination that shouldn’t exist. Only 100 or 200 should be chosen. 

  • Like 1

Share this post


Link to post
Share on other sites

Ok, I understand, thanks.
I don't know why I had the impression that this was not happening in previous versions of CodeLab.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now