Smoothly scrolling listboxes, items in the boxes can be partially visible

This commit is contained in:
Regalis
2017-04-30 17:57:01 +03:00
parent d1d8284b94
commit eddc33dc89
10 changed files with 47 additions and 77 deletions
+2 -4
View File
@@ -369,10 +369,8 @@ namespace Barotrauma
}
graphics.Clear(Color.Black);
//GameMain.GameScreen.DrawMap(graphics, spriteBatch);
spriteBatch.Begin();
spriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, GameMain.ScissorTestEnable);
Sprite backGround = GameMain.GameSession.Map.CurrentLocation.Type.Background;
spriteBatch.Draw(backGround.Texture, Vector2.Zero, null, Color.White, 0.0f, Vector2.Zero,