Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

[BUG-228712] Constant CLICK_ACTION_DISABLED does not exist. #6716

Open
5 tasks
sl-service-account opened this issue May 11, 2020 · 2 comments
Open
5 tasks

Comments

@sl-service-account
Copy link

sl-service-account commented May 11, 2020

What just happened?

I was just trying to use the LSL function llSetClickAction with the constant CLICK_ACTION_DISABLED, but it does not compile and shows the error message "Name not defined within scope". If I replace it with the value '8', it does work.

What were you doing when it happened?

/

What were you expecting to happen instead?

Instead of the value '8', I should be able to use CLICK_ACTION_DISABLED.

Other information

The constant does also not appear in the list at http://wiki.secondlife.com/wiki/Category:LSL_Constants.
I use Firestorm and Linux, but I also tested this issue with the official viewer on my Windows laptop.

Links

Related

Duplicates

Original Jira Fields
Field Value
Issue BUG-228712
Summary Constant CLICK_ACTION_DISABLED does not exist.
Type Bug
Priority Unset
Status Accepted
Resolution Accepted
Reporter Stephan Gaudio (stephan.gaudio)
Created at 2020-05-11T11:26:38Z
Updated at 2020-06-11T13:38:37Z
{
  'Build Id': 'unset',
  'Business Unit': ['Platform'],
  'Date of First Response': '2020-05-11T15:30:43.364-0500',
  "Is there anything you'd like to add?": 'The constant does also not appear in the list at http://wiki.secondlife.com/wiki/Category:LSL_Constants.\r\nI use Firestorm and Linux, but I also tested this issue with the official viewer on my Windows laptop.',
  'ReOpened Count': 0.0,
  'Severity': 'Unset',
  'System': 'SL Simulator',
  'Target Viewer Version': 'viewer-development',
  'What just happened?': 'I was just trying to use the LSL function llSetClickAction with the constant CLICK_ACTION_DISABLED, but it does not compile and shows the error message "Name not defined within scope". If I replace it with the value \'8\', it does work.',
  'What were you doing when it happened?': '/',
  'What were you expecting to happen instead?': "Instead of the value '8', I should be able to use CLICK_ACTION_DISABLED.",
  'Where': 'Everywhere',
}
@sl-service-account
Copy link
Author

Maestro Linden commented at 2020-05-11T20:30:43Z

Hi Stephan, thanks for the report. It's true that CLICK_ACTION_DISABLED is not currently defined as a constant in LSL, but probably should be (along with the other values the viewer supports).

The viewer's constants include:

const U8 CLICK_ACTION_NONE = 0;
const U8 CLICK_ACTION_TOUCH = 0;
const U8 CLICK_ACTION_SIT = 1;
const U8 CLICK_ACTION_BUY = 2;
const U8 CLICK_ACTION_PAY = 3;
const U8 CLICK_ACTION_OPEN = 4;
const U8 CLICK_ACTION_PLAY = 5;
const U8 CLICK_ACTION_OPEN_MEDIA = 6;
const U8 CLICK_ACTION_ZOOM = 7;
const U8 CLICK_ACTION_DISABLED = 8;

LSL is missing _DISABLED and also _ZOOM.

@sl-service-account
Copy link
Author

Stephan Gaudio commented at 2020-06-11T13:38:38Z

I see this is fixed now, but you still need to update the Wiki. Instead of CLICK_ACTION_DISABLED, it shows "No known constant implemented." now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant