Implement LSL-function llSetClickAction.
parent
c713dcbada
commit
91e0369f83
|
@ -1042,7 +1042,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public void llSetClickAction(int action)
|
public void llSetClickAction(int action)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -481,5 +481,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||||
public const int PARCEL_DETAILS_OWNER = 2;
|
public const int PARCEL_DETAILS_OWNER = 2;
|
||||||
public const int PARCEL_DETAILS_GROUP = 3;
|
public const int PARCEL_DETAILS_GROUP = 3;
|
||||||
public const int PARCEL_DETAILS_AREA = 4;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue