Beispiel #1
0
 public KeyView(BaseTrackBar trackBar)
     : base(trackBar)
 {
     this.Margin = new Skill.Framework.UI.Thickness(0, 2);
     _Drag       = new TimeLineEventDragDumb(this)
     {
         Row = 0, Column = 0, RowSpan = 100, ColumnSpan = 100
     };
     if (_DragStyle == null)
     {
         _DragStyle = new GUIStyle();
     }
     _Drag.Style = _DragStyle;
     Controls.Add(_Drag);
     base.WantsMouseEvents = true;
 }
Beispiel #2
0
            public SubtitleEvent(AudioClipSubtitleEditor editor, TrackBar trackBar, Subtitle subtitle, GUIStyle style)
                : base(trackBar)
            {
                this.Editor = editor;
                Subtitle    = subtitle;

                _DragDumb = new TimeLineEventDragDumb(this);

                _LblTitle = new Label()
                {
                    Margin = new Thickness(2, 0)
                };
                _LblTitle.Style = new GUIStyle(style);

                Controls.Add(_DragDumb);
                Controls.Add(_LblTitle);

                base.WantsMouseEvents = true;
                UpdateTitle();
            }