Im trying to open a small menu when i right click on a DList, However im having 2 problems.
First of all, Im trying to make the menu open using right click with this code:
local mcode = 108 function statsList:OnMousePressed(mcode) print("right click detected") local rightMenu = vgui.Create("DMenu") rightMenu:AddOption("Add points") rightMenu:Open() end
However it opens with any mouse click, not specifically just the right click.
Secondly i need to be able to right click a row in a DList however it doesnt open a menu if i click on a row in the dlist, just selects it. Hopefully someone can help me out!
Thanks in advance!