toe_head2001 1,282 Report post Posted September 23, 2018 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. Quote Share this post Link to post Share on other sites
MadJik 955 Report post Posted September 23, 2018 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. Quote Share this post Link to post Share on other sites
BoltBait 2,175 Report post Posted September 23, 2018 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. Quote Share this post Link to post Share on other sites
MadJik 955 Report post Posted September 23, 2018 Thank you @BoltBait for this answer. Quote Share this post Link to post Share on other sites
Sonario648 0 Report post Posted October 18, 2018 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++ ? Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted October 18, 2018 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. Quote Share this post Link to post Share on other sites
Sonario648 0 Report post Posted October 18, 2018 (edited) 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 October 18, 2018 by Sonario648 Just found out finally that the thingamabob line thingy is called a tail. Quote Share this post Link to post Share on other sites
Ego Eram Reputo 2,193 Report post Posted October 18, 2018 Yup. You'll need to know C#. As far as I recall, the author of Speech Bubble ( @dpy ) hasn't released the source of his plugins. Quote Share this post Link to post Share on other sites
BoltBait 2,175 Report post Posted October 23, 2018 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. 1 3 Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted October 23, 2018 Also in CodeLab v4.1 You can now set the Min/Max range for the AngleChooser control. Previously, you'd have to export the project to Visual Studio if you wanted to do this. 1 3 Quote Share this post Link to post Share on other sites
ReMake 631 Report post Posted October 23, 2018 CodeLab 4.1 in Russian You can find the new version of CodeLab in Russian here. Вы можете найти новую версию CodeLab на русском языке здесь. 2 Quote Share this post Link to post Share on other sites
xod 360 Report post Posted October 24, 2018 (edited) 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 October 24, 2018 by xod Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted October 24, 2018 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? Quote Share this post Link to post Share on other sites
xod 360 Report post Posted October 24, 2018 (edited) Edited October 24, 2018 by xod Added image. 1 Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted October 24, 2018 Oh, I see. Zero would be at the "12 O'clock" position. Yeah, I agree. It would be useful. Quote Share this post Link to post Share on other sites
carpetbagger 0 Report post Posted November 6, 2018 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? Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted November 27, 2018 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. 1 Quote Share this post Link to post Share on other sites
xod 360 Report post Posted December 3, 2018 (edited) I don't know if this is intentional behavior or a bug. 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. Edited December 3, 2018 by xod Quote Share this post Link to post Share on other sites
BoltBait 2,175 Report post Posted December 3, 2018 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. 1 Quote Share this post Link to post Share on other sites
xod 360 Report post Posted December 3, 2018 Ok, I understand, thanks. I don't know why I had the impression that this was not happening in previous versions of CodeLab. Quote Share this post Link to post Share on other sites
Chas 0 Report post Posted January 27 (edited) I have a problem when opening CodeLab ( I am a beginer): I get the error message: Full error message: System.ArgumentException: Font 'Verdana' does not support style 'Regular'........ I have run the Consolas and Hack font installers and had a go at running the registry thing with Envy Code R Any thoughts? Many thanks. Edited January 27 by Chas spelling Quote Share this post Link to post Share on other sites
BoltBait 2,175 Report post Posted January 27 36 minutes ago, Chas said: I get the error message: Full error message: System.ArgumentException: Font 'Verdana' does not support style 'Regular' Install the Verdana font? https://www.google.com/search?q=verdana+font+download Verdana is one of the fonts that comes with Windows. Are you running Windows in a language other than English? Quote Share this post Link to post Share on other sites
Chas 0 Report post Posted January 27 Thank you BoltBait- that fixed it 🙂 Curiously, this machine is Windows7 running in English. Quote Share this post Link to post Share on other sites
toe_head2001 1,282 Report post Posted January 27 That's pretty strange. CodeLab should only fallback to the Verdana font if none of the other fonts (Consolas, Courier New, ect.) are available. Given that Consolas, Courier New, and Verdana are all included with Windows 7, those fonts must have been uninstalled from your computer at some point. Quote Share this post Link to post Share on other sites