Пример #1
0
        public UIInfectionDisplay(World world)
        {
            _city = world;

            _survivorBar = new UISprite(new Sprite(0.5f, 1.0f, Color4.Pink));
            _zombieBar = new UISprite(new Sprite(0.5f, 1.0f, Color4.LightGreen));
            _zombieBar.Left = 0.5f;

            AddChild(_survivorBar);
            AddChild(_zombieBar);

            UpdateBars();
        }
Пример #2
0
 public UIPanel(Vector2 size, Vector2 position)
     : base(size, position)
 {
     _backSprite = new UISprite(new Sprite(size.X, size.Y, OpenTK.Graphics.Color4.White));
     AddChild(_backSprite);
 }