Implement LSL-function llSetClickAction.

0.6.0-stable
Homer Horwitz 2008-09-25 20:37:56 +00:00
parent c713dcbada
commit 91e0369f83
2 changed files with 13 additions and 1 deletions

View File

@ -1042,7 +1042,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llSetClickAction(int action)
{
m_host.AddScriptLPS(1);
NotImplemented("llSetClickAction");
m_host.ClickAction = (byte)action;
if (m_host.ParentGroup != null) m_host.ParentGroup.HasGroupChanged = true;
m_host.ScheduleFullUpdate();
return;
}

View File

@ -481,5 +481,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
public const int PARCEL_DETAILS_OWNER = 2;
public const int PARCEL_DETAILS_GROUP = 3;
public const int PARCEL_DETAILS_AREA = 4;
// constants for llSetClickAction
public const int CLICK_ACTION_NONE = 0;
public const int CLICK_ACTION_TOUCH = 0;
public const int CLICK_ACTION_SIT = 1;
public const int CLICK_ACTION_BUY = 2;
public const int CLICK_ACTION_PAY = 3;
public const int CLICK_ACTION_OPEN = 4;
public const int CLICK_ACTION_PLAY = 5;
public const int CLICK_ACTION_OPEN_MEDIA = 6;
}
}