| @@ -1,5 +1,5 @@ | |||
| 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"; | |||
| // The two attributes below MUST BOTH be in the element. | |||
| @@ -4,7 +4,7 @@ import Input from "/app/js/ui/Input.js"; | |||
| import Modal from "/app/js/ui/Modal.js"; | |||
| import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.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){ | |||
| if (e.type == "ALL"){ | |||
| @@ -4,7 +4,7 @@ import {EventCaller} from "/app/js/common/EventCaller.js" | |||
| * Object for manipulating the eight NES palettes. | |||
| * @extends EventCaller | |||
| */ | |||
| export class NESPalette extends EventCaller{ | |||
| export default class NESPalette extends EventCaller{ | |||
| constructor(){ | |||
| super(); | |||
| this.__BGColor = 63; // Index to the background color ALL palettes MUST share. | |||