Example #1
0
 public void DrawVertical(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     if (Enabled)
     {
         Component.DrawVertical(g, state, height, clipRegion);
     }
 }
Example #2
0
 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);
 }
Example #3
0
        /// <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);
        }