Add RegionManager level and the ability to use literal XML to the dynamic floater module

This commit is contained in:
Melanie
2013-05-04 00:45:27 +02:00
parent 4904d40138
commit 2332453974
4 changed files with 17 additions and 5 deletions

View File

@@ -125,10 +125,17 @@ namespace OpenSim.Region.OptionalModules.ViewerSupport
m_floaters[agentID].Add(dialogData.Channel, dialogData);
string xml;
using (FileStream fs = File.Open(dialogData.XmlName + ".xml", FileMode.Open))
if (dialogData.XmlText != null && dialogData.XmlText != String.Empty)
{
using (StreamReader sr = new StreamReader(fs))
xml = sr.ReadToEnd().Replace("\n", "");
xml = dialogData.XmlText;
}
else
{
using (FileStream fs = File.Open(dialogData.XmlName + ".xml", FileMode.Open))
{
using (StreamReader sr = new StreamReader(fs))
xml = sr.ReadToEnd().Replace("\n", "");
}
}
List<string> xparts = new List<string>();