mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 15:11:56 +00:00
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
|
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
|
|||
|
);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|