Replace mission GUI box text hack + If both teams die, they both lose
This commit is contained in:
@@ -75,6 +75,8 @@ namespace Barotrauma
|
||||
isRunning = true;
|
||||
}
|
||||
|
||||
public virtual void MsgBox() { }
|
||||
|
||||
public virtual void Update(float deltaTime)
|
||||
{
|
||||
//if (!isRunning) return;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user