mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Main menu and save function to json file implemented.
This commit is contained in:
@@ -2,6 +2,8 @@ const TilorswiftEvent = {
|
||||
FIELD_CLICKED: 'fieldClicked',
|
||||
FIELD_ENTERED: 'fieldEntered',
|
||||
BUTTON_TILE_CLICKED: 'buttonTileClicked',
|
||||
MENU_SAVE_CLICKED: 'menuSaveClicked',
|
||||
SAVED: 'saved',
|
||||
};
|
||||
|
||||
export default TilorswiftEvent;
|
||||
@@ -4,7 +4,6 @@ export default class TilorswiftFieldClickedEvent extends Event
|
||||
{
|
||||
constructor(field, button)
|
||||
{
|
||||
console.log('So kommt der Scheiß hier rein: ' + button);
|
||||
super(TilorswiftEvent.FIELD_CLICKED);
|
||||
|
||||
this.field = field;
|
||||
|
||||
9
tilorswift/js/events/TilorswiftMenuSaveClickedEvent.js
Normal file
9
tilorswift/js/events/TilorswiftMenuSaveClickedEvent.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import TilorswiftEvent from "./TilorswiftEvent.js";
|
||||
|
||||
export default class TilorswiftMenuSaveClickedEvent extends Event
|
||||
{
|
||||
constructor()
|
||||
{
|
||||
super(TilorswiftEvent.MENU_SAVE_CLICKED);
|
||||
}
|
||||
}
|
||||
8
tilorswift/js/events/TilorswiftSavedEvent.js
Normal file
8
tilorswift/js/events/TilorswiftSavedEvent.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import TilorswiftEvent from "./TilorswiftEvent.js";
|
||||
|
||||
export default class TilorswiftSavedEvent extends Event
|
||||
{
|
||||
constructor() {
|
||||
super(TilorswiftEvent.SAVED);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user