public virtual void ButtonPressed(StardewModdingAPI.SButton button) { if (Inputs.IsMenuNextButton(button)) { NextItem(); } else if (Inputs.IsMenuPrevButton(button)) { PrevItem(); } else if (Inputs.IsMenuActivateButton(button)) { ActivateItem(); } else if (Inputs.IsTTSInfoButton(button)) { if (current != null) { if (current is MenuTextBox) { current.Activate(); //speak text box content } else { TextToSpeech.Speak(current.Label + (current.Description.Length > 0 ? ": " + current.Description : "")); } } } else if (Inputs.IsTTSRepeatButton(button)) { TextToSpeech.Repeat(); } else if (Inputs.IsTTSStopButton(button)) { TextToSpeech.Stop(); } }