Explorar el Código

Fixed an emitted event name in NESPalette

dev-tmpl
Bryan Miller hace 7 años
padre
commit
5c66e788f0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      app/js/NESPalette.js

+ 1
- 1
app/js/NESPalette.js Ver fichero

this.emit("palettes_changed", {type:"ALL", cindex:0}); this.emit("palettes_changed", {type:"ALL", cindex:0});
} else { } else {
this.__palette[(p*3) + (pci-1)] = sci; this.__palette[(p*3) + (pci-1)] = sci;
this.emit("palettes_changes", {type:(p < 4) ? "TILE" : "SPRITE", pindex:p, cindex:pci});
this.emit("palettes_changed", {type:(p < 4) ? "TILE" : "SPRITE", pindex:p, cindex:pci});
} }
return this; return this;
} }

Cargando…
Cancelar
Guardar