UltimateZoneBuilder/Source/Plugins/3DFloorMode/Controls/ThreeDFloorTooltipControl.cs

48 lines
1.1 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace CodeImp.DoomBuilder.ThreeDFloorMode
{
public partial class ThreeDFloorHelperTooltipElementControl : UserControl
{
private bool highlighted;
public bool Highlighted { get { return highlighted; } set { highlighted = value; } }
public ThreeDFloorHelperTooltipElementControl()
{
highlighted = false;
InitializeComponent();
}
private void ThreeDFloorHelperTooltipElementControl_Paint(object sender, PaintEventArgs e)
{
Color c = Color.FromArgb(0, 192, 0); // Color.FromArgb(255, Color.Green);
ControlPaint.DrawBorder(
e.Graphics,
this.ClientRectangle,
c, // leftColor
5, // leftWidth
highlighted ? ButtonBorderStyle.Solid : ButtonBorderStyle.None, // leftStyle
c, // topColor
0, // topWidth
ButtonBorderStyle.None, // topStyle
c, // rightColor
0, // rightWidth
ButtonBorderStyle.None, // rightStyle
c, // bottomColor
0, // bottomWidth
ButtonBorderStyle.None // bottomStyle
);
}
}
}