Beispiel #1
0
        public PanelMenu(Screen parent, Vector2 position, Texture2D texture, Player player) : base(parent, position, texture)
        {
            showInfoWindow   = new ShowInfo(parent, new Vector2(MainGame.ScreenX - 200, 5), TexturesManager.Window, player);
            infoPlayerButton = new Button(position, TexturesManager.InfoButton);

            infoPlayerButton.MouseClick += OnInfoPlayerMouseClick;
        }
Beispiel #2
0
        public PanelMenu(Screen parent, Vector2 position, Texture2D texture,Player player)
            : base(parent, position, texture)
        {
            showInfoWindow = new ShowInfo(parent, new Vector2(MainGame.ScreenX - 200, 5), TexturesManager.Window ,player);
            infoPlayerButton = new Button(position, TexturesManager.InfoButton);

            infoPlayerButton.MouseClick += OnInfoPlayerMouseClick;
        }