Beispiel #1
0
        public MainMenuControl()
        {
            Dock = System.Windows.Forms.DockStyle.Fill;
            AddChild(new MenuBackgroundControl());
            AddChild(new GameLogoImage
            {
                Anchor   = Orientation.Center,
                Position = new Vector2(-220, -150)
            });

            AddChild(new SelectProfileControl
            {
                Anchor   = Orientation.Center,
                Position = new Vector2(-200, 100),
            });

            CustomMapControl customMapsControl = new CustomMapControl
            {
                Anchor   = Orientation.Center,
                Position = new Vector2(-200, 290)
            };

            customMapsControl.OpenCustomMap += new Action <string>(customMapsControl_OpenCustomMap);
            AddChild(customMapsControl);

            fader = new Fader {
                State = FadeState.FadedOut
            };
            AddChild(fader);
            Updateable = true;
        }
        public MainMenuControl()
        {
            Dock = System.Windows.Forms.DockStyle.Fill;
            AddChild(new MenuBackgroundControl());
            AddChild(new GameLogoImage
            {
                Anchor = Orientation.Center,
                Position = new Vector2(-220, -150)
            });

            AddChild(new SelectProfileControl
            {
                Anchor = Orientation.Center,
                Position = new Vector2(-200, 100),
            });

            CustomMapControl customMapsControl = new CustomMapControl
            {
                Anchor = Orientation.Center,
                Position = new Vector2(-200, 290)
            };
            customMapsControl.OpenCustomMap += new Action<string>(customMapsControl_OpenCustomMap);
            AddChild(customMapsControl);

            fader = new Fader { State = FadeState.FadedOut };
            AddChild(fader);
            Updateable = true;
        }