Page Text: “settings:click_menu = on”,
You only change the data after the =.
Make sure not to remove the “, at the end of the line as this will break the script.
Main Menu
The main menu is the menu you get when you click the object.
“menu:main:menu = button1, button2, button3”,
Your menu may consist of up to 12 buttons. Inside your main menu you may also want to include the CLOSE button as defined by settings:close_button.
“menu:main:menu = button1, button2, CLOSE, button3, button4, Light”,
For a button to do something you need to define a action or sub menu:
“menu:main:Light = something”,
This is a action. When the Light button is clicked “something” is done.
“menu:Light:menu = button1 ,button2”,
This is a sub menu. When the light button is clicked it gives a sub menu with button1 and button2.
(Note: a BACK button is automatically included in all sub menus. The sub menu can contain up to 11 buttons)
“menu:Light:button1 = something”,
This is a action for the sub menu for when button1 is clicked.
Integers
The integer options holds a on or off value that you can use inside of your blue dialog menu and there values can be changed by menu buttons.
If you for example would create a lamp:
“integer:light = off”,
When we rez the lamp the light is off. So we set the integer to Off, which is the default.
This setting will automatically create the [light] tag that we can use in our menu text.
“menu:light:menu = On, Off”,
“menu:light:text = Light: [light]”,
Create a sub menu with a On and Off button and the light status in the menu text.
“menu:light:on = light | -4 | 1 | <0.8, 0.4, 0.0> | 1.0 | 5.0 | 1.0”,
“menu:light:on = integer | on”,
Set the light to on and change the integer to on.
“menu:light:off = light | -4 | 0 | <0.8, 0.4, 0.0> | 1.0 | 5.0 | 1.0”,
“menu:light:off = integer | off”,
Set the light to off and change the integer to off.
Prim numbers & names
All menu buttons that let you specify a prim supports either a prim number or prim name.
It is recommended that you use a prim name or negative link number when possible (so when you re-link your item you don’t need to change the numbers).
menu:color:red = color | 2 | <1.000, 0.255, 0.212> | -1
Change the prim with link number 2 to red.
menu:color:red = color | a1 | <1.000, 0.255, 0.212> | -1
Change the prim with the name a1 to red.
Negative link numbers are also supported:
-1 = All prims.
-3 = All children (all except root).
-4 = The prim the script is in.
For faces you can either use the face number or -1 for all faces.
Examples
There are multiple examples included with the Object Menu PRO. You want to rez and edit these examples to see how they work. They make it a lot easier to understand.
Here is the example of a simple lamp (the “light prim” is named a1):
“integer:main = off”,
“menu:main:On = glow | a1 | -1 | 0.1”,
“menu:main:On = light | a1 | 1 | <0.8, 0.4, 0.0> | 1.0 | 5.0 | 1.0”,
“menu:main:On = integer | on”,
“menu:main:Off = glow | a1 | -1 | 0.0”,
“menu:main:Off = light | a1 | 0 | <0.8, 0.4, 0.0> | 1.0 | 5.0 | 1.0”,
“menu:main:Off = integer | off”
Menu buttons
As previously explained a “main menu button” can either do something or open a sub menu.
Bellow a list of the button options with examples:
Access
Set who can access the menu.
Format: access | owner/group/everyone
“menu:main:menu = Button1, Button2, CLOSE, Access“,
“menu:Access:menu = Owner, Group, Everyone”,