Example #1
0
 // Token: 0x06000667 RID: 1639 RVA: 0x00035F43 File Offset: 0x00034143
 private void SpawnRaven(string key, string topic, string text, string label)
 {
     if (!Raven.IsInstantiated())
     {
         UnityEngine.Object.Instantiate <GameObject>(this.m_ravenPrefab, new Vector3(0f, 0f, 0f), Quaternion.identity);
     }
     Raven.AddTempText(key, topic, text, label, false);
 }
Example #2
0
 public static void HuginSays(string key, string topic, string text, string label)
 {
     //Traverse.Create(Tutorial.instance).Method("SpawnRaven", new object[]{ key,topic,text,label}).GetValue();
     if (!Raven.IsInstantiated())
     {
         UnityEngine.Object.Instantiate <GameObject>(Tutorial.instance.m_ravenPrefab, new Vector3(0f, 0f, 0f), Quaternion.identity);
     }
     Raven.AddTempText(key, topic, text, label, false);
 }
Example #3
0
        public static void Message(string user, string text, bool munin)
        {
            try
            {
                Log.Info($"Message -> user:{user} text:{text}");

                Raven.RavenText ravenText = new Raven.RavenText();

                var key   = $"{Plugin.GUID}_" + messageCount++;
                var label = user;
                var topic = user;

                Log.Info($"AddTempText -> {key}");

                Raven.AddTempText(key, topic, text, label, munin);
            }
            catch (Exception ex)
            {
                Log.Error(ex.ToString());
            }
        }
Example #4
0
        public static void Message(string user, string text, bool munin)
        {
            try
            {
                logger.LogInfo($"Message -> user:{user} text:{text}");

                Raven.RavenText ravenText = new Raven.RavenText();

                var key   = "vwsp_" + keyID++;
                var label = user;
                var topic = user;

                logger.LogInfo($"AddTempText -> {key}");

                Raven.AddTempText(key, topic, text, label, munin);
            }
            catch (Exception ex)
            {
                logger.LogError(ex);
            }
        }