ShopScreenFunctions
Hierarchy
- Omit<Partial<ScreenFunctions>, Draw>
- ShopScreenFunctions
Index
Properties
optionalClick
Coords
Coordinates associated with a particular to-be drawn/clicked element
optionalExit
Called when user presses Esc
optionalKeyDown
Called if the the user presses any key
optionalKeyUp
Called if the user releases a pressed key
optionalLoad
Called when screen is loaded using CommonSetScreen
Mode
A set of shop modes for which the screen functions must be active
optionalMouseDown
Called if the user presses the mouse button or touches the touchscreen on the canvas
optionalMouseMove
Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas
optionalMouseUp
Called if the user releases the mouse button or the touchscreen on the canvas
optionalMouseWheel
Called if the user moves the mouse wheel on the canvas
optionalResize
Called when screen size or position changes or after screen load
optionalRun
Called each frame
optionalUnload
Called when this screen is being replaced
Methods
Draw
Parameters
rest...coords: RectTuple
Returns void
Called if the user clicks on the canvas
The event that triggered this