Update app.js

master
Andy Smy 2025-05-09 08:19:46 +01:00 committed by GitHub
parent d8c0f52a53
commit 518bc03f45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -282,8 +282,8 @@ function showMainMenu() {
scrollMenuItems.push("« Back", "Wicket"); scrollMenuItems.push("« Back", "Wicket");
if(wickets>0) scrollMenuItems.push("Recall"); if(wickets>0) scrollMenuItems.push("Recall");
scrollMenuItems.push("Call Time"); scrollMenuItems.push("Call Time");
scrollMenuItems.push("New Inn.");
} }
scrollMenuItems.push("New Inn.");
return E.showScroller({ return E.showScroller({
h : 80, c : scrollMenuItems.length, h : 80, c : scrollMenuItems.length,
@ -304,7 +304,10 @@ function showMainMenu() {
|| scrollMenuItems[idx]=="« Back") resumeGame(); || scrollMenuItems[idx]=="« Back") resumeGame();
if(scrollMenuItems[idx]=="Wicket") incrementWickets(1); if(scrollMenuItems[idx]=="Wicket") incrementWickets(1);
if(scrollMenuItems[idx]=="Recall") incrementWickets(-1); if(scrollMenuItems[idx]=="Recall") incrementWickets(-1);
if(scrollMenuItems[idx]=="New Inn.") newInnings(); if(scrollMenuItems[idx]=="New Inn.") {
newInnings();
menu = showMainMenu();
}
} }
}); });
} }