ID:1236710
 
(See the best response by Ter13.)
Code:
mob
verb
resize()


Problem description: How would I call the above function in the Resize Command field of the skin interface.

I have tried
resize
mob.resize
client.resize
client.mob.resize
.resize

All give me the following error Unrecognized or inaccessible verb


Decided to make my own post after searching the forums for about 2hrs.

Thanks for your help

Best response
It should be a client verb, first of all, and second, you need to set the resize command field of the interface element to "resize".

It will automatically look for a matching verb defined under the client object like so:

client
verb
resize()


You should also note that this is NOT called when winset is called to resize an element. Only client-driven resize events will trigger this verb.
Uh, verbs for the interface do not need to be defined under the /client object. Any verbs accessible to the user work.
Good to know. I've had mixed results with non-client verbs.

Either way, structure kind of dictates that this kind of thing should be deferred to the client and not the mob. In most cases, at least.
To answer the original post, to call a verb in a skin all you need to do is first make the verb, then set it in either a macro, or set it to run by using a button.

To use a verb from the skin you omit the () at the end of the verb, otherwise you will get an error.

So if your verb is resize(), you'd want to just type resize in the skin- it should work properly then.

You can use verbs which belong to /client or verbs that belong to /mob, doesn't matter which.