ID:133320
 
I think it would be nice if we could modify what right click does like we can with click and dblclick. That way we can use it like another control and can use it for various things besides looking at verbs.
NightJumper88 wrote:
I think it would be nice if we could modify what right click does like we can with click and dblclick. That way we can use it like another control and can use it for various things besides looking at verbs.

I thought you already could by turning client.show_popup_menus off and/or selecting the appropriate option for a map control in the skin editor.
In response to Mobius Evalon
As far as i have seen you can turn it off but you cant define it to do what you want like you can with Click and DblClick. But if Im wrong then i would like to know.
In response to NightJumper88
NightJumper88 wrote:
As far as i have seen you can turn it off but you cant define it to do what you want like you can with Click and DblClick. But if Im wrong then i would like to know.

These event hooks take the right click as parameter, thus you can achieve what you intend just as you would with a normal Click(), only that you have to check for the right click flag to be set or not.
In response to Schnitzelnagler
And also with Alt, Ctrl, and/or Shift held down.
client
Click(object,location,control,params)
var/list/p=params2list(params)
if(p["right"])
usr.right_click()
proc
right_click()
// Do stuff.
In response to SuperAntx
Usr is a mob, and you're defining the right_click proc for clients (use src instead).
In response to SuperAntx
SuperAntx wrote:
client
> Click(object,location,control,params)
> var/list/p=params2list(params)
> if(p["right"])
> return src.right_click(object, location, control, params)
> proc
> right_click(object, location, control, params)
> // Do stuff.