xchellx Posted November 21, 2021 Share Posted November 21, 2021 During OnLoad, I decode every mipmap. If I wanted to give import options, I'd have to show UI. Since OnLoad has no "Load Configuration" panel unlike with OnSave, I thought of using MessageBox.Show to ask whether to import mipmaps or not with a Yes No dialog. Is this against the plugin rules? Quote Link to comment Share on other sites More sharing options...
xchellx Posted February 2, 2022 Author Share Posted February 2, 2022 Bump - It would be nice to show a dialog to ask to load mipmaps... but Id like to know if its ok to do it (or its against "what not to do in a plugin" rules) Quote Link to comment Share on other sites More sharing options...
null54 Posted February 3, 2022 Share Posted February 3, 2022 Yes, you can show a dialog in OnLoad. There are a number of FileType plugins that do it, e.g. WEBP Animations and Images, Icon, Cursor, and Animated Cursor, etc. But Paint.NET does not officially support this, so there may be issues with it (e.g. canceling the dialog may cause Paint.NET to show an error message). 1 Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait 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.