Browse Source

CTRLPalettes now listens for a 'set_palette_mode' event to determine which set of four palettes to display.

dev-bank
Bryan Miller 5 years ago
parent
commit
ecd4f4193d
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      app/js/ctrls/CTRLPalettes.js

+ 8
- 0
app/js/ctrls/CTRLPalettes.js View File

@@ -152,6 +152,14 @@ class CTRLPalettes{
}
}
GlobalEvents.listen("set_app_palette", handle_set_app_palette);

var handle_palettemode = (function(mode){
if (mode === 0 || mode ===1){
this.__mode = mode;
SetColorPaletteEls(this.__mode, this.__NESPalette);
}
}).bind(this);
GlobalEvents.listen("set_palette_mode", handle_palettemode);
}

get palette(){

Loading…
Cancel
Save