void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     Dialogs.Clear();
     permissionRequests.Clear();
     permission_requests = 0;
     total_dialogs = 0;
     tick();
 }
Exemple #2
0
        void Network_SimChanged(object sender, SimChangedEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Network_SimChanged(sender, e)));
                return;
            }

            ResetTerrain();
            lock (sculptCache)
            {
                foreach (var img in sculptCache.Values)
                    img.Dispose();
                sculptCache.Clear();
            }
            lock (Prims) Prims.Clear();
            lock (Avatars) Avatars.Clear();
            SetWaterPlanes();
            LoadCurrentPrims();
            InitCamera();
        }
 void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
 {
     RegisterWorldSystemEvents();
     RefreshObjectList();
 }
Exemple #4
0
 /// <summary>
 /// Watch for Teleports to cancel all the old sounds
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     BufferSound.KillAll();
 }
Exemple #5
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     ThreadPool.QueueUserWorkItem(sync =>
     {
         Thread.Sleep(15 * 1000);
         autosit.TrySit();
         pseudohome.ETGoHome();
     });
     client.Self.Movement.SetFOVVerticalAngle(FOVVerticalAngle);
 }
Exemple #6
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     Talker.Say("You are now in " +
         control.instance.Client.Network.CurrentSim.Name,
         Talk.BeepType.Good);
 }
Exemple #7
0
        //void META3D_Disposed(object sender, EventArgs e)
        //{
        //    try
        //    {
        //        if (glControl != null)
        //        {
        //            glControl.Dispose();
        //        }

        //        glControl = null;

        //        base.Dispose(true);

        //        client.Objects.TerseObjectUpdate -= new EventHandler<TerseObjectUpdateEventArgs>(Objects_TerseObjectUpdate);
        //        client.Objects.ObjectUpdate -= new EventHandler<PrimEventArgs>(Objects_ObjectUpdate);
        //        client.Objects.ObjectDataBlockUpdate -= new EventHandler<ObjectDataBlockUpdateEventArgs>(Objects_ObjectDataBlockUpdate);
        //        client.Network.SimChanged -= new EventHandler<SimChangedEventArgs>(SIM_OnSimChanged);
        //        client.Self.TeleportProgress -= new EventHandler<TeleportEventArgs>(Self_TeleportProgress);

        //        lock (this.Prims)
        //        {
        //            Prims.Clear();
        //        }

        //        lock (this.Textures)
        //        {
        //            Textures.Clear();
        //        }

        //        //GC.Collect();
        //        //GC.WaitForPendingFinalizers();
        //    }
        //    catch (Exception ex)
        //    {
        //        string exp = ex.Message;
        //        reporter.Show(ex);
        //    }
        //}

        private void SIM_OnSimChanged(object sender, SimChangedEventArgs e)
        {
            if (!this.IsHandleCreated) return;

            lock (Prims)
            {
                Prims.Clear();
            }

            lock (this.Textures)
            {
                Textures.Clear();
            }
        }
Exemple #8
0
        private void SIM_OnSimChanged(object sender, SimChangedEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(delegate()
                {
                    SIM_OnSimChanged(sender, e);
                }));
            }

            if (!this.IsHandleCreated) return;

            BeginInvoke(new MethodInvoker(delegate()
            {
                ClearLists();
                ResetFields();
                lbxPrims.Items.Clear();

                //AddAllObjects();

                ////ResetObjects();
                //lbxPrims.Items.Clear();
                //lbxChildren.Items.Clear();
                //lbxTask.Items.Clear();
                //DisplayObjects();
                //button3.Visible = button7.Visible = false;
            }));
        }
Exemple #9
0
 public virtual void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e) { OnEvent("On-Current-Sim-Changed", paramNamesOnCurrentSimChanged, paramTypesOnCurrentSimChanged, e); }
 public override void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
 {
     var PreviousSimulator = e.PreviousSimulator;
     if (TheSimAvatar.GetSimulator() == PreviousSimulator)
     {
         Debug("TheSimAvatar._CurrentRegion.TheSimulator == PreviousSimulator " + PreviousSimulator);
     }
     On_ChangeSims(PreviousSimulator, client.Network.CurrentSim);
 }
Exemple #11
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     sim = client.Network.CurrentSim;
 }
Exemple #12
0
        // Seperate thread
        void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
        {
            lock (sfavatar)
            {
                sfavatar.Clear();
            }

            BeginInvoke(new MethodInvoker(delegate()
            {
                lvwRadar.Items.Clear();
            }));

            _MapLayer = null;

            //GetMap();
            BeginInvoke((MethodInvoker)delegate { GetMap(); });
        }
        private void SIM_OnSimChanged(object sender, SimChangedEventArgs e)
        {
            if (!this.IsHandleCreated) return;

            lock (listItems)
            {
                listItems.Clear();
            }

            BeginInvoke(new MethodInvoker(delegate()
            {
                pBar3.Visible = true;
                lbxPrims.Items.Clear();
                lbxPrimGroup.Items.Clear();

                WorkPool.QueueUserWorkItem(delegate(object sync)
                {
                    Cursor.Current = Cursors.WaitCursor;
                    Thread.Sleep(5000);
                    ReLoadItems();
                    //GetAttachments();
                    Cursor.Current = Cursors.Default;
                });
            }));
        }
Exemple #14
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     Self.Movement.SetFOVVerticalAngle(Utils.TWO_PI - 0.05f);
 }
Exemple #15
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     autosit.TrySit();
     pseudohome.ETGoHome();
 }
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     if (MainClass.client.Network.LoginStatusCode == LoginStatus.Success)
     {
         //Logger.Log("Changed Sim, forcing a rebake",Helpers.LogLevel.Debug);
         //Thread app=new Thread(new ThreadStart(setappearance));
         //app.Start();
     }
 }
        void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
        {
            lock (_TrackedAvatars)
                _TrackedAvatars.Clear();

            lock (_UntrackedAvatars)
                _UntrackedAvatars.Clear();

            ClearItems();
        }
