diff options
author | Homer Horwitz | 2008-09-25 20:37:56 +0000 |
---|---|---|
committer | Homer Horwitz | 2008-09-25 20:37:56 +0000 |
commit | 91e0369f833f600cd7f3591f0690524aaaf9cd84 (patch) | |
tree | 3b7c8d1def4ee256e82d3601630f39215c9a051a /OpenSim/Region/ScriptEngine/Shared/Api | |
parent | Some script engine interface changes (diff) | |
download | opensim-SC-91e0369f833f600cd7f3591f0690524aaaf9cd84.zip opensim-SC-91e0369f833f600cd7f3591f0690524aaaf9cd84.tar.gz opensim-SC-91e0369f833f600cd7f3591f0690524aaaf9cd84.tar.bz2 opensim-SC-91e0369f833f600cd7f3591f0690524aaaf9cd84.tar.xz |
Implement LSL-function llSetClickAction.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs | 4 | ||||
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | 10 |
2 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs index 26db6af..1404701 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api_Base.cs | |||
@@ -1042,7 +1042,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
1042 | public void llSetClickAction(int action) | 1042 | public void llSetClickAction(int action) |
1043 | { | 1043 | { |
1044 | m_host.AddScriptLPS(1); | 1044 | m_host.AddScriptLPS(1); |
1045 | NotImplemented("llSetClickAction"); | 1045 | m_host.ClickAction = (byte)action; |
1046 | if (m_host.ParentGroup != null) m_host.ParentGroup.HasGroupChanged = true; | ||
1047 | m_host.ScheduleFullUpdate(); | ||
1046 | return; | 1048 | return; |
1047 | } | 1049 | } |
1048 | 1050 | ||
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs index 3194537..2c5c0b3 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs | |||
@@ -481,5 +481,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase | |||
481 | public const int PARCEL_DETAILS_OWNER = 2; | 481 | public const int PARCEL_DETAILS_OWNER = 2; |
482 | public const int PARCEL_DETAILS_GROUP = 3; | 482 | public const int PARCEL_DETAILS_GROUP = 3; |
483 | public const int PARCEL_DETAILS_AREA = 4; | 483 | public const int PARCEL_DETAILS_AREA = 4; |
484 | |||
485 | // constants for llSetClickAction | ||
486 | public const int CLICK_ACTION_NONE = 0; | ||
487 | public const int CLICK_ACTION_TOUCH = 0; | ||
488 | public const int CLICK_ACTION_SIT = 1; | ||
489 | public const int CLICK_ACTION_BUY = 2; | ||
490 | public const int CLICK_ACTION_PAY = 3; | ||
491 | public const int CLICK_ACTION_OPEN = 4; | ||
492 | public const int CLICK_ACTION_PLAY = 5; | ||
493 | public const int CLICK_ACTION_OPEN_MEDIA = 6; | ||
484 | } | 494 | } |
485 | } | 495 | } |