|
@@ -16,8 +16,6 @@ namespace NetworkStateManagement
|
|
/// </summary>
|
|
/// </summary>
|
|
class MainMenuScreen : MenuScreen
|
|
class MainMenuScreen : MenuScreen
|
|
{
|
|
{
|
|
-
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Constructor fills in the menu contents.
|
|
/// Constructor fills in the menu contents.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -43,10 +41,6 @@ namespace NetworkStateManagement
|
|
MenuEntries.Add(exitMenuEntry);
|
|
MenuEntries.Add(exitMenuEntry);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Event handler for when the Single Player menu entry is selected.
|
|
/// Event handler for when the Single Player menu entry is selected.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -56,7 +50,6 @@ namespace NetworkStateManagement
|
|
new GameplayScreen(null));
|
|
new GameplayScreen(null));
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Event handler for when the Live menu entry is selected.
|
|
/// Event handler for when the Live menu entry is selected.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -65,7 +58,6 @@ namespace NetworkStateManagement
|
|
CreateOrFindSession(NetworkSessionType.PlayerMatch, e.PlayerIndex);
|
|
CreateOrFindSession(NetworkSessionType.PlayerMatch, e.PlayerIndex);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Event handler for when the System Link menu entry is selected.
|
|
/// Event handler for when the System Link menu entry is selected.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -74,7 +66,6 @@ namespace NetworkStateManagement
|
|
CreateOrFindSession(NetworkSessionType.SystemLink, e.PlayerIndex);
|
|
CreateOrFindSession(NetworkSessionType.SystemLink, e.PlayerIndex);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Helper method shared by the Live and System Link menu event handlers.
|
|
/// Helper method shared by the Live and System Link menu event handlers.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -87,17 +78,16 @@ namespace NetworkStateManagement
|
|
// Hook up an event so once the ProfileSignInScreen is happy,
|
|
// Hook up an event so once the ProfileSignInScreen is happy,
|
|
// it will activate the CreateOrFindSessionScreen.
|
|
// it will activate the CreateOrFindSessionScreen.
|
|
profileSignIn.ProfileSignedIn += delegate
|
|
profileSignIn.ProfileSignedIn += delegate
|
|
- {
|
|
|
|
- GameScreen createOrFind = new CreateOrFindSessionScreen(sessionType);
|
|
|
|
|
|
+ {
|
|
|
|
+ GameScreen createOrFind = new CreateOrFindSessionScreen(sessionType);
|
|
|
|
|
|
- ScreenManager.AddScreen(createOrFind, playerIndex);
|
|
|
|
- };
|
|
|
|
|
|
+ ScreenManager.AddScreen(createOrFind, playerIndex);
|
|
|
|
+ };
|
|
|
|
|
|
// Activate the ProfileSignInScreen.
|
|
// Activate the ProfileSignInScreen.
|
|
ScreenManager.AddScreen(profileSignIn, playerIndex);
|
|
ScreenManager.AddScreen(profileSignIn, playerIndex);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// When the user cancels the main menu, ask if they want to exit the sample.
|
|
/// When the user cancels the main menu, ask if they want to exit the sample.
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -111,7 +101,6 @@ namespace NetworkStateManagement
|
|
ScreenManager.AddScreen(confirmExitMessageBox, playerIndex);
|
|
ScreenManager.AddScreen(confirmExitMessageBox, playerIndex);
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Event handler for when the user selects ok on the "are you sure
|
|
/// Event handler for when the user selects ok on the "are you sure
|
|
/// you want to exit" message box.
|
|
/// you want to exit" message box.
|
|
@@ -120,7 +109,5 @@ namespace NetworkStateManagement
|
|
{
|
|
{
|
|
ScreenManager.Game.Exit();
|
|
ScreenManager.Game.Exit();
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|