Changeset 558 for trunk/CrypPlugins/Gate


Ignore:
Timestamp:
Sep 22, 2009, 12:48:54 PM (12 years ago)
Author:
Matthäus Wander
Message:

Gate:

  • added false value trigger
Location:
trunk/CrypPlugins/Gate
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Gate/Gate.cs

    r467 r558  
    126126                case Trigger.TrueValue:
    127127                    return !locked && control;
     128                case Trigger.FalseValue:
     129                    return !locked && !control;
    128130                case Trigger.AnyEdge:
    129131                    return !locked && control != oldControl;
  • trunk/CrypPlugins/Gate/GateSettings.cs

    r467 r558  
    99    enum Trigger
    1010    {
    11         AlwaysOpen, AlwaysClosed, TrueValue, AnyEdge, PositiveEdge, NegativeEdge
     11        AlwaysOpen, AlwaysClosed, TrueValue, FalseValue, AnyEdge, PositiveEdge, NegativeEdge
    1212    };
    1313
     
    1818
    1919        [TaskPane("Trigger", "Trigger to open gate", null, 1, true, DisplayLevel.Experienced, ControlType.RadioButton,
    20             new string[] { "no trigger (always open)", "no trigger (always closed)", "true value", "edge (value swap)", "positive edge (false->true)", "negative edge (true->false)" })]
     20            new string[] { "no trigger (always open)", "no trigger (always closed)", "true value", "false value", "edge (value swap)", "positive edge (false->true)", "negative edge (true->false)" })]
    2121        public Trigger Trigger
    2222        {
Note: See TracChangeset for help on using the changeset viewer.