public void DrawHorizontal(Graphics g, LiveSplitState state, float height, System.Drawing.Region clipRegion)
 {
     DrawBackground(g, state, HorizontalWidth, height);
     PrepareDraw(state, LayoutMode.Horizontal);
     InternalComponent.DrawHorizontal(g, state, height, clipRegion);
     g.DrawEllipse(new Pen(Color.Aqua), new Rectangle(new Point(10, 0), new Size((int)HorizontalWidth - 10, (int)height)));
     if (UserIcon != null)
     {
         g.DrawImage(UserIcon, new Point(10, (int)height / 2 - 50));
     }
 }
        public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
        {
            DrawBackground(g, state, HorizontalWidth, height);

            InternalComponent.NameLabel.HasShadow
                  = InternalComponent.ValueLabel.HasShadow
                  = state.LayoutSettings.DropShadows;

            InternalComponent.NameLabel.ForeColor  = Settings.OverrideTextColor ? Settings.TextColor : state.LayoutSettings.TextColor;
            InternalComponent.ValueLabel.ForeColor = Settings.OverrideTimeColor ? Settings.TimeColor : state.LayoutSettings.TextColor;

            InternalComponent.DrawHorizontal(g, state, height, clipRegion);
        }
Beispiel #3
0
        public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
        {
            DrawGeneral(g, state, HorizontalWidth, height);
            var oldMatrix = g.Transform;

            InternalComponent.Settings.TimerWidth = HorizontalWidth;
            InternalComponent.DrawHorizontal(g, state, height * ((100f - Settings.SegmentTimerSizeRatio) / 100f), clipRegion);
            g.Transform = oldMatrix;
            g.TranslateTransform(0, height * ((100f - Settings.SegmentTimerSizeRatio) / 100f));
            SegmentTimer.DrawHorizontal(g, state, height * (Settings.SegmentTimerSizeRatio / 100f), clipRegion);
            SegmentTimer.Settings.TimerWidth = HorizontalWidth;
            g.Transform = oldMatrix;
        }
        public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion)
        {
            var scaleFactor = (float)width / Math.Max(InternalComponent.OverallWidth, 1f);
            var oldMatrix   = g.Transform;

            try
            {
                g.ScaleTransform(scaleFactor, scaleFactor);
                InternalComponent.DrawHorizontal(g, state, VerticalHeight / scaleFactor, clipRegion);
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }

            g.Transform = oldMatrix;
        }
Beispiel #5
0
 public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     DrawBackground(g, state, HorizontalWidth, height);
     PrepareDraw(state);
     InternalComponent.DrawHorizontal(g, state, height, clipRegion);
 }
Beispiel #6
0
 void IComponent.DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     PrepareDraw(state, LayoutMode.Horizontal);
     InternalComponent.DrawHorizontal(g, state, height, clipRegion);
 }
Beispiel #7
0
 public void DrawHorizontal(System.Drawing.Graphics g, LiveSplitState state, float height, System.Drawing.Region clipRegion)
 {
     InternalComponent.DrawHorizontal(g, state, height, clipRegion);
 }
 public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     Prepare(state);
     InternalComponent.DrawHorizontal(g, state, height, clipRegion);
 }