Beispiel #1
0
        public InGameMenuScreen()
        {
            Anchor       = global::Graphics.Orientation.Center;
            ControlBox   = false;
            LargeWindow  = true;
            Padding      = new System.Windows.Forms.Padding(20, 20, 20, 20);
            Localization = new Common.StringLocalizationStorage();

            AddChild(topBar);
            AddChild(new Control
            {
                Background = new StretchingImageGraphic
                {
                    Texture = new TextureConcretizer
                    {
                        TextureDescription = new Graphics.Software.Textures.SingleColorTexture(System.Drawing.Color.FromArgb(50, 255, 255, 255))
                    },
                    SizeMode = SizeMode.AutoAdjust,
                },
                Dock = System.Windows.Forms.DockStyle.Top,
                Size = new Vector2(0, 1)
            });
            AddChild(bottomBar);
            AddChild(new Control
            {
                Background = new StretchingImageGraphic
                {
                    Texture = new TextureConcretizer
                    {
                        TextureDescription = new Graphics.Software.Textures.SingleColorTexture(System.Drawing.Color.FromArgb(50, 255, 255, 255))
                    },
                    SizeMode = SizeMode.AutoAdjust,
                },
                Dock = System.Windows.Forms.DockStyle.Bottom,
                Size = new Vector2(0, 1)
            });
            AddChild(innerControl);

            topBar.AddChild(nameTextBox);

            innerControl.AddChild(objectives);
            objectives.AddChild(objectivesTextBox);
            objectives.AddChild(infoTextBox);
        }
        public InGameMenuScreen()
        {
            Anchor = global::Graphics.Orientation.Center;
            ControlBox = false;
            LargeWindow = true;
            Padding = new System.Windows.Forms.Padding(20, 20, 20, 20);
            Localization = new Common.StringLocalizationStorage();

            AddChild(topBar);
            AddChild(new Control
            {
                Background = new StretchingImageGraphic
                {
                    Texture = new TextureConcretizer
                    {
                        TextureDescription = new Graphics.Software.Textures.SingleColorTexture(System.Drawing.Color.FromArgb(50, 255, 255, 255))
                    },
                    SizeMode = SizeMode.AutoAdjust,
                },
                Dock = System.Windows.Forms.DockStyle.Top,
                Size = new Vector2(0, 1)
            });
            AddChild(bottomBar);
            AddChild(new Control
            {
                Background = new StretchingImageGraphic
                {
                    Texture = new TextureConcretizer
                    {
                        TextureDescription = new Graphics.Software.Textures.SingleColorTexture(System.Drawing.Color.FromArgb(50, 255, 255, 255))
                    },
                    SizeMode = SizeMode.AutoAdjust,
                },
                Dock = System.Windows.Forms.DockStyle.Bottom,
                Size = new Vector2(0, 1)
            });
            AddChild(innerControl);

            topBar.AddChild(nameTextBox);

            innerControl.AddChild(objectives);
            objectives.AddChild(objectivesTextBox);
            objectives.AddChild(infoTextBox);
        }