Space Station 13 - Modules - TypesVar Details - Proc Details

Click intercept datum

Datum which is intended to be stored by a client's click_intercept variable. Used to override normal clicking behavior when clicking on an object. While active, a mob's ClickOn proc will redirect to the InterceptClickOn() proc instead.

Vars

buttonsAny atom/movable/screen/buttons the client is meant to receive when assigned this click intercept datum.
holderA reference to the client which is assigned this click intercept datum.

Procs

InterceptClickOnCalled in various mob's ClickOn procs, which happens when they click on an object in the world.
create_buttonsBase proc, intended to be overriden. Code that adds datum specific buttons to the list of buttons, should go here.
quitCalled when you want to cancel a client's click intercept and return to normal clicking.

Var Details

buttons

Any atom/movable/screen/buttons the client is meant to receive when assigned this click intercept datum.

holder

A reference to the client which is assigned this click intercept datum.

Proc Details

InterceptClickOn

Called in various mob's ClickOn procs, which happens when they click on an object in the world.

If the mob's client.click_intercept variable is set to something other than null, calls the InterceptClickOn proc for that click intercept datum. Aka, this proc.

Arguments:

create_buttons

Base proc, intended to be overriden. Code that adds datum specific buttons to the list of buttons, should go here.

quit

Called when you want to cancel a client's click intercept and return to normal clicking.