Graphics Reference
In-Depth Information
ConfirmExitGame();
}
// End the group we started above. This is very
// important to remember!
GUI.EndGroup ();
break;
case 1:
// Options menu
GUI.BeginGroup (new Rect (native_width / 2 - 150,
native_height / 2 - 250, 500, 500));
// Are you sure you want to exit?
GUI.Label(new Rect( 0, 50, 300, 50 ), "OPTIONS",
"textarea");
if(GUI.Button(new Rect(0, 250, 300, 40 ),"AUDIO
OPTIONS"))
{
ShowAudioOptionsMenu();
}
if(GUI.Button(new Rect(0, 300, 300, 40 ),"GRAPHICS
OPTIONS"))
{
ShowGraphicsOptionsMenu();
}
if(GUI.Button(new Rect(0, 400, 300, 40 ),"BACK TO
MAIN MENU"))
{
GoMainMenu();
}
GUI.EndGroup ();
break;
case 2:
GUI.BeginGroup (new Rect (default_width / 2 - 150,
default_height / 2 - 250, 500, 500));
// Are you sure you want to exit?
GUI.Label(new Rect( 0, 50, 300, 50 ), "Are you sure
you want to exit?", "textarea");
if(GUI.Button(new Rect(0, 250, 300, 40 ),"YES, QUIT
PLEASE!"))
{
ExitGame();
}
if(GUI.Button(new Rect(0, 300, 300, 40 ),"NO, DON'T
QUIT"))
{
GoMainMenu();
Search WWH ::




Custom Search