You've already forked FullScreenPokemon
mirror of
https://github.com/FullScreenShenanigans/FullScreenPokemon.git
synced 2026-04-28 12:58:40 -07:00
Brought in MenuGraphr with createMenu: IMenu
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -220,7 +220,7 @@ declare module MenuGraphr {
|
||||
getExistingMenu(name: string): IMenu;
|
||||
getAliases(): { [i: string]: string };
|
||||
getReplacements(): { [i: string]: string };
|
||||
createMenu(name: string, attributes?: IMenuSchema): void;
|
||||
createMenu(name: string, attributes?: IMenuSchema): IMenu;
|
||||
createChild(name: string, schema: IMenuChildSchema): void;
|
||||
createMenuWord(name: string, schema: IMenuWordSchema): void;
|
||||
createMenuThing(name: string, schema: IMenuThingSchema): IThing;
|
||||
@@ -367,7 +367,7 @@ module MenuGraphr {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
createMenu(name: string, attributes?: IMenuSchema): void {
|
||||
createMenu(name: string, attributes?: IMenuSchema): IMenu {
|
||||
var schemaRaw: IMenuSchema = this.GameStarter.proliferate({}, this.schemas[name]),
|
||||
schema: IMenuSchema = this.GameStarter.proliferate(schemaRaw, attributes),
|
||||
menu: IMenu = this.GameStarter.ObjectMaker.make("Menu", schema),
|
||||
@@ -402,6 +402,8 @@ module MenuGraphr {
|
||||
}
|
||||
|
||||
this.GameStarter.proliferate(menu, attributes);
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user