示例#1
0
 public ProgressBar(Texture2D pixelTexture, SpriteFont font)
 {
     //this.BarTexture = pixelTexture;
     this.ProgressionTexture = pixelTexture;
     this.BackgroundTexture  = pixelTexture;
     this.Font  = font;
     _borderBox = new BorderBox(pixelTexture);
 }
示例#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;
        }