Daedalus Dock - Modules - TypesVar Details - Proc Details

clickbox

This component adds a near-invisible underlay to a movable target to expand the clickable surface of its icon without resorting to MOUSE_OPACITY_OPAQUE. The underlay ignores the parent's color and alpha and can be offset. The name is a portmanteau of "click" and "hitbox", because technically this isn't an hitbox, but it helps catch clicks, and I don't want to give it a loooong name like openspace_item_click_handler

Vars

clickbox_undelaythe underlay that has been added to the parent.
dead_stateFor simple animals that have different icon states when dead.
icon_stateThe icon state of the underlay.
max_scaleMaximum width/height of the underlay, in case the attached atom is scaled up.
min_scaleMinimum width/height of the underlay, in case the attached atom is scaled down.
x_offsetThe offsets of the underlay.

Procs

update_underlayRemoves the old underlay and adds a new one if conditions are met. The underlay is scaled up/down if necessary

Var Details

clickbox_undelay

the underlay that has been added to the parent.

dead_state

For simple animals that have different icon states when dead.

icon_state

The icon state of the underlay.

max_scale

Maximum width/height of the underlay, in case the attached atom is scaled up.

min_scale

Minimum width/height of the underlay, in case the attached atom is scaled down.

x_offset

The offsets of the underlay.

Proc Details

update_underlay

Removes the old underlay and adds a new one if conditions are met. The underlay is scaled up/down if necessary