Exemple #1
0
        public override Legacy_UnityImage GetUnityImage(
            Color?backgroundColor  = null,
            string imageIdentifier = null,
            Guid?imageOwnerId      = null,
            string title           = null,
            string header          = null,
            int?voteCount          = null,
            Legacy_UnityImageVoteRevealOptions voteRevealOptions = null)
        {
            Legacy_UnityImage baseImage = base.GetUnityImage(backgroundColor, imageIdentifier, imageOwnerId, title, header, voteCount, voteRevealOptions);

            baseImage.Base64Pngs = new StaticAccessor <IReadOnlyList <string> > {
                Value = UserDrawings.Select(drawing => drawing.Drawing).ToList().AsReadOnly()
            };
            return(baseImage);
        }
Exemple #2
0
        public override Legacy_UnityImage GetUnityImage(
            Color?backgroundColor  = null,
            string imageIdentifier = null,
            Guid?imageOwnerId      = null,
            string title           = null,
            string header          = null,
            int?voteCount          = null,
            Legacy_UnityImageVoteRevealOptions voteRevealOptions = null)
        {
            Legacy_UnityImage baseImage = base.GetUnityImage(backgroundColor, imageIdentifier, imageOwnerId, title, header, voteCount, voteRevealOptions);

            baseImage.Base64Pngs = new StaticAccessor <IReadOnlyList <string> > {
                Value = GetOrderedDrawings()
            };
            baseImage.SpriteGridWidth = new StaticAccessor <int?> {
                Value = 1
            };
            baseImage.SpriteGridHeight = new StaticAccessor <int?> {
                Value = 3
            };
            return(baseImage);
        }