コード例 #1
0
 /// <param name="increment">true if the action should increment the value, false will decrement</param>
 /// <param name="behavior">Clip will clip the value at the min/max, Wrap will go from min->max and max->min if it overflows</param>
 public CircuitDropdownActionAttribute(string Name, char hotkey, Modifier modifiers, bool increment, PropertyOverflow behavior = PropertyOverflow.Wrap)
     : base(Name, hotkey, modifiers)
 {
     this.increment = increment;
     this.behavior  = behavior;
 }
コード例 #2
0
 /// <param name="increment">true if the action should increment the value, false will decrement</param>
 /// <param name="behavior">Clip will clip the value at the min/max, Wrap will go from min->max and max->min if it overflows</param>
 public CircuitDropdownActionAttribute(string Name, bool increment, PropertyOverflow behavior = PropertyOverflow.Wrap)
     : base(Name)
 {
     this.increment = increment;
     this.behavior  = behavior;
 }