private void CreateTouchEvent(EControlType tType) { this.tEventManager.AddEvent(new ControlEvent { type = tType, id = this.ControlID, touchDownTimeStamp = this.downTimeStamp, position = this.mousePos, createTimeStamp = Time.realtimeSinceStartup }); }
/// <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"); } }
public void SetMenu(int menu) { _controlType = EControlType.Menu; _uiManager.OpenMenu(menu); }
public void DefaultMode() { _controlType = EControlType.Default; ResetSelection(); }
public void SetDebugMenu() { _controlType = EControlType.DebugMenu; ResetSelection(); ResetUi(); }