ShopScreenFunctions
Hierarchy
- Omit<Partial<ScreenFunctions>, Draw>
- ShopScreenFunctions
Index
Properties
optionalinheritedClick
Coords
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
optionalinheritedKeyUp
Called if the user releases a pressed key
optionalinheritedLoad
Called when screen is loaded using CommonSetScreen
Mode
A set of shop modes for which the screen functions must be active
optionalinheritedMouseDown
Called if the user presses the mouse button or touches the touchscreen on the canvas
optionalinheritedMouseMove
Called if the user moves the mouse cursor or the touch on the touchscreen over the canvas
optionalinheritedMouseUp
Called if the user releases the mouse button or the touchscreen on the canvas
optionalinheritedMouseWheel
Called if the user moves the mouse wheel on the canvas
optionalinheritedPaste
Called if the user pastes some content
optionalinheritedResize
Called when screen size or position changes or after screen load
optionalinheritedRun
Called each frame
optionalinheritedUnload
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