Format

DblClick(object,location,control,params)

When

Called when the player double-clicks on the map or in the stat panels.

Args

  • object: the object double-clicked
  • location: the client stat panel, location (turf) of object on map, grid cell, or other control-specific info
  • control: the name of the skin control involved
  • params: other parameters including mouse/keyboard flags, icon offsets, etc.; see mouse handling

Default action

Call object.DblClick(location,control,params).

client
  DblClick(O)
    usr << "You double-clicked [O]"
    ..() // do default action

Note that due to network lag, it is possible when clicking on moving objects for the location of those objects to have changed by the time the DblClick() proc is executed. That is the reason for the location argument. It tells you where the click originally took place.

DblClick(object as null|atom in usr.client,\
         location as null|turf|text in usr.client,\
         control as text, params as text)

See also