This creates the UI representing a contextmenu at absolute position (x, y). Contextmenus are typically displayed after the user clicked UI using the right mouse button. Contextmenus consist of contextmenu_item and contextmenu_hr.

contextmenu(x, y, ...)

Arguments

x, y

Integer. Contextmenus upper left corner is displayed at (x px, y px).

...

UI elements to include in the contextmenu, typically contextmenu_item and contextmenu_hr.