- Barotrauma's projects are in the Barotrauma directory - All libraries are in the Libraries directory - MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?) - NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred - Removed Content/effects.mgfx as it didn't seem to be used anywhere - Removed some references to Subsurface directory - Renamed Launcher2 to Launcher
26 lines
690 B
C#
26 lines
690 B
C#
using Barotrauma.Networking;
|
|
using Microsoft.Xna.Framework;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using System.Xml.Linq;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
partial class Mission
|
|
{
|
|
public void ShowMessage(int index)
|
|
{
|
|
if (index >= headers.Count && index >= messages.Count) return;
|
|
|
|
string header = index < headers.Count ? headers[index] : "";
|
|
string message = index < messages.Count ? messages[index] : "";
|
|
|
|
GameServer.Log("Mission info: " + header + " - " + message, ServerLog.MessageType.ServerMessage);
|
|
|
|
new GUIMessageBox(header, message);
|
|
}
|
|
}
|
|
}
|