Replace mission GUI box text hack + If both teams die, they both lose

This commit is contained in:
juanjp600
2016-10-10 08:32:31 -03:00
parent b09eebc9c2
commit 0125ff0f5c
5 changed files with 9 additions and 15 deletions

View File

@@ -75,6 +75,8 @@ namespace Barotrauma
isRunning = true;
}
public virtual void MsgBox() { }
public virtual void Update(float deltaTime)
{
//if (!isRunning) return;

View File

@@ -29,10 +29,8 @@ namespace Barotrauma
mission = Mission.LoadRandom(locations, rand, param as string);
}
public override void Start()
public override void MsgBox()
{
base.Start();
if (mission == null) return;
var missionMsg = new GUIMessageBox(mission.Name, mission.Description, 400, 400);

View File

@@ -170,6 +170,8 @@ namespace Barotrauma
TaskManager.StartShift(level);
if (gameMode != null) gameMode.MsgBox();
GameMain.GameScreen.ColorFade(Color.Black, Color.TransparentBlack, 5.0f);
SoundPlayer.SwitchMusic();
}