Jump to content

BoltBait

Administrator
  • Posts

    13,993
  • Joined

  • Last visited

  • Days Won

    227

BoltBait last won the day on May 20

BoltBait had the most liked content!

About BoltBait

  • Birthday 11/03/1963

Profile Information

  • Gender
    Male
  • Location
    California, USA
  • Interests
    Movies, Magic the Gathering, Computers, Music, Writing Plugins

Contact Methods

  • Website URL
    http://www.BoltBait.com

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

BoltBait's Achievements

Grand Master

Grand Master (14/14)

  • Dedicated Rare
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

3.4k

Reputation

  1. I find the best way to add color is to add a new layer, change the layer’s blend mode to multiply, then paint your color onto that new layer.
  2. You need to do some Windows Updates until your version is above 1607.
  3. That's probably fine for your own plugin. Something to remember: Be sure to use the following option comment: // Force Aliased Selection Otherwise, when copying the pixels from the source canvas to the dest canvas you might get anti-aliasing if your selection is round. It's easy to forget if you always test your plugin with a square (or no) selection.
  4. That's fine for a button. Just be aware that the PreRender() code doesn't always run... What?! Yup. If there are no UI changes between the initial run and when you press the OK button, only Render() gets called. This usually isn't a problem unless you use Ctrl-F to repeat an effect. In that case, PreRender() doesn't get called but Render() does.
  5. @Rick Brewster Happy Birthday! πŸŽ‚ 🎁
  6. Here's some code to get you started: // Name: Button example // Author: BoltBait // Force Aliased Selection // Force Single Threaded #region UICode ReseedButtonControl Amount1 = 0; // Do it! #endregion int MyButton = 0; // initialize to -1 instead if you want to trigger when effect is run void Render(Surface dst, Surface src, Rectangle rect) { if (Amount1 != MyButton) { // Replace this block of code with your code: Form IndirectUIForm = Form.ActiveForm; if (IndirectUIForm != null) { IndirectUIForm.Invoke(new Action(delegate () { // This code runs on the UI thread: MessageBox.Show("Button pressed."); })); } // End of block MyButton = Amount1; } // Copy the src surface to the dst surface dst.CopySurface(src, rect.Location, rect); }
  7. Yes it is. Nope. Your best bet might be to include a button on your UI and then when the button is pressed, in the Render loop, check to see when x==0 and y==0 and put your value on the clipboard at that time.
  8. So long as the graphic is family-friendly. Yes, this is allowed.
×
×
  • Create New...