Exemplo n.º 1
0
        protected virtual void OnButtonTeleportClicked(object sender, System.EventArgs e)
        {
            Vector3 pos=new Vector3();
            pos.X=(int)(picpos.X)&0x0000FF;
            pos.Y=(int)(picpos.Y)&0x0000FF;
            pos.Z=(int)(picpos.Z)&0x0000FF;

            TeleportProgress tp = new TeleportProgress();
            tp.Show();
            tp.teleport(sim,pos);
        }
Exemplo n.º 2
0
        void Teleporttolandmark(object o, ButtonPressEventArgs args)
        {
            Gtk.TreeModel mod;
            Gtk.TreeIter iter;
            TreePath[] paths = treeview_inv.Selection.GetSelectedRows(out mod);
            mod.GetIter(out iter, paths[0]);
            TeleportProgress tp = new TeleportProgress();
            tp.Show();
            InventoryLandmark item = (InventoryLandmark)mod.GetValue(iter, 3);

            tp.teleportassetid(item.AssetUUID,item.Name);
            //MainClass.client.Self.Teleport(item.AssetUUID);
        }
        protected virtual void OnButtonTPClicked(object sender, System.EventArgs e)
        {
            Vector3 pos=new Vector3();
            string sim;

            //beter work out who we have selected
            Gtk.TreeModel mod;
            Gtk.TreeIter iter;

            if(treeview1.Selection.GetSelected(out mod,out iter))
            {
                sim=(string)mod.GetValue(iter,1);
                pos=(Vector3)mod.GetValue(iter,4);

                TeleportProgress tp = new TeleportProgress();
                tp.Show();
                tp.teleport(sim,pos);
            }
        }
        protected virtual void OnButtonTeleportClicked(object sender, System.EventArgs e)
        {
            string sim=selected_event.SimName;
            Vector3d pos=selected_event.GlobalPos;
            float local_x,local_y;
            OpenMetaverse.Helpers.GlobalPosToRegionHandle((float)pos.X,(float)pos.Y,out local_x,out local_y);
            Vector3 local_pos;
            local_pos.X=local_x;
            local_pos.Y=local_y;
            local_pos.Z=(float)pos.Z;

            TeleportProgress tp = new TeleportProgress();
            tp.Show();
            tp.teleport(sim,local_pos);
        }
Exemplo n.º 5
0
 protected virtual void OnButtonTphomeClicked(object sender, System.EventArgs e)
 {
     userclicked=false;
     TeleportProgress tp = new TeleportProgress();
     tp.Show();
     tp.teleporthome();
 }
Exemplo n.º 6
0
        protected virtual void OnButtonTeleportClicked(object sender, System.EventArgs e)
        {
            userclicked=false;
            Vector3 pos;
            pos=new Vector3();
            pos.X=(float)this.spinbutton_x.Value;
            pos.Y=(float)this.spinbutton_y.Value;
            pos.Z=(float)this.spinbutton_z.Value;

            TeleportProgress tp = new TeleportProgress();
            if (entry_simname.Text != MainClass.client.Network.CurrentSim.Name)
            {
                tp.Show();
            }
            tp.teleport(entry_simname.Text,pos);
        }
        void onTextEvent(object o, TextEventArgs args)
        {
            if(args.Event.Type==Gdk.EventType.ButtonPress)
            {
                Logger.Log("CLick",Helpers.LogLevel.Debug);
                Logger.Log(o.ToString(),Helpers.LogLevel.Debug);
                Gtk.TextTag tag=(Gtk.TextTag)o;
                EmbeddedInventory inventory;
                if(this.iter_uuid_dict.TryGetValue(tag,out inventory))
                {
                    if(inventory.assettype==AssetType.Notecard)
                    {
                        Console.Write("NEW UUID "+inventory.item_id.ToString());
                        new NotecardReader(inventory.item_id,this.target_id,this.notecard_item_id);
                    }
                    if(inventory.assettype==AssetType.Landmark)
                    {
                        Console.Write("New landmark");
                        TeleportProgress tp=new TeleportProgress();
                        tp.teleportassetid(inventory.asset_id,inventory.name);
                    }

                }
            }
        }