Difference between revisions of "Board18Market4"

From BOARD18 Project WIKI
Jump to navigation Jump to search
(added release note)
(updated release notice)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{ReleaseNoticeX|2.1|Design_Document_board18Market_Page}}
{{ReleaseNoticeX|2.5|Design_Document_board18Market_Page}}
board18Market4.js contains all the functions that
board18Market4.js contains all the functions that
implement the multi token selection logic for cases
implement the multi token selection logic for cases
Line 5: Line 5:


==Function selectToken(event)==
==Function selectToken(event)==
The selectToken function uses the BD18.onBoxList.tokens
The selectToken function uses the BD18.onBoxList.tokens array [[OnBox Object|BD18.onBoxList.tokens array]]
array to display a graphical list of the tokens on a
to display a graphical list of the tokens on a given hex. <br>
given box. This list is displayed on canvas3 which is
This list is displayed on canvas3 and the canvas3 click event is turned on.
defined within the rightofpage division. Clicking on  
 
a token should cause canvas3 to be cleared.
Clicking on a token should select that token and cause canvas3 to be cleared.


==Function hideTknMenu()==
==Function hideTknMenu()==

Latest revision as of 09:04, 28 July 2017

This page has been updated to comply with Release 2.5.x of BOARD18. Go Back

board18Market4.js contains all the functions that implement the multi token selection logic for cases where more than one token is on the same price box.

Function selectToken(event)

The selectToken function uses the BD18.onBoxList.tokens array BD18.onBoxList.tokens array to display a graphical list of the tokens on a given hex.
This list is displayed on canvas3 and the canvas3 click event is turned on.

Clicking on a token should select that token and cause canvas3 to be cleared.

Function hideTknMenu()

The hideTknMenu function resets the canvas3 token menu.

Function delayHideTknMenu()

The delayHideTknMenu function waits 2 seconds before calling the hideTknMenu function.

Function killHideTknMenu()

The killHideTknMenu function stops any delayed calling of the hideTknMenu function.

Function moveSetup(mktok)

The moveSetup function sets a nmber of global [BD18] variables in preparation for a token move or a token position adjustment on the stock market.

Function doTknMenu(event)

The doTknMenu function processes a click on canvas3 This canvas is used to select one of multiple tokens on the same box. The requested function is performed for the selected token.