Exemple #1
0
 public void SetActive(bool active)
 {
     this.Active = active;
     if (active)
     {
         Background = TextureGenerator.GetCatalogActive(GameFacade.GraphicsDevice);
     }
     else
     {
         Background = TextureGenerator.GetCatalogInactive(GameFacade.GraphicsDevice);
     }
 }
 public void UpdateHighlight()
 {
     if (Disabled)
     {
         Background = TextureGenerator.GetCatalogDisabled(GameFacade.GraphicsDevice);
     }
     else if (Active || Hovered)
     {
         Background = TextureGenerator.GetCatalogActive(GameFacade.GraphicsDevice);
     }
     else
     {
         Background = TextureGenerator.GetCatalogInactive(GameFacade.GraphicsDevice);
     }
 }