Ejemplo n.º 1
0
        void AddAppearenceImage(string backgroundImagePath, string highlightBackgroundImagePath)
        {
            if (highlightBackground != null)
            {
                background.Enabled = false;
                highlightBackground.Enabled = false;
            }

            if (highlightBackgroundImage != null)
            {
                highlightBackgroundImage.SetImage(highlightBackgroundImagePath);
                backgroundImage.SetImage(backgroundImagePath);
                backgroundImage.Enabled = true;
                backgroundImage.MatchTextureBounds(this);
                return;
            }

            highlightBackgroundImage = appearence.AddAppearence<Picture>("highlight", new Picture(highlightBackgroundImagePath));
            highlightBackgroundImage.Enabled = false;

            backgroundImage = appearence.AddAppearence<Picture>("picture", new Picture(backgroundImagePath));

            backgroundImage.MatchTextureBounds(this);
        }
Ejemplo n.º 2
0
 public void SetPictureRenderingOption(Picture.RenderOptions option)
 {
     backgroundImage.options = option;
     highlightBackgroundImage.options = option;
 }