more ui refactorin

This commit is contained in:
Michele Scandura 2020-11-10 16:44:13 +00:00
parent e009ef07b0
commit 9d4fd1e6c0
6 changed files with 374 additions and 159 deletions

View file

@ -0,0 +1,22 @@
using Myra.Graphics2D.UI;
namespace Sledgemapper.UI
{
public partial class MainWidget
{
public void ClearSelection()
{
ClearSelection(GridTiles);
ClearSelection(GridWalls);
ClearSelection(GridOverlays);
}
private void ClearSelection(Grid grid)
{
foreach (var widget in grid.Widgets)
{
widget.Border = null;
}
}
}
}