public CarouselPage() { this.InitializeComponent(); _left.Click += (s, e) => _carousel.Previous(); _right.Click += (s, e) => _carousel.Next(); //_transition.SelectionChanged += TransitionChanged; }
public void nextAttachment() { ATTACHMENTS.Next(); if (ATTACHMENTS.Selected().isPassive()) { nextAttachment(); } }
private void CallerPanel_OnPointerReleased(object sender, PointerReleasedEventArgs e) { Pointers.Pop(); if (!HoldingPointer) { PART_PagesRoot.Next(); } }
/// This method handles clicking on the Next button public void OnNextButtonClick(object sender, RoutedEventArgs e) { _carousel.Next(); _context.UpdateIndex(_carousel.SelectedIndex); // update UI CheckButtonStatus(); CheckPreviousNextButtonsStatus(); updateCountText(); }
public CarouselPage() { this.InitializeComponent(); _carousel = this.Get <Carousel>("carousel"); _left = this.Get <Button>("left"); _right = this.Get <Button>("right"); _transition = this.Get <ComboBox>("transition"); _orientation = this.Get <ComboBox>("orientation"); _left.Click += (s, e) => _carousel.Previous(); _right.Click += (s, e) => _carousel.Next(); _transition.SelectionChanged += TransitionChanged; _orientation.SelectionChanged += TransitionChanged; }
private void OnKeyDownAsync(KeyboardEventArgs args) { Logger.LogInformation(args.Code.ToString()); switch (args.Code.ToString()) { case "ArrowRight": _carousel.Next(); break; case "ArrowLeft": _carousel.Previous(); break; } }
private void NextCarouselItem(bool clickedByUser) { if (clickedByUser) { timer.Stop(); timer.Start(); } if (carousel.SelectedIndex == carousel.ItemCount - 1) { carousel.SelectedIndex = 0; } else { carousel.Next(); } }
void update() { //spin right if (Input.GetAxis("Axis 1") > 0f) { carousel.Next(); } Debug.Log("Carousel Next"); //spin left if (Input.GetAxis("Axis 1") < 0f) { carousel.Previous(); } Debug.Log("Carousel Previous"); //select ring if (Input.GetKey(KeyCode.JoystickButton14) == true) { carousel.Previous(); } }
private void OnRightClick(object sender, RoutedEventArgs e) { _carousel.Next(); }
void Update() { //spin right if (Input.GetAxis("Axis 1") > 0f) { carousel.Next(); } //spin left if (Input.GetAxis("Axis 1") < 0f) { carousel.Previous(); } //select ring if (Input.GetKey(KeyCode.JoystickButton14) == true) { if (carousel.selectedSlotIndex == 0) { ring1marker.SetActive(true); ring2marker.SetActive(false); ring3marker.SetActive(false); ring4marker.SetActive(false); ring1menu.SetActive(false); ring2menu.SetActive(true); ring3menu.SetActive(true); ring4menu.SetActive(true); particlesRing.Play(); } else if (carousel.selectedSlotIndex == 1) { ring1marker.SetActive(false); ring2marker.SetActive(true); ring3marker.SetActive(false); ring4marker.SetActive(false); ring1menu.SetActive(true); ring2menu.SetActive(false); ring3menu.SetActive(true); ring4menu.SetActive(true); particlesRing.Play(); } else if (carousel.selectedSlotIndex == 2) { ring1marker.SetActive(false); ring2marker.SetActive(false); ring3marker.SetActive(true); ring4marker.SetActive(false); ring1menu.SetActive(true); ring2menu.SetActive(true); ring3menu.SetActive(false); ring4menu.SetActive(true); particlesRing.Play(); } else if (carousel.selectedSlotIndex == 3) { ring1marker.SetActive(false); ring2marker.SetActive(false); ring3marker.SetActive(false); ring4marker.SetActive(true); ring1menu.SetActive(true); ring2menu.SetActive(true); ring3menu.SetActive(true); ring4menu.SetActive(false); particlesBracelet.Play(); } //play particles particlesMenu.Play(); //carouselSelectedIndex = carousel.selectedSlotIndex; //Debug.Log ("Carousel Selected Slot Index : " + carouselSelectedIndex); } //forward if (Input.GetKeyDown(KeyCode.JoystickButton13) == true) { SkinToneSelector.globalTorchEnabled = false; UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex + 1); } //back if (Input.GetKeyDown(KeyCode.JoystickButton8) == true) { SkinToneSelector.globalTorchEnabled = false; UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex - 1); } //torch if (Input.GetKeyDown(KeyCode.JoystickButton12) == true) { SkinToneSelector.globalTorchEnabled = !SkinToneSelector.globalTorchEnabled; if (CameraDevice.Instance.SetFlashTorchMode(SkinToneSelector.globalTorchEnabled)) { Debug.Log("Successfully turned flash " + SkinToneSelector.globalTorchEnabled); } else { Debug.Log("Failed to set the flash torch " + SkinToneSelector.globalTorchEnabled); } } }
public CarouselPage() { this.InitializeComponent(); _left.Click += (s, e) => _carousel.Previous(); _right.Click += (s, e) => _carousel.Next(); }