mirror of
https://github.com/FullScreenShenanigans/MenuGraphr.git
synced 2026-08-12 02:18:35 -07:00
Made createMenu return IMenu
This commit is contained in:
Vendored
+1
-1
@@ -213,7 +213,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): IThing;
|
||||
createChild(name: string, schema: IMenuChildSchema): void;
|
||||
createMenuWord(name: string, schema: IMenuWordSchema): void;
|
||||
createMenuThing(name: string, schema: IMenuThingSchema): IThing;
|
||||
|
||||
@@ -115,7 +115,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),
|
||||
@@ -150,6 +150,8 @@ module MenuGraphr {
|
||||
}
|
||||
|
||||
this.GameStarter.proliferate(menu, attributes);
|
||||
|
||||
return menu;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user