public void ButtonSelected(MenuSimpleButton.StandardButton bt) { Debug.Log("Meta button clicked: : " + bt); var appState = ExcersizeAppState.main.State; var dir = -2; switch (bt) { case MenuSimpleButton.StandardButton.ContextDecrease: dir = -1; break; case MenuSimpleButton.StandardButton.ContextBalance: dir = 0; break; case MenuSimpleButton.StandardButton.ContextIncrease: dir = 1; break; default: return; // ignore it } Debug.Log("Meridian State changed: " + this.MeridianId + " to " + dir); appState.GetMeridianState(this.MeridianId).Direction = dir; appState.DoMeridianChanged(); }
public void ButtonSelected(MenuSimpleButton.StandardButton bt) { if (bt == MenuSimpleButton.StandardButton.PlayOrPause) { var vman = this.VOMan; if (this.IsAmbientAudio) { vman.IsBackgroundMusicPlaying = !vman.IsBackgroundMusicPlaying; } else { if (vman.CurrentTrack != this.PlayThis) { vman.ChangeTrack(this.PlayThis); } else { if (vman.Player.isPlaying) { vman.Player.Pause(); } else { vman.Player.Play(); } } } } }
public void ButtonHoverChanged(MenuSimpleButton.StandardButton bt, bool isHovered) { var appState = ExcersizeAppState.main.State; if (isHovered) { appState.HoverMeridian = this.MeridianId; } else { appState.HoverMeridian = MeridianPath.EMeridian.Unknown; } }
public void ButtonHoverChanged(MenuSimpleButton.StandardButton bt, bool isHovered) { }