private void ButtonClickControllerControls() { keyBordAndMouse = false; controller = true; KeysPanel.SetActive(false); ControllerPanel.SetActive(true); ControlsUI.SetActive(false); ControllerBack.Select(); }
public void HUD_PopupOff() { if (inventory.controller == false) { KeyboardPanel.SetActive(false); } else if (inventory.controller == true) { ControllerPanel.SetActive(false); } }
private void Start() { keyBordAndMouse = false; controller = false; ControlsUI.SetActive(true); KeysPanel.SetActive(false); ControllerPanel.SetActive(false); back.onClick.AddListener(ButtonClickBack); KeysBack.onClick.AddListener(ChooseControlles); ControllerBack.onClick.AddListener(ChooseControlles); KeysControls.onClick.AddListener(ButtonClickKeyBordAndMouseControls); ControllerControls.onClick.AddListener(ButtonClickControllerControls); back.Select(); }
public void ScrollToPadSchema(string padSchemaName) { foreach (var control in ControllerPanel.Controls) { VirtualPad vp = control as VirtualPad; if (vp == null) { continue; } if (vp.PadSchemaDisplayName == padSchemaName) { ControllerPanel.ScrollControlIntoView(vp); } } }
/// <summary> /// ファイルを開くボタンをクリックした /// </summary> public void OnOpenFileButtonClick() { dialog = new OpenFileDialog(); dialog.Filter = "wav files (*.wav)|*.wav|ogg files (*.ogg)|*.ogg|all files (*.*)|*.*"; dialog.Title = "音声ファイルを選択"; var res = dialog.ShowDialog(); if (res == DialogResult.OK) { filePath = dialog.FileName; StartCoroutine(LoadAudioSource()); FilePathInput.text = filePath; } else { ControllerPanel.ShowStatusText("ファイルオープンをキャンセル"); } }
/// <summary> /// ファイルパスからオーディオクリップをロード /// </summary> /// <returns></returns> private IEnumerator LoadAudioSource() { using (WWW www = new WWW("file://" + filePath)) { while (!www.isDone) { yield return(null); } audioSource.clip = www.GetAudioClip(false, true); if (audioSource.clip.loadState != AudioDataLoadState.Loaded) { ControllerPanel.ShowStatusText("音声ファイルの読み込みに失敗"); yield break; } positionSlider.maxValue = audioSource.clip.length; // スライダーの最大値を指定 ControllerPanel.ShowStatusText($"{filePath.Replace("\n", "")}をオープン"); } }
private void ChooseControlles() { if (keyBordAndMouse == true) { keyBordAndMouse = false; controller = false; KeysPanel.SetActive(false); ControllerPanel.SetActive(false); ControlsUI.SetActive(true); back.Select(); } if (controller == true) { keyBordAndMouse = false; controller = false; KeysPanel.SetActive(false); ControllerPanel.SetActive(false); ControlsUI.SetActive(true); back.Select(); } }
public AirspyIO() { this._gui = new ControllerPanel(this); }
// Use this for initialization void Start() { cont = GameObject.Find("ControllerPanel").GetComponent <ControllerPanel>(); text = gameObject.GetComponent <Text>(); }