# HG changeset patch # User Matti Hamalainen # Date 1535032344 -10800 # Node ID 4017a8f24f7f231e597dfe5a36a8957a828ab2db # Parent f79958358f16770dc09a00963c8b2aca048178d1 More work on the launcher. diff -r f79958358f16 -r 4017a8f24f7f mpui.js --- 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";