Revision Difference
DMenu:Open#568559
<function name="Open" parent="DMenu" type="panelfunc">
<description>Opens the <page>DMenu</page> at given position.</description>⤶
<description>Opens the <page>DMenu</page> at given position.⤶
<note>Sometimes when you are requesting the focus in <page>Panel:OnMousePressed</page>, the menu may become unresponsive,⤶
and right-click has to be triggered a second time. In this case, you can use <page>Panel:MakePopup</page> to force it⤶
active in the foreground, so it can become active again and items can be selected.⤶
</note>⤶
</description>⤶
<realm>Client and Menu</realm>
<args>
<arg name="x" type="number" default="gui.MouseX()">Position (X coordinate) to open the menu at.</arg>
<arg name="y" type="number" default="gui.MouseY()">Position (Y coordinate) to open the menu at.</arg>
<arg name="skipanimation" type="any" default="nil">This argument does nothing.</arg>
<arg name="ownerpanel" type="Panel" default="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.</arg>
</args>
</function>
Garry's Mod
Rust
Steamworks
Wiki Help