mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-29 23:22:32 +00:00
8b98ce09c1
- 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
47 lines
1.1 KiB
C#
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
|
|
);
|
|
}
|
|
}
|
|
}
|