And yes, here I come again, mr. "noob-at-mouse-control".
I really don't understand Click()/DblClick() its args.
I know how they both work, by just called mob/Click() and such, but could someone explane me these args?
Format: Click(location,control,params)
When: Called when the object is clicked.
Args: location: the turf, stat panel, grid cell, etc. in which the object was clicked
control: the name of the skin control involved
params: other parameters including mouse/keyboard flags, icon offsets, etc.; see mouse control
This proc is called by the default client.Click() procedure.
The following example allows the player to walk to a position by clicking it.
My question is, could someone explain me the args and how I have to use them, with an example, if possible.
Thanks for youur time reading this and thanks in advance,
~ Rick
ID:160658
![]() Aug 4 2008, 2:49 pm
|
|
The thing is, I looked it up but I was like.. "o_O yeah..."
Thanks alot Kaiochao, this cleared alot for me up. ^^ |
Right click actions won't work if pop-up menus are enabled.
You can either set the client var show_popup_menus to 0 to disable all pop-up menus or check "send right-clicks to mouse procs" on a certain control to disable pop-up menus on that control. |
Jemai1 wrote:
You can either set the client var show_popup_menus to 0 to disable all pop-up menus or check "send right-clicks to mouse procs" on a certain control to disable pop-up menus on that control. Now, is there a way to distinguish right-clicks from left-clicks in the mouse procs? |
Yes.
client Click here to learn more on mouse control. |
Look up "mouse control" in the DM reference to see a list of the supported parameters and other information.
If you have an interface file, control returns the ID of the control you clicked.