diff options
author | Brian McBee | 2007-12-11 03:51:32 +0000 |
---|---|---|
committer | Brian McBee | 2007-12-11 03:51:32 +0000 |
commit | 16903ec488f53fe1bab6b4c4408dde31d03367ff (patch) | |
tree | de93756adda1b308fcb9606cc703bf90e11ff112 /OpenSim/Region/ClientStack | |
parent | refactor SunModule a bit to make more sensible (diff) | |
download | opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.zip opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.gz opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.bz2 opensim-SC_OLD-16903ec488f53fe1bab6b4c4408dde31d03367ff.tar.xz |
Implementing updateinventoryfolder: Should now be able to rename folders in inventory
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index db25ee6..a94c5da 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -430,6 +430,7 @@ namespace OpenSim.Region.ClientStack | |||
430 | 430 | ||
431 | public event CreateNewInventoryItem OnCreateNewInventoryItem; | 431 | public event CreateNewInventoryItem OnCreateNewInventoryItem; |
432 | public event CreateInventoryFolder OnCreateNewInventoryFolder; | 432 | public event CreateInventoryFolder OnCreateNewInventoryFolder; |
433 | public event UpdateInventoryFolder OnUpdateInventoryFolder; | ||
433 | public event FetchInventoryDescendents OnFetchInventoryDescendents; | 434 | public event FetchInventoryDescendents OnFetchInventoryDescendents; |
434 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; | 435 | public event PurgeInventoryDescendents OnPurgeInventoryDescendents; |
435 | public event FetchInventory OnFetchInventory; | 436 | public event FetchInventory OnFetchInventory; |
@@ -2809,6 +2810,19 @@ namespace OpenSim.Region.ClientStack | |||
2809 | invFolder.FolderData.ParentID); | 2810 | invFolder.FolderData.ParentID); |
2810 | } | 2811 | } |
2811 | break; | 2812 | break; |
2813 | case PacketType.UpdateInventoryFolder: | ||
2814 | if (OnUpdateInventoryFolder != null) | ||
2815 | { | ||
2816 | UpdateInventoryFolderPacket invFolder = (UpdateInventoryFolderPacket)Pack; | ||
2817 | for (int i = 0; i < invFolder.FolderData.Length; i++) | ||
2818 | { | ||
2819 | OnUpdateInventoryFolder(this, invFolder.FolderData[i].FolderID, | ||
2820 | (ushort)invFolder.FolderData[i].Type, | ||
2821 | Util.FieldToString(invFolder.FolderData[i].Name), | ||
2822 | invFolder.FolderData[i].ParentID); | ||
2823 | } | ||
2824 | } | ||
2825 | break; | ||
2812 | case PacketType.CreateInventoryItem: | 2826 | case PacketType.CreateInventoryItem: |
2813 | CreateInventoryItemPacket createItem = (CreateInventoryItemPacket) Pack; | 2827 | CreateInventoryItemPacket createItem = (CreateInventoryItemPacket) Pack; |
2814 | if (OnCreateNewInventoryItem != null) | 2828 | if (OnCreateNewInventoryItem != null) |