Bricklayer.Client.Game.CreateMainWindow C# (CSharp) Method

CreateMainWindow() protected method

Creates a new instance of the main UI window
protected CreateMainWindow ( ) : TomShane.Neoforce.Controls.Window
return TomShane.Neoforce.Controls.Window
        protected override Window CreateMainWindow()
        {
            TextureLoader = new TextureLoader(Manager.GraphicsDevice, Content);
            IO.CheckFiles();
            IO.LoadSettings(this);
            IO.LoadContentPacks(this); //Load textures from content pack
            MainWindow = new Interface.MainWindow(Manager);
            MainWindow.FocusGained += MainWindow_FocusGained;
            return MainWindow;
        }