Exemplo n.º 1
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);
        }
        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);
                    }

                }
            }
        }