This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

danpost
danpost presents ...

2019/6/21

Shop Support Class

Along with the Shop (extends my Dialog class) is a ShopWorld class (extends World) which serves a dual purpose. It double checks input which helps in coding and it appropriately sizes the Dialog window. Resetting the scenario will cause the list of items to be randomly selected.

NOTE: There is an 80% buy-back price in effect. This value can be easily set before creating a Shop object.

WORKING THE DIALOG:

'enter' works like a tab key to move the selector from item to item.
Arrows (left/right) will transfer one of the selected items in or out of the cart.
Clicking on an item will select it (moves selector there).
Clicking on in-stock or cart quantities will transfer one of that item to or from the cart regardless of the selectors position.
'p' and 'c' are accelerator keys for the two buttons.

1357 views / 676 in the last 7 days

Tags: demo danpost support dialog shop

Your browser does not support the canvas tag.
A new version of this scenario was uploaded on 2019-06-21 14:33:17 UTC
A new version of this scenario was uploaded on 2019-06-21 14:48:33 UTC
danpostdanpost

2019/6/21

Apparently, changing worlds from a constructor does not go well with HTML5.
A new version of this scenario was uploaded on 2019-06-21 14:54:17 UTC

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.