a few changes to last commits
parent
5fc44398fe
commit
eb7715e2f8
|
@ -504,10 +504,24 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
|
|
||||||
foreach (string line in GetLines(data, dataDelim))
|
foreach (string line in GetLines(data, dataDelim))
|
||||||
{
|
{
|
||||||
string nextLine = line.Trim();
|
string nextLine = line.TrimStart();
|
||||||
|
|
||||||
// m_log.DebugFormat("[VECTOR RENDER MODULE]: Processing line '{0}'", nextLine);
|
// m_log.DebugFormat("[VECTOR RENDER MODULE]: Processing line '{0}'", nextLine);
|
||||||
|
|
||||||
|
if (nextLine.StartsWith("Text") && nextLine.Length > 5)
|
||||||
|
{
|
||||||
|
int start = 4;
|
||||||
|
if (nextLine[4] == ' ')
|
||||||
|
start++;
|
||||||
|
if (start < nextLine.Length)
|
||||||
|
{
|
||||||
|
nextLine = nextLine.Substring(start);
|
||||||
|
graph.DrawString(nextLine, myFont, myBrush, startPoint);
|
||||||
|
}
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
nextLine = nextLine.TrimEnd();
|
||||||
if (nextLine.StartsWith("ResetTransf"))
|
if (nextLine.StartsWith("ResetTransf"))
|
||||||
{
|
{
|
||||||
graph.ResetTransform();
|
graph.ResetTransform();
|
||||||
|
@ -552,14 +566,6 @@ namespace OpenSim.Region.CoreModules.Scripting.VectorRender
|
||||||
startPoint.X = endPoint.X;
|
startPoint.X = endPoint.X;
|
||||||
startPoint.Y = endPoint.Y;
|
startPoint.Y = endPoint.Y;
|
||||||
}
|
}
|
||||||
else if (nextLine.StartsWith("Text"))
|
|
||||||
{
|
|
||||||
int start = 4;
|
|
||||||
if(nextLine[4] == ' ')
|
|
||||||
start++;
|
|
||||||
nextLine = nextLine.Substring(start);
|
|
||||||
graph.DrawString(nextLine, myFont, myBrush, startPoint);
|
|
||||||
}
|
|
||||||
else if (nextLine.StartsWith("Image"))
|
else if (nextLine.StartsWith("Image"))
|
||||||
{
|
{
|
||||||
// We cannot reuse any generated texture involving fetching an image via HTTP since that image
|
// We cannot reuse any generated texture involving fetching an image via HTTP since that image
|
||||||
|
|
Loading…
Reference in New Issue