Esempio n. 1
0
 private void CreateTouchEvent(EControlType tType)
 {
     this.tEventManager.AddEvent(new ControlEvent
     {
         type = tType,
         id   = this.ControlID,
         touchDownTimeStamp = this.downTimeStamp,
         position           = this.mousePos,
         createTimeStamp    = Time.realtimeSinceStartup
     });
 }
Esempio n. 2
0
        /// <summary>
        /// Initialize a new StatusControl of the specified type
        /// </summary>
        /// <param name="type">The <see cref="EControlType"/> of the control</param>
        /// <exception cref="ArgumentOutOfRangeException">Thrown if an invalid type is specified</exception>
        public StatusControl(EControlType type)
        {
            _controlType = type;
            switch (type)
            {
            case EControlType.TextSelectList:
                break;

            case EControlType.Button:
                break;

            case EControlType.ValueRangeDropDown:
                _isRange = true;
                break;

            case EControlType.ValueRangeSlider:
                _isRange = true;
                break;

            case EControlType.TextBoxNumber:
                break;

            case EControlType.TextBoxString:
                break;

            case EControlType.RadioOption:
                break;

            case EControlType.ButtonScript:
                break;

            case EControlType.ColorPicker:
                break;

            case EControlType.Values:
                break;

            default:
                throw new ArgumentOutOfRangeException(nameof(type), type, "You must specify a valid control type");
            }
        }
Esempio n. 3
0
 public void SetMenu(int menu)
 {
     _controlType = EControlType.Menu;
     _uiManager.OpenMenu(menu);
 }
Esempio n. 4
0
 public void DefaultMode()
 {
     _controlType = EControlType.Default;
     ResetSelection();
 }
Esempio n. 5
0
 public void SetDebugMenu()
 {
     _controlType = EControlType.DebugMenu;
     ResetSelection();
     ResetUi();
 }