Update app.js

master
Andy Smy 2025-04-19 21:04:46 +01:00 committed by GitHub
parent 0243da6c01
commit ce691968f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 1 deletions

View File

@ -209,4 +209,16 @@ var menuItems = {
}
};
countdownDebounce = true;
var menu = E.showMenu(menuItems);
//var menu = E.showMenu(menuItems);
var scrollMenuItems =[
"Play", "Wicket"
];
var scrollMenu = E.showScroller({
h : 60, c : 2,
draw : (idx, r) => {
g.setBgColor((idx&1)?"#000":"#333").clearRect(r.x,r.y,r.x+r.w-1,r.y+r.h-1);
g.setFont("6x8:2").drawString(scrollMenuItems[idx],r.x+10,r.y+4);
},
select : (idx) => console.log("You selected ", idx)
});