OSDN Git Service

Some double click actions for the inventory
authorLatif Khalifa <latifer@streamgrid.net>
Tue, 14 Jul 2009 16:20:51 +0000 (16:20 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Tue, 14 Jul 2009 16:20:51 +0000 (16:20 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@101 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/Inventory/InventoryConsole.cs

index 30d8d5e..591a521 100644 (file)
@@ -685,6 +685,22 @@ namespace Radegast
                         instance.TabConsole.DisplayNotificationInChat("Teleporting to " + item.Name);\r
                         client.Self.RequestTeleport(item.AssetUUID);\r
                         break;\r
+\r
+                    case AssetType.Gesture:\r
+                        client.Self.PlayGesture(item.AssetUUID);\r
+                        break;\r
+\r
+                    case AssetType.Notecard:\r
+                        Notecard note = new Notecard(instance, (InventoryNotecard)item);\r
+                        note.Dock = DockStyle.Fill;\r
+                        note.ShowDetached();\r
+                        break;\r
+\r
+                    case AssetType.LSLText:\r
+                        ScriptEditor script = new ScriptEditor(instance, (InventoryLSL)item);\r
+                        script.Dock = DockStyle.Fill;\r
+                        script.ShowDetached();\r
+                        break;\r
                 }\r
             }\r
         }\r