Bladeren bron

Fix warnings

Nikatlas 6 jaren geleden
bovenliggende
commit
1a1b2a88f7
6 gewijzigde bestanden met toevoegingen van 3 en 17 verwijderingen
  1. 1 2
      src/Game/app.js
  2. 0 7
      src/Game/misc/Button.js
  3. 0 2
      src/Game/misc/Dialogue.js
  4. 0 3
      src/Game/misc/State.js
  5. 2 2
      src/components/Playground.jsx
  6. 0 1
      src/helpers/Guiable.js

+ 1 - 2
src/Game/app.js

@@ -1,8 +1,7 @@
 import './app.css';
 import * as PIXI from 'pixi.js';
 
-import Router from './Router.js'
-import Menu from './views/Menu';
+import Router from './Router.js';
 
 let DATGUI = require('dat.gui');
 // Polyfill removeFolder

+ 0 - 7
src/Game/misc/Button.js

@@ -4,7 +4,6 @@ import Text from './Text.js';
 import { getParam } from '../../helpers/url';
 
 import GuiableContainer from '../../helpers/Guiable';
-import draggable from '../../helpers/draggable'
 
 const DefaultImageUrl = '/files/assets/ui/woodenbutton.png';
 const DefaultImage = PIXI.Texture.fromImage(DefaultImageUrl);
@@ -17,12 +16,6 @@ class Button extends GuiableContainer{
         } = props;
 
         this.imageURL = image || getParam('imageURL') || DefaultImageUrl;
-        
-
-        let position = {
-            x:0,
-            y:0
-        };
   
         this.addFolder('Button');
         this.addToFolder('Button', this, 'imageURL').onFinishChange((v) => this.loadImage(v));

+ 0 - 2
src/Game/misc/Dialogue.js

@@ -1,5 +1,4 @@
 import * as PIXI from 'pixi.js';
-import Text from './Text.js';
 import { getParam } from '../../helpers/url';
 
 
@@ -11,7 +10,6 @@ class Dialogue extends PIXI.Sprite{
         super(DefaultImage);
         let {
             image,
-            text,
             Gui
         } = props;
 

+ 0 - 3
src/Game/misc/State.js

@@ -1,8 +1,5 @@
 class State {
 
-    constructor(){
-
-    }
 
     setState(data) {
         this.state = {

+ 2 - 2
src/components/Playground.jsx

@@ -10,8 +10,8 @@ class Playground extends Component {
 		super(props);
 		
 		const router = GameLayer.router();
-       	const app = GameLayer.app;
-       	const gui = GameLayer.gui();
+       	// const app = GameLayer.app;
+       	// const gui = GameLayer.gui();
 
        	const route = new Loader(GameLayer);
        	router.addRoute('Loader', route);

+ 0 - 1
src/helpers/Guiable.js

@@ -4,7 +4,6 @@ class GuiableContainer extends PIXI.Container {
     constructor(props) {
         super();
         let {
-            GameLayer,
             Gui
         } = props;