From 09c6d6fbb1d7c7a68701f82d0f997304d46bdf94 Mon Sep 17 00:00:00 2001 From: Will Scullin Date: Tue, 20 Apr 2021 17:42:32 -0700 Subject: [PATCH] Options modal (#75) Refactor Options modal, webgl scanline, restore `Apple2.apple2`, other minor fixes. --- apple2js.html | 91 ------ apple2jse.html | 87 ------ css/apple2.css | 5 +- jest.config.js | 5 +- js/canvas.ts | 17 + js/entry2.js | 5 +- js/entry2e.js | 5 +- js/gl.ts | 11 +- js/main2.js | 2 - js/main2e.js | 2 - js/prefs.ts | 2 + js/ui/apple2.ts | 294 ++++-------------- js/ui/audio.ts | 47 ++- js/ui/joystick.ts | 104 +++++++ js/ui/keyboard.ts | 69 ++++ js/ui/options_modal.ts | 178 +++++++++++ js/ui/screen.ts | 85 +++++ js/ui/system.ts | 98 ++++++ js/util.ts | 11 +- js/videomodes.ts | 1 + package-lock.json | 294 +++++++++++++++++- package.json | 4 +- .../__snapshots__/options_modal.spec.ts.snap | 64 ++++ test/js/ui/options_modal.spec.ts | 138 ++++++++ tsconfig.json | 8 +- webpack.config.js | 2 +- 26 files changed, 1168 insertions(+), 461 deletions(-) create mode 100644 js/ui/joystick.ts create mode 100644 js/ui/options_modal.ts create mode 100644 js/ui/screen.ts create mode 100644 js/ui/system.ts create mode 100644 test/js/ui/__snapshots__/options_modal.spec.ts.snap create mode 100644 test/js/ui/options_modal.spec.ts diff --git a/apple2js.html b/apple2js.html index 3f0b9b2..7eb7950 100644 --- a/apple2js.html +++ b/apple2js.html @@ -135,97 +135,6 @@
-

Type

- -

CPU

- -

Joystick

- -

Monitor

- -

Sound

-