Garry's Mod Wiki

DMenu:Open

  DMenu:Open( number x = gui.MouseX(), number y = gui.MouseY(), any skipanimation = nil, Panel ownerpanel = nil )

Description

Opens the DMenu at the current mouse position

Arguments

1 number x = gui.MouseX()
Position (X coordinate) to open the menu at.
2 number y = gui.MouseY()
Position (Y coordinate) to open the menu at.
3 any skipanimation = nil
This argument does nothing.
4 Panel ownerpanel = nil
If x and y are not set manually, setting this argument will offset the y position of the opened menu by the height of given panel.