diff options
author | Arthur Valadares | 2009-08-25 10:32:45 -0300 |
---|---|---|
committer | Arthur Valadares | 2009-08-25 10:32:45 -0300 |
commit | efb287f28f89eee06c6b90ad13297a2d33058409 (patch) | |
tree | 89c52c4babfd581f06a98f58de5763c193a710b5 /OpenSim/Region/ScriptEngine/Shared/Api/Implementation | |
parent | Merge branch 'master' of ssh://opensimulator.org/var/git/opensim into arthursv (diff) | |
download | opensim-SC-efb287f28f89eee06c6b90ad13297a2d33058409.zip opensim-SC-efb287f28f89eee06c6b90ad13297a2d33058409.tar.gz opensim-SC-efb287f28f89eee06c6b90ad13297a2d33058409.tar.bz2 opensim-SC-efb287f28f89eee06c6b90ad13297a2d33058409.tar.xz |
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.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api/Implementation')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs index b40e441..b1c357c 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs | |||
@@ -879,6 +879,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
879 | return drawList; | 879 | return drawList; |
880 | } | 880 | } |
881 | 881 | ||
882 | public string osSetPenCap(string drawList, string direction, string type) | ||
883 | { | ||
884 | CheckThreatLevel(ThreatLevel.None, "osSetPenColour"); | ||
885 | |||
886 | m_host.AddScriptLPS(1); | ||
887 | drawList += "PenCap " + direction + "," + type + "; "; | ||
888 | return drawList; | ||
889 | } | ||
890 | |||
882 | public string osDrawImage(string drawList, int width, int height, string imageUrl) | 891 | public string osDrawImage(string drawList, int width, int height, string imageUrl) |
883 | { | 892 | { |
884 | CheckThreatLevel(ThreatLevel.None, "osDrawImage"); | 893 | CheckThreatLevel(ThreatLevel.None, "osDrawImage"); |