A Kerbal Space Program mod that adds balloon parts to create aerostats
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#if DEBUG
|
|
|
|
#define ENABLE_ONSCREEN_DEBUG
|
|
|
|
#endif
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
namespace Aerostats
|
|
|
|
{
|
|
|
|
static class Util
|
|
|
|
{
|
|
|
|
private static Dictionary<string, ScreenMessage> messages = new Dictionary<string, ScreenMessage>();
|
|
|
|
|
|
|
|
public static void PostSingleScreenMessage(string id, string message)
|
|
|
|
{
|
|
|
|
#if ENABLE_ONSCREEN_DEBUG
|
|
|
|
if (messages.ContainsKey(id))
|
|
|
|
ScreenMessages.RemoveMessage(messages[id]);
|
|
|
|
messages[id] = ScreenMessages.PostScreenMessage(message);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void PostScreenMessage(string message)
|
|
|
|
{
|
|
|
|
#if ENABLE_ONSCREEN_DEBUG
|
|
|
|
ScreenMessages.PostScreenMessage(message);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|