changeset 191:4017a8f24f7f

More work on the launcher.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Aug 2018 16:52:24 +0300
parents f79958358f16
children 0dec83e42d90
files mpui.js
diffstat 1 files changed, 26 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/mpui.js	Thu Aug 23 16:38:52 2018 +0300
+++ b/mpui.js	Thu Aug 23 16:52:24 2018 +0300
@@ -7,19 +7,23 @@
 
 var mpMachines =
 [
-  [   0, "C64 hires"          , true ],
-  [  10, "C64 multicolor"     , true ],
-  [   6, "ZX Spectrum"        , true ],
-  [   5, "MSX1 mode 2"        , true ],
-  [   9, "Plus4 hires"        , true ],
-  [  19, "Plus4 multicolor"   , true ],
-  [   2, "Amstrad CPC mode 0" , true ],
+  [   0, "C64 hires"          , ],
+  [  10, "C64 multicolor"     , ],
+  [   6, "ZX Spectrum"        , ],
+  [   5, "MSX1 mode 2"        , ],
+  [   9, "Plus4 hires"        , ],
+  [  19, "Plus4 multicolor"   , ],
+  [   2, "Amstrad CPC mode 0" , ],
 
-/*
-  [  32, "C64 no limit"       , false ],
-  [  20, "C64 FLI hires"      , false ],
-  [  21, "C64 FLI multicolor" , false ],
-*/
+  [  -1, "Experimental/unsupported modes below" , ],
+
+  [  32, "C64 no limit"       , ],
+  [  20, "C64 FLI hires"      , ],
+  [  21, "C64 FLI multicolor" , ],
+  [   7, "Timex"              , ],
+  [   8, "JR200"              , ],
+  [  99, "BK-0010"            , ],
+//  [  , "" , false ],
 ];
 
 
@@ -27,7 +31,8 @@
 [
   [ -1, -1 ],
   [ 1200, 800 ],
-  [ 1600, 1200 ],
+  [ 1600, 800 ],
+  [ 1600, 1000 ],
 ];
 
 
@@ -141,7 +146,14 @@
 
 
   mdiv.appendChild(stCreateSelect("machineID", mpMachines,
-    function (vn, vopt, val) { vopt.value = val[0]; vopt.textContent = val[1]; }));
+    function (vn, vopt, val) {
+      if (val[0] < 0)
+        vopt.disabled = true;
+      else
+        vopt.value = val[0];
+
+      vopt.textContent = val[1];
+    }));
 
   mobj = stCE("button", "selectID");
   mobj.textContent = "RUN";