Пример #1
0
        public LauncherWindow()
        {
            this.Title  = "TrueCraft Launcher";
            this.Width  = 1200;
            this.Height = 576;
            this.User   = new TrueCraftUser();

            MainContainer    = new HBox();
            WebScrollView    = new ScrollView();
            WebView          = new WebView("https://truecraft.io/updates");
            LoginView        = new LoginView(this);
            OptionView       = new OptionView(this);
            MultiplayerView  = new MultiplayerView(this);
            SingleplayerView = new SingleplayerView(this);
            InteractionBox   = new VBox();

            using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("TrueCraft.Launcher.Content.truecraft_logo.png"))
                TrueCraftLogoImage = new ImageView(Image.FromStream(stream).WithBoxSize(350, 75));

            WebScrollView.Content = WebView;
            MainContainer.PackStart(WebScrollView, true);
            InteractionBox.PackStart(TrueCraftLogoImage);
            InteractionBox.PackEnd(LoginView);
            MainContainer.PackEnd(InteractionBox);

            this.Content = MainContainer;
        }
Пример #2
0
        public LauncherWindow()
        {
            this.Title  = "TrueCraft Launcher";
            this.Width  = 1200;
            this.Height = 576;
            this.User   = new TrueCraftUser();

            MainContainer    = new HBox();
            WebScrollView    = new ScrollView();
            WebView          = new WebView("http://truecraft.io/updates");
            LoginView        = new LoginView(this);
            OptionView       = new OptionView(this);
            MultiplayerView  = new MultiplayerView(this);
            SingleplayerView = new SingleplayerView(this);

            WebScrollView.Content = WebView;
            MainContainer.PackStart(WebScrollView, true);
            MainContainer.PackEnd(LoginView);

            this.Content = MainContainer;
        }