|
@@ -7,7 +7,7 @@ class Menu extends PIXI.Container{
|
|
this.stage = app.stage;
|
|
this.stage = app.stage;
|
|
this.buttons = require('./menuConfigs/'+config).default || [];
|
|
this.buttons = require('./menuConfigs/'+config).default || [];
|
|
this.calculatePositions();
|
|
this.calculatePositions();
|
|
- this.buttons.forEach((e,i) => this.addChild(e));
|
|
|
|
|
|
+ this.buttons.forEach((e) => this.addChild(e));
|
|
this.test = "dsa";
|
|
this.test = "dsa";
|
|
this.position.set(app.screen.width/2, app.screen.height/2);
|
|
this.position.set(app.screen.width/2, app.screen.height/2);
|
|
}
|
|
}
|