/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

listening_turfEither turf or null, used to connect to COMSIG_TURF_EXPOSE signal when parent is a turf.
our_stickerRefernce to a "stickered" atom.
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

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.

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.