Commit 74e6eb8d by oriol gomez Sentis

meow

parent 2a8b2b24
No preview for this file type
No preview for this file type
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -60,6 +60,7 @@ game.music.play();
var mainItems=new Array();
mainItems.push(new MenuItem(0,strings[lang].start));
mainItems.push(new MenuItem(1,strings[lang].stats));
var mainMenu=new Menu("main",mainItems);
mainMenu.run(function(event) {
switch(event.selected){
......
"use strict";
class Menu {
export default class Menu {
constructor(name, menuData) {
this.menuData = menuData;
this.cursor = 0;
......@@ -218,4 +218,3 @@ class Menu {
}
}
export {Menu}
\ No newline at end of file
"use strict";
var MenuTypes={
export var MenuTypes={
NORMAL:0,
SELECTOR:1,
SLIDER:2,
EDIT:3
}
class MenuItem {
export class MenuItem {
constructor(id, name) {
this.name = name;
this.id = id;
......@@ -126,5 +126,3 @@ class EditItem extends MenuItem {
}
export {MenuItem}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment