Перейти к основному содержанию

UI.UIClickEvent

Object where you can specify how the UI element will behave on touch events.

Index

Properties

optionalonClick

onClick?: (position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void

This function will be called when element is short touched.


Type declaration

optionalonLongClick

onLongClick?: (position: Vector, container: ItemContainer | UiAbstractContainer, tileEntity: any, window: IWindow, canvas: Canvas, scale: number) => void

This function will be called when element is long touched.


Type declaration