Ejemplo n.º 1
0
 protected virtual void OnAlertMessageReceived(OpenMetaverse.AlertMessageEventArgs e)
 {
     if (AlertMessageReceived != null)
     {
         AlertMessageReceived(this, e);
     }
 }
Ejemplo n.º 2
0
 void Self_AlertMessage(object sender, OpenMetaverse.AlertMessageEventArgs ea)
 {
     if (netcomSync != null)
     {
         netcomSync.BeginInvoke(new OnAlertMessageRaise(OnAlertMessageReceived), new object[] { ea });
     }
     else
     {
         OnAlertMessageReceived(ea);
     }
 }
Ejemplo n.º 3
0
 /// <summary>Raises the AlertMessage event</summary>
 /// <param name="e">A AlertMessageEventArgs object containing the
 /// data returned from the data server</param>
 protected virtual void OnAlertMessage(AlertMessageEventArgs e)
 {
     EventHandler<AlertMessageEventArgs> handler = m_AlertMessage;
     if (handler != null)
         handler(this, e);
 }
Ejemplo n.º 4
0
        private void netcom_AlertMessageReceived(object sender, AlertMessageEventArgs e)
        {
            if (e.Message.ToLower().Contains("autopilot canceled")) return; //workaround the stupid autopilot alerts

            ChatBufferItem item = new ChatBufferItem(
                DateTime.Now, "Alert message", UUID.Zero, ": " + e.Message, ChatBufferTextStyle.Alert);

            ProcessBufferItem(item, true);
        }
Ejemplo n.º 5
0
 protected virtual void OnAlertMessageReceived(AlertMessageEventArgs e)
 {
     if (AlertMessageReceived != null) AlertMessageReceived(this, e);
 }
Ejemplo n.º 6
0
 void Self_AlertMessage(object sender, AlertMessageEventArgs e)
 {
     if (e.Message.Contains("Autopilot cancel"))
     {
         if (walking)
         {
             EndWalking();
         }
     }
 }
Ejemplo n.º 7
0
 private void netcom_AlertMessageReceived(object sender, AlertMessageEventArgs e)
 {
     tabs["chat"].Highlight();
 }
Ejemplo n.º 8
0
 void Self_AlertMessage(object sender, AlertMessageEventArgs e)
 {
     if (CanSyncInvoke)
         netcomSync.BeginInvoke(new OnAlertMessageRaise(OnAlertMessageReceived), new object[] { e });
     else
         OnAlertMessageReceived(e);
 }
Ejemplo n.º 9
0
    void Self_AlertMessage(object sender, AlertMessageEventArgs e)
    {
        if(e.Message=="Autopilot canceled")
        {
            Logger.Log("Autopilot cancled",Helpers.LogLevel.Debug);
            return;
        }

        Gtk.Application.Invoke(delegate {
            string msg;
            msg="<b>ALERT FROM SECONDLIFE</b>\n"+e.Message;
            MessageDialog md= new Gtk.MessageDialog(this,DialogFlags.Modal,MessageType.Info,ButtonsType.Close,true,msg);
            md.Response += delegate { md.Destroy(); };
            md.ShowAll();
        });
    }
Ejemplo n.º 10
0
 public virtual void Self_OnAlertMessage(object sender, AlertMessageEventArgs e) { OnEvent("On-Alert-Message", paramNamesOnAlertMessage, paramTypesOnAlertMessage, e); }
Ejemplo n.º 11
0
 private void OnAlertMessage(object sender, AlertMessageEventArgs e)
 {
     Talker.Say(e.Message);
 }