示例#1
0
        public InterfaceBar(int max, int value, int width, int height, Vector2 position,TypeBar tb , PlayType pt)
            : base()
        {
            percent = 1;
            this.type = tb;
            this.max = max;
            this.value = value;
            this.width = width;
            this.initwidth = width;
            this.initheight = height;
            this.height = height;
            this.position = position;
            this.gametype = pt;
            area = new Rectangle(Convert.ToInt32(position.X), Convert.ToInt32(position.Y), width, height);

            actualise();
        }
示例#2
0
 public Bar(TypeBar _typebar, int _valuebar)
 {
     typebar  = _typebar;
     valuebar = _valuebar;
 }