Update app.js

master
Andy Smy 2025-04-20 11:14:05 +01:00 committed by GitHub
parent ab53f0eb10
commit a7999f4448
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 3 deletions

View File

@ -220,9 +220,14 @@ function showTossMenu() {
function showMainMenu() {
processing = true;
var scrollMenuItems = [
"Play", "Wicket", "Revoke", "Toss"
];
var scrollMenuItems = ["Play"];
if(overs==0) scrollMenuItems.push("Toss");
if(overs>0) {
scrollMenuItems.push("Wicket");
if(wickets>0) scrollMenuItems.push("Revoke");
}
return E.showScroller({
h : 60, c : scrollMenuItems.length,
draw : (idx, r) => {