public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { DrawGeneral(g, state, width, VerticalHeight); var oldMatrix = g.Transform; InternalComponent.Settings.TimerHeight = VerticalHeight * ((100f - Settings.SegmentTimerSizeRatio) / 100f); InternalComponent.DrawVertical(g, state, width, clipRegion); g.Transform = oldMatrix; g.TranslateTransform(0, VerticalHeight * ((100f - Settings.SegmentTimerSizeRatio) / 100f)); SegmentTimer.Settings.TimerHeight = VerticalHeight * (Settings.SegmentTimerSizeRatio / 100f); SegmentTimer.DrawVertical(g, state, width, clipRegion); g.Transform = oldMatrix; }
public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { DrawBackground(g, state, width, VerticalHeight); InternalComponent.DisplayTwoRows = Settings.Display2Rows; 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.DrawVertical(g, state, width, clipRegion); }
public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion) { var scaleFactor = (float)height / Math.Max(InternalComponent.OverallHeight, 1f); var oldMatrix = g.Transform; try { g.ScaleTransform(scaleFactor, scaleFactor); InternalComponent.DrawVertical(g, state, HorizontalWidth / scaleFactor, clipRegion); } catch (Exception ex) { Log.Error(ex); } g.Transform = oldMatrix; }
public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { DrawBackground(g, state, width, VerticalHeight); PrepareDraw(state); InternalComponent.DrawVertical(g, state, width, clipRegion); }
void IComponent.DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { InternalComponent.PrepareDraw(state, LayoutMode.Vertical); PrepareDraw(state, LayoutMode.Vertical); InternalComponent.DrawVertical(g, state, width, clipRegion); }
public void DrawVertical(System.Drawing.Graphics g, LiveSplitState state, float width, System.Drawing.Region clipRegion) { InternalComponent.DrawVertical(g, state, width, clipRegion); }
public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { Prepare(state); InternalComponent.DrawVertical(g, state, width, clipRegion); }