(44ca39e16) Added: Escaping the video player via enter, multiple objective tracking & removing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user