Exemplo n.º 1
0
 public override void OnRender(RenderTarget Target)
 {
     if (background != null)
     {
         if (!sizeSet && background.IsLoaded)
         {
             Size    = new Vector2(background.Width, background.Height);
             sizeSet = true;
         }
         background.Update(Target.Elapsed);
     }
     Target.DrawSprite(background);
 }
Exemplo n.º 2
0
        internal override void Update(float Elapsed)
        {
            if (!visible)
            {
                return;
            }

            if (background != null)
            {
                background.Update(Elapsed);
            }

            foreach (Window window in windows)
            {
                window.Update(Elapsed);
            }

            base.Update(Elapsed);
        }