Texture2D background;\r
Texture2D spotLight;\r
Texture2D cs;\r
+ Texture2D selectGameScreen;\r
\r
Vector2 backgroundPos;\r
Vector2 spotLightPos;\r
Vector2 findGamePos;\r
string findGameText;\r
\r
+ Vector2 returnToMainPos;\r
+ string returnToMainText;\r
+\r
KeyboardState previousKeyboardState;\r
KeyboardState currentKeyboardState;\r
\r
background = contentManager.Load<Texture2D>("background");\r
spotLight = contentManager.Load<Texture2D>("spotlight");\r
cs = contentManager.Load<Texture2D>("cs");\r
+ selectGameScreen = contentManager.Load<Texture2D>("selectGameScreen");\r
backgroundPos = new Vector2(0f, 0f);\r
spotLightPos = new Vector2(100f, graphics.GraphicsDevice.Viewport.Height - 98);\r
spotLightCenter = new Vector2(800f, 800f);\r
\r
findGamePos = new Vector2(100f, (MaxY / 3) + 60);\r
findGameText = "Find Game";\r
+\r
+ returnToMainPos = new Vector2(MaxX / 2, MaxY - 120);\r
+ returnToMainText = "press [ X ] to return to main menu";\r
}\r
\r
public void UnloadContent()\r
{\r
if (currentKeyboardState.IsKeyDown(Keys.Enter) && previousKeyboardState.IsKeyUp(Keys.Enter))\r
currentState = lobbyState.CreateGame;\r
- if (currentKeyboardState.IsKeyDown(Keys.Down) || currentKeyboardState.IsKeyDown(Keys.Up))\r
+ if (currentKeyboardState.IsKeyDown(Keys.Down))\r
selected = findGameText;\r
}\r
else\r
{\r
if (currentKeyboardState.IsKeyDown(Keys.Enter) && previousKeyboardState.IsKeyUp(Keys.Enter))\r
currentState = lobbyState.FindGame;\r
- if (currentKeyboardState.IsKeyDown(Keys.Down) || currentKeyboardState.IsKeyDown(Keys.Up))\r
+ if (currentKeyboardState.IsKeyDown(Keys.Up))\r
selected = createGameText;\r
}\r
break;\r
\r
break;\r
case lobbyState.FindGame:\r
+ if (currentKeyboardState.IsKeyDown(Keys.X) && previousKeyboardState.IsKeyUp(Keys.X))\r
+ currentState = lobbyState.Welcome;\r
\r
break;\r
case lobbyState.Connected:\r
else\r
spriteBatch.DrawString(menuFont, findGameText, findGamePos, Color.Gray, 0, zero, 1f, SpriteEffects.None, 0.5f);\r
break;\r
+ \r
case lobbyState.CreateGame:\r
\r
break;\r
case lobbyState.FindGame:\r
- \r
+ spriteBatch.Draw(selectGameScreen, backgroundPos, null, Color.White, 0, zero, 0.5f, SpriteEffects.None, 0);\r
+ //spriteBatch.DrawString(menuFont, "Select Game", new Vector2(100, 100), Color.Gray, 0, zero, 1f, SpriteEffects.None, 0.5f);\r
+\r
+ //spriteBatch.DrawString(menuFont, returnToMainText, returnToMainPos, Color.Gray, 0, new Vector2(180 , 0), .6f, SpriteEffects.None, 0.5f);\r
break;\r
case lobbyState.Connected:\r
\r