Explorar el Código

CTRLBankTools now listens for the 'bank_remove_duplicates' event, which will call the NESBank .removeDuplicates().compact()

dev
Bryan Miller hace 5 años
padre
commit
447f65c033
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. +8
    -0
      app/js/ctrls/CTRLBankTools.js

+ 8
- 0
app/js/ctrls/CTRLBankTools.js Ver fichero

@@ -57,6 +57,13 @@ function HANDLE_SurfChange(surf){
}


function HANDLE_RemoveDuplicates(){
if (SURF !== null){
SURF.removeDuplicates().compact();
}
}


function HANDLE_ModeChange(){
if (ELCtrl !== null && SURF !== null){
var val = this.options[this.selectedIndex].value;
@@ -97,6 +104,7 @@ function HANDLE_OffsetChange(){
class CTRLBankTools{
constructor(){
GlobalEvents.listen("change_surface", HANDLE_SurfChange);
GlobalEvents.listen("bank_remove_duplicates", HANDLE_RemoveDuplicates);
}

close(){

Cargando…
Cancelar
Guardar