public CoverCaption(CoverManager coverManager, string font_name, Color color)
     : base(coverManager, font_name, color)
 {
     CoverManager.NewCurrentCover += HandleNewCurrentCover;
     CoverManager.TargetIndexChanged += HandleTargetIndexChanged;
     CoverManager.CoversChanged += HandleCoversChanged;
 }
Ejemplo n.º 2
0
	protected override void Awake()
	{
		base.Awake();

		lastKnownPosition = Dependency.Get<LastKnownPosition>();
		coverManager = Dependency.Get<CoverManager>();
	}
        public Caption(CoverManager coverManager, string font_name, Color color)
            : base(clutter_text_new ())
        {
            this.coverManager = coverManager;
            Editable = false;
            Selectable = false;
            Activatable = false;
            CursorVisible = false;
            LineAlignment = Pango.Alignment.Center;
            FontName = font_name;
            Color = color;
            TextProp = DefaultValue;

            UpdatePosition ();
        }
Ejemplo n.º 4
0
            /// <summary>
            /// return true if success.
            /// </summary>
            /// <param name="dataCenter"></param>
            /// <param name="source"></param>
            /// <returns></returns>
            public async Task<bool> GenerateAsync(DataCenter dataCenter, ICoverParent source)
            {
                var client = JryVideoCore.Current.GetTheTVDBClient();
                if (client == null) return false;

                this.coverManager = dataCenter.CoverManager;
                return await this.AutoGenerateCoverAsync(client, this.source.InfoView.Source) ||
                       await this.AutoGenerateCoverOverTheTVDBIdAsync(client,
                           this.source.InfoView.SeriesView.Source.TheTVDBId,
                           this.source.InfoView.Source.Index.ToString()) ||
                       await this.AutoGenerateCoverAsync(client, this.source.InfoView.SeriesView.Source);
            }
 public CombineAction(VideoRoleManager manager, CoverManager coverManager, string sourceId, string destId)
 {
     this.manager = manager;
     this.coverManager = coverManager;
     this.sourceId = sourceId;
     this.destId = destId;
 }
 public TrackCaption(CoverManager coverManager, string font_name, Color color)
     : base(coverManager, font_name, color)
 {
 }