Difference between revisions of "Design Document board18New Page"
(→The Available Game Box Table: add WIKI Links for BOARD18 WEB Pages) |
(second part of the rewrite for version 2.6.8) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Design Document Index}} | __NOTOC__ | ||
{{ReleaseNotice|2.6}}{{Design Document Index}} | |||
{{WIKI Links for BOARD18 WEB Pages}} | |||
Selecting "Make New Game" from the main menu in the board18Main.php page | Selecting "Make New Game" from the main menu in the board18Main.php page | ||
causes the board18New.php page to be displayed.<br> | causes the board18New.php page to be displayed. <br>This page can be used to create a new BOARD18 game. | ||
This page can be used to create a new BOARD18 game. | |||
Most of the JavaScript logic for | '''Most of the JavaScript logic for board18New is in the [[Board18New1|scripts/board18New1.js]] and the [[Board18New2|scripts/board18New2.js]] files.''' | ||
The board18New.php page also uses the scripts/board18com.js file and some other open source JavaScript files.<br> | The board18New.php page also uses the scripts/board18com.js file and some other open source JavaScript files.<br> | ||
Style is supplied by the style/board18New.css and the style/board18com.css files. | Style is supplied by the style/board18New.css and the style/board18com.css files. | ||
== Start a New Game Session == | |||
To start a new game session, one must fill in the fields in the '''New Game Form''' that is displayed at the top of the "RightOfPage" division.<br> | |||
Clicking on a game box in the Available Game Box Table will enter that game box ID into the game box field on this form.<br> | |||
The active player is automatically entered into the first player field on this form.<br> | |||
Clicking on a player in the Players Table will enter that player ID in the next player field on this form.<br> | |||
When the form is submitted, the fields are verified and then an AJAX call is made to the php/createGame.php program. | |||
== | == Game Box List == | ||
When entered board18New.php | When entered board18New.php performs an AJAX call to the boxGetAll.php function to get and display a list of the game boxes that are available for play. | ||
This list is directly below the '''New Game Form'''. The player must choose a game box from this list. | |||
Clicking on a row on this list will copy the Box ID for that game into the form. | |||
== | == List Display Selection Controls == | ||
The <span style="color: Fuchsia">list display selection controls </span> in each of the list forms can be used | |||
''' | to switch between lists and also to filter the box list via the '''Box Name'''<br> | ||
Any portion of a box name can be entered in the '''Filter Game Box Name By''' field. | |||
an AJAX call | |||
== Player Lists == | |||
board18New can perform an AJAX call to the playerSort.php | |||
to display one of three Player Lists. The lists can be sorted by the three displayed fields.<br> | |||
These lists show all of the players known to the server. | |||
<span style="color: Fuchsia"> | |||
Clicking on a Player ID will add that player to the form.</span> | |||
[[Category:Design]] | [[Category:Design]] |
Latest revision as of 08:53, 28 August 2020
This page has been updated to comply with Release 2.6.x of BOARD18. |
Design Document edit | |
Selecting "Make New Game" from the main menu in the board18Main.php page
causes the board18New.php page to be displayed.
This page can be used to create a new BOARD18 game.
Most of the JavaScript logic for board18New is in the scripts/board18New1.js and the scripts/board18New2.js files.
The board18New.php page also uses the scripts/board18com.js file and some other open source JavaScript files.
Style is supplied by the style/board18New.css and the style/board18com.css files.
Start a New Game Session
To start a new game session, one must fill in the fields in the New Game Form that is displayed at the top of the "RightOfPage" division.
Clicking on a game box in the Available Game Box Table will enter that game box ID into the game box field on this form.
The active player is automatically entered into the first player field on this form.
Clicking on a player in the Players Table will enter that player ID in the next player field on this form.
When the form is submitted, the fields are verified and then an AJAX call is made to the php/createGame.php program.
Game Box List
When entered board18New.php performs an AJAX call to the boxGetAll.php function to get and display a list of the game boxes that are available for play. This list is directly below the New Game Form. The player must choose a game box from this list. Clicking on a row on this list will copy the Box ID for that game into the form.
List Display Selection Controls
The list display selection controls in each of the list forms can be used
to switch between lists and also to filter the box list via the Box Name
Any portion of a box name can be entered in the Filter Game Box Name By field.
Player Lists
board18New can perform an AJAX call to the playerSort.php
to display one of three Player Lists. The lists can be sorted by the three displayed fields.
These lists show all of the players known to the server.
Clicking on a Player ID will add that player to the form.