Jump to content

Can I show UI during OnLoad?


xchellx

Recommended Posts

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?

Link to comment
Share on other sites

  • 2 months later...

Yes, you can show a dialog in OnLoad.

There are a number of FileType plugins that do it, e.g. WEBP Animations and ImagesIcon, 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).

  • Upvote 1

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...