Settings Menu

The settings menu is placeholder for more options in the future but it currently allows the player to change the volume of the music. Code for on click to increase volume:

private void VolumeUp_Click(object sender, EventArgs e)
{
    if (waveOut.Volume + .10f < 1)
    {
        waveOut.Volume += 0.10f;
    }
}

Code for on click to decrease volume:

private void VolumeDown_Click(object sender, EventArgs e)
{
    if (waveOut.Volume-.10f > 0)
    {
        waveOut.Volume -= 0.10f;
    }
}

Settings Menu:

Last updated