Esempio n. 1
0
 private void Disable(FlexiblePart flexiblePart, PXCMGesture.Alert alert)
 {
     if (alert.label == PXCMGesture.Alert.Label.LABEL_GEONODE_INACTIVE)
     {
         flexiblePart.IsVisible = false;
     }
 }
 private void SetOpenness(FlexiblePart part, int scaleZeroToHundred)
 {
     if (scaleZeroToHundred > 75)
     {
         part.IsOpen = true;
     }
     else if (scaleZeroToHundred < 35)
     {
         part.IsOpen = false;
     }
 }
Esempio n. 3
0
 public static void SetOpenness(this FlexiblePart part, int scaleZeroToHundred)
 {
     if (scaleZeroToHundred > 75)
     {
         part.IsOpen = true;
     }
     else if (scaleZeroToHundred < 35)
     {
         part.IsOpen = false;
     }
 }
Esempio n. 4
0
 private void TrackOpeness(FlexiblePart part, PXCMGesture.GeoNode geoNode)
 {
     if (!part.IsVisible)
     {
         return;
     }
     if (geoNode.openness > 75)
     {
         part.IsOpen = true;
     }
     else if (geoNode.openness < 10)
     {
         part.IsOpen = false;
     }
 }
 public PoseFactory Combine(FlexiblePart what, State trigger) {
     _items.Add(new PoseTrigger(what, trigger));
     return this;
 }
 public PoseTrigger(FlexiblePart what, State trigger) {
     What = what;
     Trigger = trigger;
 }
Esempio n. 7
0
 public PoseBuilder ShouldBe(FlexiblePart what, State trigger) {
     _stateItems.Add(new PoseStateTrigger(what, trigger));
     return this;
 }
Esempio n. 8
0
 public PoseStateTrigger(FlexiblePart what, State trigger) {
     What = what;
     Trigger = trigger;
 }
Esempio n. 9
0
 private void SetOpenness(FlexiblePart part, int scaleZeroToHundred)
 {
     if (scaleZeroToHundred > 75) {
         part.IsOpen = true;
     }
     else if (scaleZeroToHundred < 35) {
         part.IsOpen = false;
     }
 }
Esempio n. 10
0
 public void SetUp() {
     _cam = new FakeCamera();
     _part1 = new FlexiblePart();
     _part2 = new FlexiblePart();
 }
Esempio n. 11
0
 public PoseFactory Combine(FlexiblePart what, State trigger)
 {
     _items.Add(new PoseTrigger(what, trigger));
     return(this);
 }
Esempio n. 12
0
 public void SetUp()
 {
     _cam   = new FakeCamera();
     _part1 = new FlexiblePart();
     _part2 = new FlexiblePart();
 }