Espruino/libs/js/pixljs/E_showMenu.min.js
2023-06-13 09:22:21 +01:00

2 lines
667 B
JavaScript

(function(a){Pixl.btnWatches&&(Pixl.btnWatches.forEach(clearWatch),Pixl.btnWatches=void 0);g.clear();g.flip();if(a){a[""]||(a[""]={});g.setFontBitmap();g.setFontAlign(-1,-1,0);var c=g.getWidth()-9,d=g.getHeight();a[""].x=9;a[""].x2=c-2;a[""].preflip=function(){g.drawImage(E.toString(8,8,1,16,56,124,254,16,16,16,16),0,4);g.drawImage(E.toString(8,8,1,16,16,16,16,254,124,56,16),0,d-12);g.drawImage(E.toString(8,8,1,0,8,12,14,255,14,12,8),c+1,d-12)};var b=require("graphical_menu").list(g,
a);Pixl.btnWatches=[setWatch(function(){b.move(-1)},BTN1,{repeat:1}),setWatch(function(){b.move(1)},BTN4,{repeat:1}),setWatch(function(){b.select()},BTN3,{repeat:1})];return b}})