Exemple #1
0
 public LoadingScreen2(Texture2D Texture, Texture2D BackGround, Viewport ViewPort)
 {
     this.Obj        = Texture;
     this.Background = new Background(BackGround, ViewPort);
     Position        = MinoMusSystem.GetCenter(ViewPort, Texture);
     Rectangle       = MinoMusSystem.newRectangle(Position, 0, Texture.Height);
 }
Exemple #2
0
 public LoadingScreen(Texture2D Bar, Texture2D BackGround, Viewport ViewPort)
 {
     this.Bar        = Bar;
     this.BackGround = new Background(BackGround, ViewPort);
     Position        = MinoMusSystem.GetCenter(ViewPort) - new Vector2(Bar.Width / 2, 0);
     Rectangle       = MinoMusSystem.newRectangle(Position, 0, Bar.Height);
 }
Exemple #3
0
        public SimpleScreen(Texture2D BackgrGround, Button Back, Viewport Viewport)
        {
            Background = new Background(BackgrGround, Viewport);
            this.Back  = Back;

            Back.SetRectangle(MinoMusSystem.newRectangle(new Vector2(Viewport.Width - Back.rectangele.Width - 100, Viewport.Height - Back.rectangele.Height - 50),
                                                         Back.rectangele.Width, Back.rectangele.Height));
        }
Exemple #4
0
        public void Draw(SpriteBatch spriteBatch)
        {
            Background.Draw(spriteBatch);

            spriteBatch.Draw(Obj, Position, null, Color.Red, rotation, MinoMusSystem.GetOrigin(Obj), 1, SpriteEffects.None, 1);
        }