LSL: limit sittext and touchtext to length current viewers cand display
parent
46dc9ebd4e
commit
e1c20a32ca
|
@ -7991,13 +7991,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public void llSetTouchText(string text)
|
public void llSetTouchText(string text)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
m_host.TouchName = text;
|
if(text.Length <= 9)
|
||||||
|
m_host.TouchName = text;
|
||||||
|
else
|
||||||
|
m_host.TouchName = text.Substring(0, 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void llSetSitText(string text)
|
public void llSetSitText(string text)
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
m_host.SitName = text;
|
if (text.Length <= 9)
|
||||||
|
m_host.SitName = text;
|
||||||
|
else
|
||||||
|
m_host.SitName = text.Substring(0, 9);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void llSetCameraEyeOffset(LSL_Vector offset)
|
public void llSetCameraEyeOffset(LSL_Vector offset)
|
||||||
|
|
Loading…
Reference in New Issue