Esempio n. 1
0
 public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     if (Enabled)
     {
         Component.DrawHorizontal(g, state, height, clipRegion);
     }
 }
Esempio n. 2
0
 public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
 {
     if (state.LayoutSettings.BackgroundColor.ToArgb() != Color.Transparent.ToArgb())
     {
         g.FillRectangle(new SolidBrush(state.LayoutSettings.BackgroundColor), 0, 0, HorizontalWidth, height);
     }
     PrepareDraw(state, LayoutMode.Horizontal);
     textInfo.DrawHorizontal(g, state, height, clipRegion);
 }
Esempio n. 3
0
        /// <summary>
        /// Draws the component horizontally within the LiveSplit window.
        /// </summary>
        public void DrawHorizontal(Graphics g, LiveSplitState state, float height, Region clipRegion)
        {
            if (settings.DisplayEnabled)
            {
                FillBackground(g, state, HorizontalWidth, height);
                PrepareDraw(state);

                textComponent.DrawHorizontal(g, state, height, clipRegion);
            }
        }
        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.OverrideValueColor ? Settings.ValueColor : state.LayoutSettings.TextColor;

            InternalComponent.DrawHorizontal(g, state, height, clipRegion);
        }