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

View File

@@ -353,12 +353,10 @@ namespace Barotrauma
GameMain.TitleScreen.DrawLoadingText = false;
GameMain.TitleScreen.Draw(spriteBatch, graphics, (float)deltaTime);
spriteBatch.Begin();
spriteBatch.Begin(SpriteSortMode.Immediate, null, null, null, GameMain.ScissorTestEnable);
menu.Draw(spriteBatch);
//if (previewPlayer!=null) previewPlayer.Draw(spriteBatch);
GUI.Draw((float)deltaTime, spriteBatch, null);
spriteBatch.End();