| import GlobalEvents from "/app/js/common/EventCaller.js"; | import GlobalEvents from "/app/js/common/EventCaller.js"; | ||||
| import {NESPalette} from "/app/js/models/NESPalette.js"; | |||||
| import NESPalette from "/app/js/models/NESPalette.js"; | |||||
| const ATTRIB_NESIDX = "nesidx"; | const ATTRIB_NESIDX = "nesidx"; | ||||
| // The two attributes below MUST BOTH be in the element. | // The two attributes below MUST BOTH be in the element. |
| import Modal from "/app/js/ui/Modal.js"; | import Modal from "/app/js/ui/Modal.js"; | ||||
| import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.js"; | import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.js"; | ||||
| import CTRLPainter from "/app/js/ctrls/CTRLPainter.js"; | import CTRLPainter from "/app/js/ctrls/CTRLPainter.js"; | ||||
| import {NESPalette} from "/app/js/models/NESPalette.js"; | |||||
| import NESPalette from "/app/js/models/NESPalette.js"; | |||||
| function on_palette_changed(e){ | function on_palette_changed(e){ | ||||
| if (e.type == "ALL"){ | if (e.type == "ALL"){ |
| * Object for manipulating the eight NES palettes. | * Object for manipulating the eight NES palettes. | ||||
| * @extends EventCaller | * @extends EventCaller | ||||
| */ | */ | ||||
| export class NESPalette extends EventCaller{ | |||||
| export default class NESPalette extends EventCaller{ | |||||
| constructor(){ | constructor(){ | ||||
| super(); | super(); | ||||
| this.__BGColor = 63; // Index to the background color ALL palettes MUST share. | this.__BGColor = 63; // Index to the background color ALL palettes MUST share. |