public void DrawVertical(Graphics g, LiveSplitState state, float height, Region clipRegion) { if (Enabled) { Component.DrawVertical(g, state, height, clipRegion); } }
public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { if (state.LayoutSettings.BackgroundColor.ToArgb() != Color.Transparent.ToArgb()) { g.FillRectangle(new SolidBrush(state.LayoutSettings.BackgroundColor), 0, 0, width, VerticalHeight); } PrepareDraw(state, LayoutMode.Vertical); textInfo.DrawVertical(g, state, width, clipRegion); }
/// <summary> /// Draws the component vertically within the LiveSplit window. /// </summary> public void DrawVertical(Graphics g, LiveSplitState state, float width, Region clipRegion) { if (settings.DisplayEnabled) { FillBackground(g, state, width, VerticalHeight); PrepareDraw(state); textComponent.DrawVertical(g, state, width, clipRegion); } }
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.OverrideValueColor ? Settings.ValueColor : state.LayoutSettings.TextColor; InternalComponent.DrawVertical(g, state, width, clipRegion); }