public override void Update() { songInfoSpriteManager.Update(); base.Update(); mb.Update(); loadingBackground.Scale.Y = loadingBackground.Scale.Y * 0.9f + 0.1f * (GameBase.BaseSize.Y * downloadProgress); }
public void Update(GameTime gameTime) { passWordBox.Shake(); userNameBox.Shake(); menuBackground.Update(); if (game.gameOptions.MUSIC_VOLUME > 0) { optionsButtons[1].visible = true; } else if (game.gameOptions.MUSIC_VOLUME <= 0) { optionsButtons[1].visible = false; } if (game.gameOptions.MUSIC_VOLUME < 1) { optionsButtons[2].visible = true; } else if (game.gameOptions.MUSIC_VOLUME >= 1) { optionsButtons[2].visible = false; } if (game.gameOptions.EFFECT_VOLUME < 1) { optionsButtons[4].visible = true; } else if (game.gameOptions.EFFECT_VOLUME >= 1) { optionsButtons[4].visible = false; } if (game.gameOptions.EFFECT_VOLUME > 0) { optionsButtons[3].visible = true; } else if (game.gameOptions.EFFECT_VOLUME <= 0) { optionsButtons[3].visible = false; } if (currentMenu == MenuTag.SERVERBROWSER) { serverBrowser.Update(); if (serverBrowser.GetServer() != null) { IP = serverBrowser.GetServer().GetIP(); port = serverBrowser.GetServer().GetPort(); game.SetScreen(new GameScreen(game, playerName, IP, port, CharacterSelections.NONE)); } } else if (currentMenu == MenuTag.CHARACTERCREATION) { if (anim != null) { anim.Update(); } } rotation += 0.001f; LeftClick(); RightClick(); MouseMove(); UpdateKeys(); }