Beispiel #1
0
 public ScreenDisplay(Vector2 position, XnaBasics game, SpriteBatch spriteBatch, String label, UserDisplay.StateManipDel onInvoke) : base(game)
 {
     this.screenRect  = new Rectangle((int)position.X, (int)position.Y, DISPWIDTH, DISPHEIGHT);
     this.recordRect  = new Rectangle(screenRect.Left, screenRect.Bottom, screenRect.Width, 20);
     this.spriteBatch = spriteBatch;
     this.invocation  = onInvoke;
     this.label       = label;
 }
Beispiel #2
0
        public Button(Rectangle rect, String label, UserDisplay.StateManipDel action, SpriteBatch batch, Game game) : base(game)
        {
            this.rect        = rect;
            this.action      = action;
            this.label       = label;
            this.spritebatch = batch;

            LoadContent();
        }