Purpose¶
This node shows a menu of SoMenuItem
items arranged at the positions given by SoMenuItem.fixedPosition
. This can be a static menu where the top-level items are always shown, or a popup menu, where the items are shown when the mouse button is pressed, and relative to the initial mouse cursor position.
Usage¶
Interaction¶
The interaction mouse button is the left button for static menus and the right button if Popup Menu
is set.
This can be overridden with SoInteractionMapping
.
Tips¶
If Popup Menu
is false, the same tips as for SoBorderMenu
apply.
Output Fields¶
Parameter Fields¶
Field Index¶
Alpha (backgroundAlpha) : Float |
Font Size : Integer |
Offset : Vector2 |
Alpha (backgroundAlphaSelected) : Float |
Gap Between Icon and Text : Integer |
On : Bool |
Background Color : Color |
hoverItemID : String |
Outer Border : Float |
Background Color Selected : Color |
Icon Blend Mode : Enum |
Popup Menu : Bool |
Color : Color |
Inner Border : Float |
popupDelay : Float |
Color Selected : Color |
interactionProviderID : String |
Relative Anchor Point : Vector2 |
Disable ZBuffer : Bool |
lastClickedItemId : String |
Text Shadow : Bool |
drawBackground : Bool |
Menu Id : String |
|
Enabled : Bool |
Mouse Over Color Factor : Float |
Visible Fields¶
Alpha (backgroundAlpha)¶
-
name:
backgroundAlpha
, type:
Float
, default:
0.80000001
, minimum:
0
, maximum:
1
¶
Background Color Selected¶
-
name:
backgroundColorSelected
, type:
Color
, default:
0.699999988079071 0.699999988079071 0.699999988079071
¶
Alpha (backgroundAlphaSelected)¶
-
name:
backgroundAlphaSelected
, type:
Float
, default:
0.80000001
, minimum:
0
, maximum:
1
¶
Mouse Over Color Factor¶
-
name:
mouseOverColorFactor
, type:
Float
, default:
0.80000001
, minimum:
0
, maximum:
1
¶
Offset¶
-
name:
offset
, type:
Vector2
, default:
0 0
¶ Pixel offset to apply to the
SoMenuItem.fixedPosition
of each menu item. IfPopup Menu
is set, the initial mouse cursor position when the mouse button went down is also added.
Relative Anchor Point¶
-
name:
relativeAnchorPoint
, type:
Vector2
, default:
0 0
¶ Anchor point of the menu in relative coordinates [0-1] of the current viewport. This position is added (together with
Offset
) to theSoMenuItem.fixedPosition
of each menu item, but only ifPopup Menu
is not set (as the anchor point is determined by the mouse cursor position then).