anon3

Newbies
  • Content Count

    5
  • Joined

  • Last visited

Community Reputation

0
  1. It's coming from renaming the parameter of the Render method. //from public void Render(Surface dst, Surface src, Rectangle rect) //to public void Render(Surface destination, Surface source, Rectangle rectangle) All is on me, I didn't know about the new rules. If CodeLab uses Scintilla then it would be fairly easy to use tab, set tab size and ident size. I was talking about the build in editor. If you refer to the template creation of a new source code, I haven't use it beside copying the initial Render method, the UICode region and the comments above. On the template creation under Element panel it says "Catagory" instead of "Category". The example code was my reason of using the plugin to begin with. The preview could be useful too. I don't see any advantages of using Visual Studio than using a text editor since you already have to use example code as reference or decompile the .dll files to use them as a documentation. Autocompletion and debugging aren't really worth the hassle of such an environment. I was saying if you have the means to offer bigger possibilities at figuratively no cost you probably should instead of restricting the users, who can use them in the same day of learning about them. The users are everyone who tries the plugin tutorials. But that's my way of seeing it and I won't dwell on it as you seem hostile to such thoughts.
  2. Open Effects/Advanced/CodeLab..., File/Open..., selecting a .cs source I previously saved from the plugin, I explicitly set C# Code Files (*.CS), press Open and it opens it as a text file, so you cannot build, design, preview and so on. My .cs files are not associated with any program. I mean a tab with any spaces width. Because to use the plugin you need to unzip it and move it to the plugin directory. I write the code in a text editor, because the build in is not configurable and flexible even that the autocomplete might be useful. I do not have Visual Studio, I use simple command in a .bat file that is enough. csc.exe^ -nologo -unsafe^ -lib:"C:\Program Files\paint.net"^ -reference:PaintDotNet.Base.dll^ -reference:PaintDotNet.Core.dll^ -reference:PaintDotNet.Data.dll^ -reference:PaintDotNet.Effects.dll^ -reference:PaintDotNet.Framework.dll^ -reference:PaintDotNet.Resources.dll^ -target:library -optimize -out:"%~dpn1.dll" "%~1" @pause What makes me suggest this is the fact that you can't add using statement so you have to type the full namespaces. The editor blocks you from the preview if you try to access the class, methods, types and fields of the plugin. You cannot really access the source code unless everything you typed is correct for the user code region. You can for example add ReadOnlyBoundToValueRule for the dropdowns and preview it on the moment. The possibilities will expand tremendously when you give full access to the user, especially when the user already is required to know the basics. I just assume from a beginner's point of view that spending few minutes to learn from a code block is way better than never having the opportunity to do so and of course the ability to prototype and experiment directly in the environment is just an additional plus.
  3. The forum does not recognize a sign in with an email even if it says so in the present text input.
  4. 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. Is there possibility to be added character for identation and space width of it (like 1 tab with width of 2 spaces)? Could you add ability to save the dll directly and to a directory instead to zipping it to the desktop? 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? 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.
  5. Is there a way to completely show and hide a control, not just enable and disable it? Example - you select an option from a drop down and it causes another set of controls to be shown. Is there a way to attach event to a control for when its value changes or ability to override some of its functions? Example - you select an option from a drop down and it causes another control's value to change.