Browse Source

Reorganized files. Adjusted imports to match new locations.

dev-tmpl
Bryan Miller 6 years ago
parent
commit
6b15932ff0
8 changed files with 11 additions and 11 deletions
  1. +0
    -0
      app/js/common/EventCaller.js
  2. +0
    -0
      app/js/common/Utils.js
  3. +2
    -2
      app/js/ctrls/CTRLPainter.js
  4. +2
    -2
      app/js/ctrls/CTRLPalettes.js
  5. +4
    -4
      app/js/main.js
  6. +1
    -1
      app/js/models/NESPalette.js
  7. +1
    -1
      app/js/ui/Emitters.js
  8. +1
    -1
      app/js/ui/Modal.js

app/js/EventCaller.js → app/js/common/EventCaller.js View File


app/js/Utils.js → app/js/common/Utils.js View File


app/js/ui/CTRLPainter.js → app/js/ctrls/CTRLPainter.js View File

@@ -1,5 +1,5 @@
import Utils from "/app/js/Utils.js";
import GlobalEvents from "/app/js/EventCaller.js";
import Utils from "/app/js/common/Utils.js";
import GlobalEvents from "/app/js/common/EventCaller.js";

const EL_CANVAS_ID = "painter";


app/js/ui/CTRLPalettes.js → app/js/ctrls/CTRLPalettes.js View File

@@ -1,5 +1,5 @@
import GlobalEvents from "/app/js/EventCaller.js";
import {NESPalette} from "/app/js/NESPalette.js";
import GlobalEvents from "/app/js/common/EventCaller.js";
import {NESPalette} from "/app/js/models/NESPalette.js";

const ATTRIB_NESIDX = "nesidx";
// The two attributes below MUST BOTH be in the element.

+ 4
- 4
app/js/main.js View File

@@ -1,10 +1,10 @@
import GlobalEvents from "/app/js/EventCaller.js";
import GlobalEvents from "/app/js/common/EventCaller.js";
import EmitterElements from "/app/js/ui/Emitters.js";
import Modal from "/app/js/ui/Modal.js";
import CTRLPalettes from "/app/js/ui/CTRLPalettes.js";
import CTRLPainter from "/app/js/ui/CTRLPainter.js";
import CTRLPalettes from "/app/js/ctrls/CTRLPalettes.js";
import CTRLPainter from "/app/js/ctrls/CTRLPainter.js";
//import {NESPainter} from "/app/js/NESPainter.js";
import {NESPalette} from "/app/js/NESPalette.js";
import {NESPalette} from "/app/js/models/NESPalette.js";

function on_palette_changed(e){
if (e.type == "ALL"){

app/js/NESPalette.js → app/js/models/NESPalette.js View File

@@ -1,4 +1,4 @@
import {EventCaller} from "/app/js/EventCaller.js"
import {EventCaller} from "/app/js/common/EventCaller.js"

/**
* Object for manipulating the eight NES palettes.

+ 1
- 1
app/js/ui/Emitters.js View File

@@ -1,4 +1,4 @@
import GlobalEvents from "/app/js/EventCaller.js";
import GlobalEvents from "/app/js/common/EventCaller.js";


function handle_emitter(event){

+ 1
- 1
app/js/ui/Modal.js View File

@@ -1,4 +1,4 @@
import GlobalEvents from "/app/js/EventCaller.js";
import GlobalEvents from "/app/js/common/EventCaller.js";


class Modal{

Loading…
Cancel
Save