Exemple #18
0
        private void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
        {
            //GetMap();

            this.BeginInvoke(new MethodInvoker(delegate()
            {
                if (chkForSale.Checked)
                {
                    chkForSale.Checked = false;
                }
            }));

            //_LandLayer = null;
            //_MapLayer = null;
            //client.Grid.RequestMapRegion(client.Network.CurrentSim.Name, GridLayerType.Objects);

            BeginInvoke((MethodInvoker)delegate { GetMap(); });
        }
Exemple #19
0
        void Network_SimChanged(object sender, SimChangedEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Network_SimChanged(sender, e)));
                return;
            }

            gotoRegion(client.Network.CurrentSim.Name, (int)client.Self.SimPosition.X, (int)client.Self.SimPosition.Y);
            lblStatus.Text = "Now in " + client.Network.CurrentSim.Name;
        }
Exemple #20
0
 private void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     if (e.PreviousSimulator != null)
     {
         // m_GridClient.Appearance.SetPreviousAppearance(false);
     }
 }
 ///<summary>Raises the SimChanged Event</summary>
 /// <param name="e">A SimChangedEventArgs object containing
 /// the data sent from the simulator</param>
 protected virtual void OnSimChanged(SimChangedEventArgs e)
 {
     EventHandler<SimChangedEventArgs> handler = m_SimChanged;
     if (handler != null)
         handler(this, e);
 }
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     userclicked=false;
        validregion = false;
        Gtk.Application.Invoke(delegate
     {
         this.localupdate=true;
         this.spinbutton_x.Value = MainClass.client.Self.SimPosition.X;
         this.spinbutton_y.Value = MainClass.client.Self.SimPosition.Y;
         this.spinbutton_z.Value = MainClass.client.Self.SimPosition.Z;
         this.localupdate=false;
         this.entry_simname.Text=MainClass.client.Network.CurrentSim.Name;
         MainClass.win.tp_target_widget=this; //MEMORY LEAK, needs to be killed if this widget is removed
         MainClass.client.Self.AutoPilotCancel();
         this.label_current.Text = MainClass.client.Network.CurrentSim.Name;
     });
 }
Exemple #23
0
        private void Network_OnCurrentSimChanged(object sender, SimChangedEventArgs e)
        {
            //GetMap();

            if (chkForSale.Checked)
            {
                chkForSale.Checked = false;
            }

            _LandLayer = null;
            _MapLayer = null;
            _LandLayer1 = null;
            _MapLayer1 = null;
            _LandLayer2 = null;
            _MapLayer2 = null;
            _LandLayer3 = null;
            _MapLayer3 = null;
            _LandLayer4 = null;
            _MapLayer4 = null;
            _LandLayer5 = null;
            _MapLayer5 = null;
            _LandLayer6 = null;
            _MapLayer6 = null;
            _LandLayer7 = null;
            _MapLayer7 = null;
            _LandLayer8 = null;
            _MapLayer8 = null;
            _LandLayer9 = null;
            _MapLayer9 = null;
            _LandLayer10 = null;
            _MapLayer10 = null;

            client.Grid.RequestMapRegion(client.Network.CurrentSim.Name, GridLayerType.Objects);

            if (client.Network.Simulators.Count > 1)
            {
                try
                {
                    client.Grid.RequestMapRegion(client.Network.Simulators[1].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[2].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[3].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[4].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[5].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[6].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[7].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[8].Name, GridLayerType.Objects);
                    client.Grid.RequestMapRegion(client.Network.Simulators[9].Name, GridLayerType.Objects);
                    //client.Grid.RequestMapRegion(client.Network.Simulators[10].Name, GridLayerType.Objects);
                }
                catch { ; }
            }

            BeginInvoke((MethodInvoker)delegate { GetMap(); });
        }
        void Network_SimChanged(object sender, SimChangedEventArgs e)
        {
            this.parcels_store.Clear();
            this.parcels_access.Clear();
            this.parcels_ban.Clear();
            this.colmaptoid.Clear();
            this.parcel_to_tree.Clear();

            nextcol=0;
            Gtk.Application.Invoke(delegate
            {
                this.parcel_map = MainClass.GetResource("trying.png");
                this.parcelmap.baseimage.Pixbuf=this.parcel_map;
                this.parcelmap.setimage();

            });

            Logger.Log("Requesting parcel info for sim:"+MainClass.client.Network.CurrentSim.Name,Helpers.LogLevel.Debug);
            MainClass.client.Parcels.RequestAllSimParcels(MainClass.client.Network.CurrentSim);
        }
        void Network_SimChanged(object sender, SimChangedEventArgs e)
        {
            if (e.PreviousSimulator == MainClass.client.Network.CurrentSim)
                return;

            requestnewgridregion();
        }
        void Network_SimChanged(object sender, SimChangedEventArgs e)
        {
            if (InvokeRequired)
            {
                BeginInvoke(new MethodInvoker(() => Network_SimChanged(sender, e)));
                return;
            }

            btnRefresh_Click(null, null);
        }
Exemple #27
0
 void Network_SimChanged(object sender, SimChangedEventArgs e)
 {
     Console.WriteLine("Network_SimChanged");
     if (e.PreviousSimulator != null)
     {
         Client.Appearance.RequestSetAppearance(false);
        // AppearanceManager.
         //LoadOutfit("Clothing/Ayudante English");
     }
 }
Exemple #28
0
 private void Network_OnSimChanged(object sender, SimChangedEventArgs e)
 {
     SetAgentFOV();
     ResetCamera();
 }