Items locked for movement have a light circle drawn around them so that it is a little more obvious that there is something different about them.
This commit is contained in:
parent
56b680e057
commit
cd0b1c4bdc
@ -1116,6 +1116,15 @@ namespace EduNetworkBuilder
|
||||
|
||||
if (!isInvisible)
|
||||
{
|
||||
if (IsLockedInLocation()) //We darken the area around it slightly to show it is locked
|
||||
{
|
||||
Color darken = Color.Black;
|
||||
Brush brush = new SolidBrush(Color.FromArgb(32, darken.R, darken.G, darken.B));
|
||||
Pen DrawPen = new Pen(brush, 2);
|
||||
Graphics.FromImage(BaseImage).DrawEllipse(DrawPen, Location);
|
||||
Network myNet = NB.GetNetwork();
|
||||
myNet.Invalidate(Location);
|
||||
}
|
||||
if (BackgroundColor != Color.Empty)
|
||||
{
|
||||
Brush brush = new SolidBrush(Color.FromArgb(128, BackgroundColor.R, BackgroundColor.G, BackgroundColor.B));
|
||||
|
Loading…
Reference in New Issue
Block a user