瀏覽代碼

Added ui for NESBank tile view.

dev
Bryan Miller 5 年之前
父節點
當前提交
1b5c724723
共有 3 個文件被更改,包括 6 次插入1 次删除
  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 查看文件

case NESBank.ACCESSMODE_1K: case NESBank.ACCESSMODE_1K:
ELSel.value = "1K"; break; ELSel.value = "1K"; break;
break; break;
case NESBank.ACCESSMODE_1T:
ElSel.value = "1T"; break;
} }


if (ELSel.value !== "8K"){ if (ELSel.value !== "8K"){
SURF.access_mode = NESBank.ACCESSMODE_2K; break; SURF.access_mode = NESBank.ACCESSMODE_2K; break;
case "1K": case "1K":
SURF.access_mode = NESBank.ACCESSMODE_1K; break; SURF.access_mode = NESBank.ACCESSMODE_1K; break;
case "1T":
SURF.access_mode = NESBank.ACCESSMODE_1T; break;
} }
if (SURF.access_mode !== NESBank.ACCESSMODE_8K){ if (SURF.access_mode !== NESBank.ACCESSMODE_8K){
ELLab.classList.remove("hidden"); ELLab.classList.remove("hidden");

+ 1
- 1
app/js/ctrls/CTRLIO.js 查看文件

body.appendChild(a); body.appendChild(a);
a.click(); a.click();
setTimeout(function(){ // fixes firefox html removal bug setTimeout(function(){ // fixes firefox html removal bug
window.URL.revokeObjectURL(url);
window.URL.revokeObjectURL(a.href);
a.remove(); a.remove();
}, 500); }, 500);
} }

+ 1
- 0
views/ctrlpainter_bank.html 查看文件

<option value="4K">4K</option> <option value="4K">4K</option>
<option value="2K">2K</option> <option value="2K">2K</option>
<option value="1K">1K</option> <option value="1K">1K</option>
<option value="1T">Tile</option>
</select> </select>
</label> </label>



Loading…
取消
儲存