TrueCraft/TrueCraft.Launcher/LauncherWindow.cs

49 lines
1.3 KiB
C#
Raw Normal View History

2015-05-16 11:39:34 -06:00
using System;
using Xwt;
using System.Diagnostics;
using Xwt.Drawing;
2015-06-02 17:39:44 -06:00
using TrueCraft.Launcher.Views;
using TrueCraft.Core;
2015-05-16 11:39:34 -06:00
namespace TrueCraft.Launcher
{
public class LauncherWindow : Window
{
2015-06-02 17:39:44 -06:00
public TrueCraftUser User { get; set; }
2015-05-16 11:39:34 -06:00
public HBox MainContainer { get; set; }
public ScrollView WebScrollView { get; set; }
public WebView WebView { get; set; }
2015-06-02 17:39:44 -06:00
public LoginView LoginView { get; set; }
public MainMenuView MainMenuView { get; set; }
public MultiplayerView MultiplayerView { get; set; }
2015-05-16 11:39:34 -06:00
public LauncherWindow()
{
this.Title = "TrueCraft Launcher";
this.Width = 1200;
2015-05-16 11:39:34 -06:00
this.Height = 576;
2015-06-02 17:39:44 -06:00
this.User = new TrueCraftUser();
2015-05-16 11:39:34 -06:00
MainContainer = new HBox();
WebScrollView = new ScrollView();
WebView = new WebView("http://truecraft.io/updates");
2015-06-02 17:39:44 -06:00
LoginView = new LoginView(this);
MultiplayerView = new MultiplayerView(this);
2015-05-16 11:39:34 -06:00
WebScrollView.Content = WebView;
MainContainer.PackStart(WebScrollView, true);
2015-06-02 17:39:44 -06:00
MainContainer.PackEnd(LoginView);
2015-05-16 11:39:34 -06:00
this.Content = MainContainer;
}
void ClientExited()
{
this.Show();
this.ShowInTaskbar = true;
}
}
}