public UnitPictureBoxRenderer(UnitPictureBox data)
        {
            this.data = data;
            frame = new RectangleShape(data.Scale);
            frame.Position = data.Position;
            frame.FillColor = data.FillColor;

            curentPicture = new Sprite(new Texture(128, 128));
        }
示例#2
0
        public InterfaceBar()
        {
            Size = new Vector2f(800, 4 * 32);
            Position = new Vector2f(0, 640 - 32 * 4);
            FillColor = new Color(127, 127, 127);

            UnitPictureBox = new UnitPictureBox();
            HealthBar = new HealthBar();
            MoveButton = new MoveButton();
            AttackButton = new AttackButton();
        }