protected void onCreate() {
		try {
			Terraria.worlds.add(WorldGen.worldGenList.get(0).generateWorld());
			new SEntityBackgrounds().create();
			
			View view = View.getDefault();
			new SEntityLogo().create(view.pos.x+view.size.x/2f,view.pos.y+80);
			
			main = new GuiMenu();
			main.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Single-player"){
				protected void onButtonPressed() {}
			});
			main.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Multi-player"){
				protected void onButtonPressed() {}
			});
			main.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Settings"){
				protected void onButtonPressed() {
					main.destroy();
					settings.create();
				}
			});
			main.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Mods"){
				protected void onButtonPressed() {
					main.destroy();
					mods.create();
				}
			});
			main.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Exit"){
				protected void onButtonPressed() {
					App.stop();
				}
			});
			
			settings = new GuiMenu();
			settings.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Back"){
				protected void onButtonPressed() {
					settings.destroy();
					main.create();
				}
			});
			
			mods = new GuiMenu();
			for (Mod mod : Terraria.managerMod.getMods()) {
				mods.list.add(new GuiMenuElButtonTextOption<Boolean>(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,mod.getTitle(),Mod.isModLoaded(mod)){
					protected void onButtonPressed() {
						value = !value;
					}
					protected String getValueText() {
						return value ? "On" : "Off";
					}
				});
			}
			mods.list.add(new GuiMenuElButtonText(Terraria.managerFont.get(0),EFontAlign.MiddleCenter,Color.white,"Back"){
				protected void onButtonPressed() {
					mods.destroy();
					main.create();
				}
			});
			
			Vector2f pos = new Vector2f(view.pos.x+view.size.x/2f,view.pos.y+192);
			main.pos = pos.copy();
			settings.pos = pos.copy();
			mods.pos = pos.copy();
			
			main.create();
			
			new Entity(){
				protected void onRender(GraphicsHelper gh) {
					try {
						gh.g().setFont(Terraria.managerFont.get(1));
						Fonts.setFontAlign(Fonts.BottomLeft);
						gh.g().setColor(Color.white);
						Fonts.drawStringShadowed(gh,"Open Terraria Rewrite "+Terraria.version,pos.x,pos.y,Color.black);
						Fonts.resetFontAlign();
					} catch (Exception e) {App.getApp().handle(e);}
				}
			}.create(view.pos.x,view.pos.y+view.size.y);
		} catch (Exception e) {App.getApp().handle(e);}
	}