Skip to main content

ShopScreenFunctions

Hierarchy

Index

Properties

optionalinheritedClick

Called if the user clicks on the canvas

The event that triggered this

Coords

Coords: RectTuple

Coordinates associated with a particular to-be drawn/clicked element

optionalinheritedExit

Called when user presses Esc

optionalinheritedKeyDown

Called if the the user presses any key

The event that triggered this

optionalinheritedKeyUp

Called if the user releases a pressed key

The event that triggered this

optionalinheritedLoad

Called when screen is loaded using CommonSetScreen

Mode

Mode: Set<ShopMode>

A set of shop modes for which the screen functions must be active

optionalinheritedMouseDown

MouseDown?: MouseEventListener

Called if the user presses the mouse button or touches the touchscreen on the canvas

The event that triggered this

optionalinheritedMouseMove

MouseMove?: MouseEventListener

Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas

The event that triggered this

optionalinheritedMouseUp

Called if the user releases the mouse button or the touchscreen on the canvas

The event that triggered this

optionalinheritedMouseWheel

Called if the user moves the mouse wheel on the canvas

The event that triggered this

optionalinheritedPaste

Called if the user pastes some content

The event that triggered this

optionalinheritedResize

Called when screen size or position changes or after screen load

If the reason for call was load (true) or window resize (false)

optionalinheritedRun

Called each frame

The current time for frame

optionalinheritedUnload

Unload?: VoidHandler

Called when this screen is being replaced

Methods

Draw

  • Draw(...coords): void
  • Parameters

    Returns void