Browse Source

Added ui for NESBank tile view.

dev
Bryan Miller 5 years ago
parent
commit
1b5c724723
3 changed files with 6 additions and 1 deletions
  1. +4
    -0
      app/js/ctrls/CTRLBankTools.js
  2. +1
    -1
      app/js/ctrls/CTRLIO.js
  3. +1
    -0
      views/ctrlpainter_bank.html

+ 4
- 0
app/js/ctrls/CTRLBankTools.js View File

@@ -24,6 +24,8 @@ function OpenControls(){
case NESBank.ACCESSMODE_1K:
ELSel.value = "1K"; break;
break;
case NESBank.ACCESSMODE_1T:
ElSel.value = "1T"; break;
}

if (ELSel.value !== "8K"){
@@ -68,6 +70,8 @@ function HANDLE_ModeChange(){
SURF.access_mode = NESBank.ACCESSMODE_2K; break;
case "1K":
SURF.access_mode = NESBank.ACCESSMODE_1K; break;
case "1T":
SURF.access_mode = NESBank.ACCESSMODE_1T; break;
}
if (SURF.access_mode !== NESBank.ACCESSMODE_8K){
ELLab.classList.remove("hidden");

+ 1
- 1
app/js/ctrls/CTRLIO.js View File

@@ -54,7 +54,7 @@ function RequestDownload(filename, datblob){
body.appendChild(a);
a.click();
setTimeout(function(){ // fixes firefox html removal bug
window.URL.revokeObjectURL(url);
window.URL.revokeObjectURL(a.href);
a.remove();
}, 500);
}

+ 1
- 0
views/ctrlpainter_bank.html View File

@@ -6,6 +6,7 @@
<option value="4K">4K</option>
<option value="2K">2K</option>
<option value="1K">1K</option>
<option value="1T">Tile</option>
</select>
</label>


Loading…
Cancel
Save