Beispiel #1
0
 /// <summary>
 /// Create a level which can have feedback only
 /// </summary>
 /// <param name="owner">The owner UISmartObject of the object</param>
 /// <param name="itemIndex">index of the object</param>
 /// <param name="smartObject">The SmartObject used</param>
 /// <param name="analogFeedbackJoinName">The analog input signal join</param>
 public UISmartObjectLevel(UISmartObject owner, uint itemIndex, SmartObject smartObject, string analogFeedbackJoinName)
     : base(smartObject.UShortInput[analogFeedbackJoinName])
 {
     this.ItemIndex   = itemIndex;
     this.SmartObject = smartObject;
     this.Owner       = owner;
 }
Beispiel #2
0
 /// <summary>
 /// Create a level that is touch settable
 /// </summary>
 /// <param name="owner">The owner UISmartObject of the object</param>
 /// <param name="itemIndex">index of the object</param>
 /// <param name="smartObject">The SmartObject used</param>
 /// <param name="analogFeedbackJoinName">The analog input signal join</param>
 /// <param name="analogTouchJoinName"></param>
 /// <param name="pressDigitalJoinName">The analog 'touch' output signal join</param>
 /// <param name="enableDigitalJoinName">The digital enable join</param>
 /// <param name="visibleDigitalJoinName">The digital visible join</param>
 public UISmartObjectLevel(UISmartObject owner, uint itemIndex, SmartObject smartObject,
                           string analogFeedbackJoinName, string analogTouchJoinName, string pressDigitalJoinName, string enableDigitalJoinName, string visibleDigitalJoinName)
     : this(owner, itemIndex, smartObject, analogFeedbackJoinName, analogTouchJoinName, pressDigitalJoinName)
 {
     this.EnableDigitalJoin  = this.SmartObject.BooleanInput[enableDigitalJoinName];
     this.VisibleDigitalJoin = this.SmartObject.BooleanInput[visibleDigitalJoinName];
 }
 public UISmartObjectButton(UISmartObject owner, uint itemIndex, SmartObject smartObject, string pressDigitalJoinName)
 {
     this.ItemIndex        = itemIndex;
     this.SmartObject      = smartObject;
     this.PressDigitalJoin = this.SmartObject.BooleanOutput[pressDigitalJoinName];
     this.Owner            = owner;
 }
Beispiel #4
0
 /// <summary>
 /// Create a level that is touch settable
 /// </summary>
 /// <param name="owner">The owner UISmartObject of the object</param>
 /// <param name="itemIndex">index of the object</param>
 /// <param name="smartObject">The SmartObject used</param>
 /// <param name="analogFeedbackJoinName">The analog input signal join</param>
 /// <param name="analogTouchJoinName">The analog 'touch' output signal join</param>
 /// <param name="pressDigitalJoinName"></param>
 public UISmartObjectLevel(UISmartObject owner, uint itemIndex, SmartObject smartObject,
                           string analogFeedbackJoinName, string analogTouchJoinName, string pressDigitalJoinName)
     : base(smartObject.UShortInput[analogFeedbackJoinName], smartObject.UShortOutput[analogTouchJoinName])
 {
     this.ItemIndex        = itemIndex;
     this.SmartObject      = smartObject;
     this.PressDigitalJoin = this.SmartObject.BooleanOutput[pressDigitalJoinName];
     this.Owner            = owner;
 }
 public UISmartObjectButton(UISmartObject owner, uint itemIndex, SmartObject smartObject, string pressDigitalJoinName,
                            string feedbackDigitalJoinName, string textSerialJoinName, string iconSerialJoinName)
     : this(owner, itemIndex, smartObject, pressDigitalJoinName, feedbackDigitalJoinName, textSerialJoinName)
 {
     if (iconSerialJoinName != null && iconSerialJoinName.Length > 0)
     {
         this.IconSerialJoin = this.SmartObject.StringInput[iconSerialJoinName];
     }
 }
 public UISmartObjectButton(UISmartObject owner, uint itemIndex, SmartObject smartObject, string pressDigitalJoinName,
                            string feedbackDigitalJoinName)
     : this(owner, itemIndex, smartObject, pressDigitalJoinName)
 {
     if (feedbackDigitalJoinName != null)
     {
         this.FeedbackDigitalJoin = this.SmartObject.BooleanInput[feedbackDigitalJoinName];
     }
 }
 public UISmartObjectButton(UISmartObject owner, uint itemIndex, SmartObject smartObject, string pressDigitalJoinName,
                            string feedbackDigitalJoinName, string textSerialJoinName, string iconSerialJoinName,
                            string enableDigitalJoinName, string visibleDigitalJoinName)
     : this(owner, itemIndex, smartObject, pressDigitalJoinName, feedbackDigitalJoinName,
            textSerialJoinName, iconSerialJoinName)
 {
     if (enableDigitalJoinName != null && enableDigitalJoinName.Length > 0)
     {
         this.EnableDigitalJoin = this.SmartObject.BooleanInput[enableDigitalJoinName];
     }
     if (visibleDigitalJoinName != null && visibleDigitalJoinName.Length > 0)
     {
         this.VisibleDigitalJoin = this.SmartObject.BooleanInput[visibleDigitalJoinName];
     }
 }