mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 00:46:02 +08:00
Thank you kindly, Snowdrop, for a patch that solves:
The current API for MRM is quite sparse, this patch supplies basic support for accessing the task inventory of object.
This commit is contained in:
@@ -32,6 +32,7 @@ using System.Collections.Generic;
|
||||
|
||||
using OpenMetaverse;
|
||||
using OpenSim.Region.Framework.Scenes;
|
||||
using OpenSim.Region.Framework.Interfaces;
|
||||
|
||||
using log4net;
|
||||
|
||||
@@ -90,6 +91,13 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
return attachments.ToArray();
|
||||
}
|
||||
}
|
||||
|
||||
public void LoadUrl(IObject sender, string message, string url)
|
||||
{
|
||||
IDialogModule dm = m_rootScene.RequestModuleInterface<IDialogModule>();
|
||||
if(dm != null)
|
||||
dm.SendUrlToUser(GetSP().UUID, sender.Name, sender.GlobalID, GetSP().UUID, false, message, url);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user