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; } }
public static void SetOpenness(this FlexiblePart part, int scaleZeroToHundred) { if (scaleZeroToHundred > 75) { part.IsOpen = true; } else if (scaleZeroToHundred < 35) { part.IsOpen = false; } }
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; }
public PoseBuilder ShouldBe(FlexiblePart what, State trigger) { _stateItems.Add(new PoseStateTrigger(what, trigger)); return this; }
public PoseStateTrigger(FlexiblePart what, State trigger) { What = what; Trigger = trigger; }
public void SetUp() { _cam = new FakeCamera(); _part1 = new FlexiblePart(); _part2 = new FlexiblePart(); }
public PoseFactory Combine(FlexiblePart what, State trigger) { _items.Add(new PoseTrigger(what, trigger)); return(this); }