UltimateZoneBuilder/Source/Plugins/3DFloorMode/Controls/ThreeDFloorTooltipControl.cs
biwa 8b98ce09c1 - Added 3D Floor Mode plugin
- Flipped top/bottom in 3D Floor Mode plugin dialogs to be consistent with the edit sector dialog
@ fixed all compiler warnings in 3D Floor Mode plugin
2019-10-23 20:55:41 +02:00

47 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
);
}
}
}