In-game tools · type

UiEvent

What a panel is asked to deal with.

Explained in In-game tools.

type UiEvent =
import type { UiEvent } from '@driftengine/tools';

In depth

Positions are in the panel's own space — the caller has already subtracted the dock site's origin — so a panel never knows where on screen it is, and a panel moved to another dock behaves identically. button is 0 for the primary; a context menu is 2, as every platform spells it.