ReMake Posted January 20, 2018 Share Posted January 20, 2018 CodeLab 3.02 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...
MadJik Posted January 23, 2018 Share Posted January 23, 2018 1. Using an interger slider for a color chanel (0 to 255, default = 20), I want to change the style to White-Red. The values are replaced by 0-100, default=0. 2. Retyping the values, I start by the default = 20 and when I type the maximum value 2 (for 255) the default value is replaced by 2. edit: 3. Impossible to type -255 (minus 255) when the value is 0. Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
BoltBait Posted January 23, 2018 Share Posted January 23, 2018 47 minutes ago, MadJik said: 1. Using an interger slider for a color chanel (0 to 255, default = 20), I want to change the style to White-Red. The values are replaced by 0-100, default=0. Yes, changing the style updates the defaults to help new users pick the right values when choosing certain color combinations (like Hue). I recommend always starting entering data by starting at the top and working your way down the screen. That way you start with the style. 47 minutes ago, MadJik said: 2. Retyping the values, I start by the default = 20 and when I type the maximum value 2 (for 255) the default value is replaced by 2. Yup, that's annoying and I need to fix it. Basically, there is code in there that keeps the 3 values (min, default, max) in sync so that the combination is always valid. I need to make it a little less aggressive. 47 minutes ago, MadJik said: 3. Impossible to type -255 (minus 255) when the value is 0. Yeah, I know. Like I said, I do need to fix that. In order to type a negative number, change the 0 to 2 first. Then put the minus sign in. EDIT: I have fixed #2 and #3 for the next release. Instead of triggering the normalization on "text change", I'm now doing it on "before leave". So, it normalizes the fields when you exit one of them, not while you're typing. 1 2 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
TrevorOutlaw Posted January 24, 2018 Share Posted January 24, 2018 Question - is it possible for CodeLab to access and store variable in array? One thing I would love to improve is the HSV Gradient you have and include blending mode. What I have in mind is the ability to add and remove color, but I suspect that would go beyond the ability of CodeLab. Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 24, 2018 Share Posted January 24, 2018 3 minutes ago, TrevorOutlaw said: is it possible for CodeLab to access and store variable in array? If I understand you correctly, yes. int[] myIntArray = new int[5]; //set myIntArray[3] = 9999; // get int myInt = myIntArray[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...
TrevorOutlaw Posted January 24, 2018 Share Posted January 24, 2018 Would that give me the ability to add RGB color one by one? Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 24, 2018 Share Posted January 24, 2018 4 minutes ago, TrevorOutlaw said: Would that give me the ability to add RGB color one by one? Sure, if that's how you want to do it. Color[] myColorArray = new Color[5]; myColorArray[0] = Color.Black; myColorArray[1] = Color.Red; myColorArray[2] = Color.Blue; myColorArray[3] = Color.Green; myColorArray[4] = Color.White; I don't really understand what you're wanting to do. Arrays are fixed in size. Maybe you want to use List instead? I don't know. This really isn't the place to learn C#. 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...
GustavMahler Posted January 25, 2018 Share Posted January 25, 2018 Hello. Plugin have terrible code assistance (auto indent etc.). Please, create option for disable this function (or tell me where this function). When i write 'if( ' he write 'if(if('. All variables with 'b' names, he renamed on 'bright'. and many others 'crazy' behaviors (I C++ developer, not C#. Most of the things we write ourselves. Without any helpers.) Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 25, 2018 Share Posted January 25, 2018 16 minutes ago, GustavMahler said: Plugin have terrible code assistance Now there's an exaggeration. 16 minutes ago, GustavMahler said: When i write 'if( ' he write 'if(if(' You can can easily avoid that, but I'll make it more idiot proof so you won't have to. 16 minutes ago, GustavMahler said: All variables with 'b' names, he renamed on 'bright'. Please give me the steps to reproduce this behavior. 16 minutes ago, GustavMahler said: and many others 'crazy' behaviors Oh yeah? Feel free to list them. No one is going to fix them otherwise. Thanks for the feedback. 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...
ReMake Posted January 25, 2018 Share Posted January 25, 2018 40 minutes ago, GustavMahler said: All variables with 'b' names, he renamed on 'bright'. Left-click at the end of your variable when you stop typing it - the hint will disappear. 40 minutes ago, GustavMahler said: When i write 'if( ' he write 'if(if('. I couldn't reproduce this 'crazy' behaviors. Quote Link to comment Share on other sites More sharing options...
MadJik Posted January 25, 2018 Share Posted January 25, 2018 Type the code using space between symbols and texts int b1 = 0; int b2 = 1; if(b1 == 1) b2 = b1 + 1; when I typed it, Ihave got on the last line b2 =b2 +1; add a new line to type b1 = b2 + 3; the space changes b1 and b2 into BadImageFormatException = BadImageFormatException + 3; Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
BoltBait Posted January 25, 2018 Share Posted January 25, 2018 1 hour ago, GustavMahler said: When i write 'if( ' he write 'if(if('. To me, this only happens when I type "if(" followed by the tab key twice. If you type "if" followed by tab key twice, it works fine. EDIT: typing Madjik's code above... int b1 = 0; int b1 = 1; if (b1 == b2) After pressing ")" on the last line, press the space bar. The result is: int b1 = 0; int b2 = 1; if (b1 == b2)b2 @MadJik, I could not reproduce your issue. Are you sure b1 and b2 are in scope where you're typing? Reproduced: This happens when you type those lines outside of a function, like the Render() function. That is, on the same level as the Render function itself. It is not valid to write code at that level, only define variables. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 25, 2018 Share Posted January 25, 2018 20 minutes ago, BoltBait said: After pressing ")" on the last line, press the space bar. The result is: Yeah, well, we'll just have the ")" character close the AutoComplete box, and call it a day. 21 minutes ago, BoltBait said: Reproduced: This happens when you type those lines outside of a function, like the Render() function. That is, on the same level as the Render function itself. It is not valid to write code at that level, only define variables. Thus those are fields, not local variables. Newly typed Fields are not enumerated into the Intelligent Assistance features, until after a successful Build. So, wait a few seconds, or just click the Build button. 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 25, 2018 Share Posted January 25, 2018 1 hour ago, toe_head2001 said: 1 hour ago, BoltBait said: After pressing ")" on the last line, press the space bar. The result is: Yeah, well, we'll just have the ")" character close the AutoComplete box, and call it a day. Probably have to also include "(" for when starting a function. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 26, 2018 Share Posted January 26, 2018 Is anyone interested in having an Output Console in CodeLab? It would work like the one in Visual Studio: print messages, evaluate values, do traces, ect. The alternative is, of course, drawing the values/messages to the Canvas. I got this proof-of-concept working this afternoon: Is it worth my time to continue working on this? 4 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...
MJW Posted January 26, 2018 Share Posted January 26, 2018 That certainly seems like a useful idea to me. Much more practical then writing to the canvas. It would be very helpful for debugging. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 26, 2018 Share Posted January 26, 2018 2 hours ago, toe_head2001 said: Is it worth my time to continue working on this? Yes please! 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 January 26, 2018 Share Posted January 26, 2018 I think the 'View Source' button has a wrong anchor. And the text is not visible in Dark Theme. https://youtu.be/I0mMvfVOxEU Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 26, 2018 Share Posted January 26, 2018 1 minute ago, xod said: I think the 'View Source' button has a wrong anchor. And the text is not visible in Dark Theme. Consider it fixed for the next release. 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...
BoltBait Posted January 26, 2018 Share Posted January 26, 2018 1 hour ago, toe_head2001 said: 1 hour ago, xod said: I think the 'View Source' button has a wrong anchor. And the text is not visible in Dark Theme. Consider it fixed for the next release. My fault. I can't believe I did that. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
xod Posted January 26, 2018 Share Posted January 26, 2018 We're just people. And sometimes we make mistakes. Nobody is perfect. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 27, 2018 Share Posted January 27, 2018 BoltBait may not be perfect, but bits of him are excellent. 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 27, 2018 Share Posted January 27, 2018 What the heck?! Why are you looking at my "bits"? 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
LionsDragon Posted January 28, 2018 Share Posted January 28, 2018 Goodness! There are kids here! *stifles a laugh, badly* Quote Link to comment Share on other sites More sharing options...
Pratyush Posted January 28, 2018 Share Posted January 28, 2018 On 1/26/2018 at 5:37 AM, toe_head2001 said: Is it worth my time to continue working on this? Yes, please do it. 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.