Implemented osPenCap, that sets EndCap and StartCap to Pen. This allows using arrow, diamond, round and flat caps.

* Made image request safer, if it can't find an image for any reason, draws a square where the image should be and a message alerting the user.
This commit is contained in:
Arthur Valadares
2009-08-25 10:32:45 -03:00
parent 9c9fa51b0f
commit efb287f28f
4 changed files with 85 additions and 7 deletions

View File

@@ -879,6 +879,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
return drawList;
}
public string osSetPenCap(string drawList, string direction, string type)
{
CheckThreatLevel(ThreatLevel.None, "osSetPenColour");
m_host.AddScriptLPS(1);
drawList += "PenCap " + direction + "," + type + "; ";
return drawList;
}
public string osDrawImage(string drawList, int width, int height, string imageUrl)
{
CheckThreatLevel(ThreatLevel.None, "osDrawImage");