/tg/ Station 13 - Modules - TypesVar Details - Proc Details

sticker

Sticker component

Component that draws supplied atom's icon over parent object with specified offset, icon centering is handled inside.

Vars

examine_textText added to the atom's examine when stickered.
listening_turfEither turf or null, used to connect to COMSIG_TURF_EXPOSE signal when parent is a turf.
our_stickerRefernce to a "stickered" atom.
peel_callbackCallback invoked when sticker is peeled (not removed) from the parent.
stick_callbackCallback invoked when sticker is applied to the parent.
sticker_overlayReference to the created overlay, used during component deletion.

Procs

peelMoves stickered atom from the nullspace, deletes component.
register_turf_signalsSubscribes to COMSIG_TURF_EXPOSE if parent atom is a turf. If turf is closed - subscribes to signal
stickHandles overlay creation from supplied atom, adds created icon to the parent object, moves source atom to the nullspace.
unregister_turf_signalsUnsubscribes from COMSIG_TURF_EXPOSE if listening_turf is not null.

Var Details

examine_text

Text added to the atom's examine when stickered.

listening_turf

Either turf or null, used to connect to COMSIG_TURF_EXPOSE signal when parent is a turf.

our_sticker

Refernce to a "stickered" atom.

peel_callback

Callback invoked when sticker is peeled (not removed) from the parent.

stick_callback

Callback invoked when sticker is applied to the parent.

sticker_overlay

Reference to the created overlay, used during component deletion.

Proc Details

peel

Moves stickered atom from the nullspace, deletes component.

register_turf_signals

Subscribes to COMSIG_TURF_EXPOSE if parent atom is a turf. If turf is closed - subscribes to signal

stick

Handles overlay creation from supplied atom, adds created icon to the parent object, moves source atom to the nullspace.

unregister_turf_signals

Unsubscribes from COMSIG_TURF_EXPOSE if listening_turf is not null.