diff options
author | Teravus Ovares | 2008-02-02 08:11:14 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-02 08:11:14 +0000 |
commit | 2d6c21e8fc8c1d8d69911c91d10c8896b312994a (patch) | |
tree | 1731054a3d900f5a8c46ccf77eafc09dbf875fdf /OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |
parent | fixed a timing bug in config re-read. Apparently there is 1000000000 ns in on... (diff) | |
download | opensim-SC_OLD-2d6c21e8fc8c1d8d69911c91d10c8896b312994a.zip opensim-SC_OLD-2d6c21e8fc8c1d8d69911c91d10c8896b312994a.tar.gz opensim-SC_OLD-2d6c21e8fc8c1d8d69911c91d10c8896b312994a.tar.bz2 opensim-SC_OLD-2d6c21e8fc8c1d8d69911c91d10c8896b312994a.tar.xz |
* Added Full support for llSetTextureAnim. To ckrinke: Let the fountains of Wright Plaza flow!
* Fixed another bug in LibSL. This is the same version, as before just with a bug fix.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs index 3f719fb..4054369 100644 --- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs +++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs | |||
@@ -42,6 +42,7 @@ using OpenSim.Region.ScriptEngine.Common.ScriptEngineBase; | |||
42 | 42 | ||
43 | namespace OpenSim.Region.ScriptEngine.Common | 43 | namespace OpenSim.Region.ScriptEngine.Common |
44 | { | 44 | { |
45 | |||
45 | /// <summary> | 46 | /// <summary> |
46 | /// Contains all LSL ll-functions. This class will be in Default AppDomain. | 47 | /// Contains all LSL ll-functions. This class will be in Default AppDomain. |
47 | /// </summary> | 48 | /// </summary> |
@@ -2005,16 +2006,24 @@ namespace OpenSim.Region.ScriptEngine.Common | |||
2005 | return String.Empty; | 2006 | return String.Empty; |
2006 | } | 2007 | } |
2007 | 2008 | ||
2009 | |||
2010 | |||
2008 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) | 2011 | public void llSetTextureAnim(int mode, int face, int sizex, int sizey, double start, double length, double rate) |
2009 | { | 2012 | { |
2010 | Primitive.TextureAnimation pTexAnim = new Primitive.TextureAnimation(); | 2013 | Primitive.TextureAnimation pTexAnim = new Primitive.TextureAnimation(); |
2011 | pTexAnim.Flags = (uint)mode; | 2014 | pTexAnim.Flags =(uint) mode; |
2015 | |||
2016 | //ALL_SIDES | ||
2017 | if (face == -1) | ||
2018 | face = 255; | ||
2019 | |||
2012 | pTexAnim.Face = (uint)face; | 2020 | pTexAnim.Face = (uint)face; |
2013 | pTexAnim.Length = (float)length; | 2021 | pTexAnim.Length = (float)length; |
2014 | pTexAnim.Rate = (float)rate; | 2022 | pTexAnim.Rate = (float)rate; |
2015 | pTexAnim.SizeX = (uint)sizex; | 2023 | pTexAnim.SizeX = (uint)sizex; |
2016 | pTexAnim.SizeY = (uint)sizey; | 2024 | pTexAnim.SizeY = (uint)sizey; |
2017 | pTexAnim.Start = (float)start; | 2025 | pTexAnim.Start = (float)start; |
2026 | |||
2018 | m_host.AddTextureAnimation(pTexAnim); | 2027 | m_host.AddTextureAnimation(pTexAnim); |
2019 | m_host.SendFullUpdateToAllClients(); | 2028 | m_host.SendFullUpdateToAllClients(); |
2020 | } | 2029 | } |