public OverlayListItemViewModelBase()
 {
     this.totalToShow = 5;
     this.fadeOut     = 0;
     this.width       = 400;
     this.height      = 100;
     this.Font        = "Arial";
     this.alignment   = OverlayListItemAlignmentTypeEnum.Top;
 }
Ejemplo n.º 2
0
 public OverlayListItemModelBase(OverlayItemModelTypeEnum type, string htmlText, int totalToShow, int fadeOut, string textFont, int width, int height, string borderColor,
                                 string backgroundColor, string textColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation, OverlayItemEffectExitAnimationTypeEnum removeEventAnimation)
     : base(type, htmlText)
 {
     this.TotalToShow     = totalToShow;
     this.FadeOut         = fadeOut;
     this.TextFont        = textFont;
     this.Width           = width;
     this.Height          = height;
     this.BorderColor     = borderColor;
     this.BackgroundColor = backgroundColor;
     this.TextColor       = textColor;
     this.Alignment       = alignment;
     this.Effects         = new OverlayItemEffectsModel(addEventAnimation, OverlayItemEffectVisibleAnimationTypeEnum.None, removeEventAnimation, 0);
 }
        public OverlayListItemViewModelBase(int totalToShow, int fadeOut, int width, int height, string textFont, string textColor, string borderColor, string backgroundColor,
                                            OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum entranceAnimation, OverlayItemEffectExitAnimationTypeEnum exitAnimation, string htmlText)
            : this()
        {
            this.totalToShow = totalToShow;
            this.fadeOut     = fadeOut;
            this.width       = width;
            this.height      = height;
            this.Font        = textFont;

            this.TextColor       = ColorSchemes.GetColorName(textColor);
            this.BorderColor     = ColorSchemes.GetColorName(borderColor);
            this.BackgroundColor = ColorSchemes.GetColorName(backgroundColor);

            this.alignment         = alignment;
            this.entranceAnimation = entranceAnimation;
            this.exitAnimation     = exitAnimation;

            this.HTML = htmlText;
        }
Ejemplo n.º 4
0
 public OverlayLeaderboardListItemModel(string htmlText, OverlayLeaderboardListItemTypeEnum leaderboardType, int totalToShow, string textFont, int width, int height, string borderColor,
                                        string backgroundColor, string textColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation, OverlayItemEffectExitAnimationTypeEnum removeEventAnimation, CustomCommand newLeaderCommand)
     : base(OverlayItemModelTypeEnum.Leaderboard, htmlText, totalToShow, 0, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation)
 {
     this.LeaderboardType  = leaderboardType;
     this.NewLeaderCommand = newLeaderCommand;
 }
Ejemplo n.º 5
0
 public OverlayLeaderboardListItemModel(string htmlText, OverlayLeaderboardListItemTypeEnum leaderboardType, int totalToShow, string textFont, int width, int height, string borderColor,
                                        string backgroundColor, string textColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation,
                                        OverlayItemEffectExitAnimationTypeEnum removeEventAnimation, BitsLeaderboardPeriodEnum dateRange, CustomCommand newLeaderCommand)
     : this(htmlText, leaderboardType, totalToShow, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation, newLeaderCommand)
 {
     this.BitsLeaderboardDateRange = dateRange;
 }
 public OverlayEventListItemModel(string htmlText, IEnumerable <OverlayEventListItemTypeEnum> itemTypes, int totalToShow, int fadeOut, string textFont, int width, int height,
                                  string borderColor, string backgroundColor, string textColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation, OverlayItemEffectExitAnimationTypeEnum removeEventAnimation)
     : base(OverlayItemModelTypeEnum.EventList, htmlText, totalToShow, fadeOut, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation)
 {
     this.ItemTypes = new List <OverlayEventListItemTypeEnum>(itemTypes);
 }
Ejemplo n.º 7
0
 public OverlayChatMessagesListItemModel(string htmlText, int totalToShow, int fadeOut, string textFont, int width, int height, string borderColor, string backgroundColor, string textColor,
                                         OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation, OverlayItemEffectExitAnimationTypeEnum removeEventAnimation)
     : base(OverlayItemModelTypeEnum.ChatMessages, htmlText, totalToShow, fadeOut, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation)
 {
 }
Ejemplo n.º 8
0
 public OverlayLeaderboardListItemModel(string htmlText, OverlayLeaderboardListItemTypeEnum leaderboardType, int totalToShow, string textFont, int width, int height, string borderColor,
                                        string backgroundColor, string textColor, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation,
                                        OverlayItemEffectExitAnimationTypeEnum removeEventAnimation, CurrencyModel currency, CommandModelBase leaderChangedCommand)
     : this(htmlText, leaderboardType, totalToShow, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation, leaderChangedCommand)
 {
     this.CurrencyID = currency.ID;
 }
 public OverlaySongRequestsListItemModel(string htmlText, int totalToShow, string textFont, int width, int height, string borderColor, string backgroundColor, string textColor,
                                         bool includeCurrentSong, OverlayListItemAlignmentTypeEnum alignment, OverlayItemEffectEntranceAnimationTypeEnum addEventAnimation, OverlayItemEffectExitAnimationTypeEnum removeEventAnimation)
     : base(OverlayItemModelTypeEnum.SongRequests, htmlText, totalToShow, 0, textFont, width, height, borderColor, backgroundColor, textColor, alignment, addEventAnimation, removeEventAnimation)
 {
     this.IncludeCurrentSong = includeCurrentSong;
 }