-
Posts
1,782 -
Joined
-
Last visited
-
Days Won
26
Content Type
Events
Profiles
Forums
Blogs
Gallery
Downloads
Everything posted by midora
-
'What's It?' Tools Effect Plugin [Latest v1.1 2022-03-24]
midora replied to midora's topic in Plugins - Publishing ONLY!
Will check if there is an easy fix. -
Or think about to change the width of the Tools panel to match the width of the History or Layer panel. Or be radical and do it for all panels π
-
Need filetypes explained in lay-terms, please
midora replied to CTW's topic in Paint.NET Discussion and Questions
Embedded means the file contains the color profile as opposed to that the color profile is stored in a separate file or does not exist at all. -
Did you check that Menu->Image->Resize... shows 72dpi? As long as the source file contains a valid dpi value you should see it there.
-
VS proposes to use a switch expression var cipn = property switch { BooleanProperty or UriProperty => ControlInfoPropertyNames.Footnote, _ => ControlInfoPropertyNames.Description, }; I guess I should take the time to have a look to all the new c# features. But on the other side I have to debug now Xamarin code on iOS and should not forget the old stuff π
-
I was surprised that switch allows to test for a class type... public void SetPropertyDescription(Property property) { ControlInfoPropertyNames cipn; switch (property) { case BooleanProperty: case UriProperty: cipn = ControlInfoPropertyNames.Footnote; break; default: cipn = ControlInfoPropertyNames.Description; break; } var descriptionText = Context.MapKeyToText(property.Name + ".Description", ""); Info.SetPropertyControlValue(property.Name, cipn, descriptionText); }
-
Because ControlInfoPropertyNames.Description is used to set the text of the UriProperty allow ControlInfoPropertyNames.Footnote (as used by BooleanProperty). Or maybe allow Footnote for all properties (in addition to Description just o be consistent). In general I would prefer that .ButtonText sets the text of BooleanProperty and UriProperty and Description would only be used for the description. But it's a little bit late now π
-
File format combobox width in DDS save dialog
midora replied to pavlik1307's topic in Translation and Localization
One issue is the width of the popup. The other one the overall width of the control panel. -
File format combobox width in DDS save dialog
midora replied to pavlik1307's topic in Translation and Localization
The width of the dialog controls is fixed for all save plugins. But terms like 'unsigned' could be abbreviated. -
VS2022 and pdn 4.3.4 set-up advice please. 21/12/2021
midora replied to Red ochre's topic in Plugin Developer's Central
I'm getting analyzer warnings like the following one. TargetFramework is net6.0-windows and VS is up-to-date. Any idea? Warning CS8032 An instance of analyzer System.Text.Json.SourceGeneration.JsonSourceGenerator cannot be created from C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\6.0.2\analyzers\dotnet\cs\System.Text.Json.SourceGeneration.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.. That's a PropertyBasedEffect plugin. -
Plugins that fail in the 4.3.X Builds of Paint.NET
midora replied to AndrewDavid's topic in Preview Center
@Kamikazeyour wording is kamikaze. You are using free software. -
PropertyBasedEffects: OnSetRenderInfo on OK
midora replied to midora's topic in Plugin Developer's Central
Just to say, in the moment I'm using the above 'feature' to detect the 'DialogResult'. I know that's a bad way to do it and I would prefer to get a clean solution for PropertyBasedEffects. Maybe a virtual method OnConfigClosed( DialogResult result ) or OnConfigClosed( PropertyBasedEffectConfigToken finalToken, DialogResult result ). BTW: For Tools Effects I would like to get EffectRenderingSchedule.DoNotRender π Means there should be OnSetRenderInfo but no OnRender -
Suggestion: PropertyControlType.FolderChooser
midora replied to midora's topic in Plugin Developer's Central
That's worth two πΊπΊ @toe_head2001. So let's π». I will check it out with the new 4.3.8 beta. -
Is the OnSetRenderInfo call after clicking OK intentional? There are no following OnRender calls... It doesn't hurt but I'm curious π
-
Layer names must not be unique. So 'Import From File' has no issue with the names. If the imprted image is larger than the current one then the canvas will be resized to fit both images.
-
Suggestion: PropertyControlType.FolderChooser
midora replied to midora's topic in Plugin Developer's Central
I will provide a πΊ to the one taking the challenge π -
There is a PropertyControlType.FileChooser but sometimes you need just a folder so maybe PropertyControlType.FolderChooser would be useful.
-
new to paint.net, suggestions
midora replied to Peter1's topic in Paint.NET Discussion and Questions
Save the effect in the Effect folder. 'Effects/Tools/Watch and Zip' allows you to set the folder to watch. All .pdn files in this folder (and all subfolders) will be zipped on file create and on file change while paint.net is running. -
new to paint.net, suggestions
midora replied to Peter1's topic in Paint.NET Discussion and Questions
If Rick decides to store more information in the pdn file then the plugin must be adapted (no surprise). You may also save as .ora that's zip based too. You can also save as pdn in a watched folder and write a script which reacts on changes to the folder and copies away a zipped file. You can also create diff files this way. -
new to paint.net, suggestions
midora replied to Peter1's topic in Paint.NET Discussion and Questions
Please have in mind that there are different keyboard layouts. I's already an issue that ctrl++ is not working on a lot of keyboards. Supporting special characters should always be implemented by figuring out which key combination produces the key on the current keyboard layout. That's not so difficult.