//TODO: pritaikyti kintanciam teksturos dydziui public override void Draw(SpriteBatch spriteBatch) { Rectangle destinationRectangle = new Rectangle((int)position.X, (int)position.Y, (int)size.X, (int)size.Y); if (hasFocus) { spriteBatch.Draw( buttonTexture, destinationRectangle, Color.White); buttonSelected.Draw(spriteBatch); } else { spriteBatch.Draw( buttonTexture, destinationRectangle, Color.White); } }