Generate overview based on subproject size
This commit is contained in:
parent
4053961357
commit
9790361f24
9 changed files with 109 additions and 24 deletions
17
src/scenes/DetailScene.ts
Normal file
17
src/scenes/DetailScene.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import { mp5 } from '../../main';
|
||||
import store from '../store';
|
||||
import { Scenes } from './scenes';
|
||||
|
||||
export class DetailScene {
|
||||
constructor() {}
|
||||
|
||||
draw() {
|
||||
mp5.background(100);
|
||||
}
|
||||
|
||||
onSceneClick() {
|
||||
console.log('Click on detail scene');
|
||||
console.log('Changing back to overview');
|
||||
store.setState({ currentScene: Scenes.OVERVIEW });
|
||||
}
|
||||
}
|
||||
Reference in a new issue