コード例 #1
0
        /// <summary>
        /// Event called from cacher agent when the mapset background has been loaded.
        /// </summary>
        private void OnBackgroundLoaded(IMapBackground background)
        {
            if (Mapset == null)
            {
                return;
            }
            if (backgroundAgent.Key != Mapset.Maps[0])
            {
                LoadBackground();
                return;
            }

            // Set highlight color without affecting current alpha.
            SetHighlightColor(background.Highlight);

            // Assign thumbnail image.
            thumbImage.Texture = background.Image;
            if (background.Image != null)
            {
                thumbImage.FillTexture();
                StartAnimation();
            }
        }