Skip to main content

ShopScreenFunctions

Hierarchy

Index

Properties

optionalinheritedClick

Called if the user clicks on the canvas

@param

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

@param

The event that triggered this

optionalinheritedKeyUp

Called if the user releases a pressed key

@param

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

@param

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

@param

The event that triggered this

optionalinheritedMouseUp

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

@param

The event that triggered this

optionalinheritedMouseWheel

Called if the user moves the mouse wheel on the canvas

@param

The event that triggered this

optionalinheritedPaste

Called if the user pastes some content

@param

The event that triggered this

optionalinheritedResize

Called when screen size or position changes or after screen load

@param

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

optionalinheritedRun

Called each frame

@param

The current time for frame

optionalinheritedUnload

Unload?: VoidHandler

Called when this screen is being replaced

Methods

Draw

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

    Returns void