Jump to content

xod

Members
  • Posts

    632
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by xod

  1. Question about Dynamic values for IndirectUI sliders.

     

    After running the MoveLines plugin below on a standard 800x600 canvas and then choosing a New size canvas 2400x1800 (in the same working session), the selSize is not updated and retains the old size 800x600.
    Please, tell me what is wrong with my code?

     

    https://www.mediafire.com/file/3osg1n58q319efd/MoveLinesEffect.zip/file

     

  2. 19 hours ago, BoltBait said:

     

    That's because @xod failed to include the 2 other library files he relies on.

     

    I'm sure he'll fix this as soon as he sees this message.  Hold on...

     

    To @xod: if you're going to distribute an OptionBasedEffects plugin, you really should include a copy of the OptionBasedEffects DLLs.

     

    Sorry about that.

    Yes, you need the two OptionBasedLibrary.dll and OptionBasedLibrary.dlc files to be copied to the Paint.Net folder and not to the Effects folder.

    I uploaded these two files together with TextDistortion on Mediafire.

     

  3. Some crashes occur when run this plugin with different settings on consecutive transparent layers.

     

    File: D:\Program Files\paint.net\Effects\TRsMonolithic.dll
          Name: Text3D.EffectPlugin
          Version: 1.0.5.26132
          Author: ©2015 TechnoRobbo
          Copyright: Creates 3D Text
          Website: http://www.getpaint.net/redirect/plugins.html
          Full error message: System.Runtime.InteropServices.ExternalException (0x80004005): A generic error occurred in GDI+.
       at System.Drawing.Drawing2D.GraphicsPath.AddString(String s, FontFamily family, Int32 style, Single emSize, Point origin, StringFormat format)
       at Text3D.EffectPluginConfigDialog.CaptureText(String text, Double thickness, Size SizeHW)
       at Text3D.EffectPluginConfigDialog.hScrollBar_Scroll(Object sender, ScrollEventArgs e)
       at SliderControl.TRSliderCtrl.numericUpDown1_ValueChanged(Object sender, EventArgs e)
       at System.Windows.Forms.NumericUpDown.OnValueChanged(EventArgs e)
       at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
       at SliderControl.TRSliderCtrl.set_Value(Int32 value)
       at Text3D.EffectPluginConfigDialog.InitDialogFromToken(EffectConfigToken effectTokenCopy)
       at PaintDotNet.Effects.EffectConfigDialog.InitDialogFromToken() in D:\src\pdn\src\Effects\EffectConfigDialog.cs:line 223
       at PaintDotNet.Menus.EffectMenuBase.RunEffectImpl(Type effectType) in D:\src\pdn\src\PaintDotNet\Menus\EffectMenuBase.cs:line 946

     

    Repro:
    Open PDN
    Effects>Text Formations>TR's Monolithic
    Put all sliders to maximum values
    OK
    Add a new layer
    Run the plugin again
    PDN crashes.

  4. How can I dimmer two sliders?
    I can do that but some flickering appear.
    There is another way?

     

    Spoiler
    
    public enum PropertyNames
            {
                Slider1,
                Slider2,
                Slider3,
                KeepInSync
            }
    
            protected override PropertyCollection OnCreatePropertyCollection()
            {
                List<Property> props = new List<Property>();
    
                props.Add(new Int32Property("Slider1", 0,0,100));
                props.Add(new Int32Property("Slider2", 0,0,100));
                props.Add(new Int32Property("Slider3", 0,0,100));
                props.Add(new BooleanProperty("KeepInSync", false));
    
                List<PropertyCollectionRule> rules = new List<PropertyCollectionRule>();
    
                rules.Add(new LinkValuesBasedOnBooleanRule<int, Int32Property>(new string[] { "Slider1", "Slider2", "Slider3" }, "KeepInSync", false));
                rules.Add(new ReadOnlyBoundToBooleanRule("Slider2", "KeepInSync", false));
                rules.Add(new ReadOnlyBoundToBooleanRule("Slider3", "KeepInSync", false));
    
                return new PropertyCollection(props, rules);
            }

     

     

  5. 6 hours ago, AndrewDavid said:

    ... your labels for gradient horizontal and vertical needs to be switched.

     

     

    I don't understand what you mean.
    A horizontal gradient means that we start with a color on the left and finish on the right with the other color (or vice versa = swap colors).
    A vertical gradient means that we start with a color on the top and finish on the bottom with the other color (or vice versa = swap colors).
    Same on the reflected case but now we start with the first color in the center of the shape and the second color appears at the edges (or vice versa = swap colors).

     

    7 hours ago, Ego Eram Reputo said:

    I like the link option for Height & Width. Any chance you could do the same for the four Radii?

     

    For pairs 1-2, 3-4 is very simple, but for 3 corners or other combinations, I think the UI is unnecessarily complicated.
    4 checkboxes must be created to enable the assigned sliders and a checkbox for their link.
    I'm trying to keep the UI as small as possible.

×
×
  • Create New...