Graphics Reference
In-Depth Information
}
GUI.EndGroup ();
break;
case 3:
// AUDIO OPTIONS
GUI.BeginGroup (new Rect (default_width / 2 - 150,
default_height / 2 - 250, 500, 500));
GUI.Label(new Rect( 0, 50, 300, 50 ), "AUDIO
OPTIONS", "textarea");
GUI.Label(new Rect(0, 170, 300, 20), "SFX volume:");
audioSFXSliderValue = GUI.HorizontalSlider (new
Rect( 0, 200, 300, 50 ), audioSFXSliderValue, 0.0f,
1f);
GUI.Label(new Rect(0, 270, 300, 20), "Music
volume:");
audioMusicSliderValue = GUI.HorizontalSlider (new
Rect( 0, 300, 300, 50 ), audioMusicSliderValue,
0.0f, 1f);
if(GUI.Button(new Rect(0, 400, 300, 40 ),"BACK TO
OPTIONS MENU"))
{
SaveOptionsPrefs();
ShowOptionsMenu();
}
GUI.EndGroup ();
break;
case 4:
// GRAPHICS OPTIONS
GUI.BeginGroup (new Rect (default_width / 2 - 150,
default_height / 2 - 250, 500, 500));
GUI.Label(new Rect( 0, 50, 300, 50 ), "GRAPHICS
OPTIONS", "textarea");
GUI.Label(new Rect(0, 170, 300, 20), "Graphics
quality:");
graphicsSliderValue = Mathf.RoundToInt(GUI.
HorizontalSlider (new Rect( 0, 200, 300, 50 ),
graphicsSliderValue, 0, detailLevels));
if(GUI.Button(new Rect(0, 400, 300, 40 ),"BACK TO
OPTIONS MENU"))
{
SaveOptionsPrefs();
ShowOptionsMenu();
}
GUI.EndGroup ();
Search WWH ::




Custom Search