public ProgressBar(Texture2D pixelTexture, SpriteFont font)
 {
     //this.BarTexture = pixelTexture;
     this.ProgressionTexture = pixelTexture;
     this.BackgroundTexture  = pixelTexture;
     this.Font  = font;
     _borderBox = new BorderBox(pixelTexture);
 }
Beispiel #2
0
        public Tooltip(Texture2D pixelTexture, SpriteFont font)
        {
            _box = new BorderBox(pixelTexture)
            {
                BorderBoxInfo = ControlConstants.TOOLTIP_BOX_SIZE
            };

            _text = new TextBox(font)
            {
                TextBoxInfo = ControlConstants.TOOLTIP_TEXT
            };

            Show = false;
        }