(44ca39e16) Added: Escaping the video player via enter, multiple objective tracking & removing

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:46:58 +02:00
parent 474099732b
commit e65b688edd
8 changed files with 397 additions and 66 deletions
@@ -5,6 +5,7 @@ using System.Xml.Linq;
using System.Collections.Generic;
using Barotrauma.Media;
using System.IO;
using Microsoft.Xna.Framework.Input;
namespace Barotrauma
{
@@ -157,6 +158,14 @@ namespace Barotrauma
return true;
}
public void Update()
{
if (PlayerInput.KeyHit(Keys.Enter))
{
DisposeVideo(null, null);
}
}
public void AddToGUIUpdateList()
{
if (!IsPlaying()) return;