Example #1
0
        public static void LogMessage(string module, string message, MessageType type = MessageType.Message)
        {
            ColossalMessageType colossalType = type.ToColossalType();

            string formattedMessage = DebugPanel.GetFormattedMessage(module, message, type);

            try
            {
                DebugOutputPanel.AddMessage(colossalType, formattedMessage);
            }
            catch (Exception ex)
            {
                CODebugBase <LogChannel> .Error(LogChannel.Core, ex.GetType().ToString() + " Message: " + ex.Message);
            }
        }
Example #2
0
 public static void Out(ColossalFramework.Plugins.PluginManager.MessageType messageType, bool useComma, params System.Object[] o)
 {
     try
     {
         string s = "";
         for (int i = 0; i < o.Length; i++)
         {
             s += o[i].ToString();
             if (i < o.Length - 1 && useComma)
             {
                 s += "  ,  ";
             }
         }
         DebugOutputPanel.AddMessage(messageType, s);
     }
     catch (Exception)
     {
     }
 }
Example #3
0
 private static void ColossalPluginManagerMessage(ColossalMessageType type, string message)
 {
     Message("PluginManager: {0}", (MessageType)type, message);
 }
Example #4
0
 private static string addSuffix(ColossalFramework.Plugins.PluginManager.MessageType messageType, object s)
 {
     return(messageType + " | " + prefix + ObjectToString(s) + " | " + prefix + ObjectToString(s));
 }