public override void Update()
 {
     base.Update();
     if (Map.ActiveLayer != null)
         (ToolBar[3] as Label).SetText("Layer: " + Map.ActiveLayer.Name);
     if(Map.ActiveLayer != null && currLayer != Map.ActiveLayer)
         RefreshLayerTraitListBox();
     if (Map.ActiveLayer != null)
         currLayer = Map.ActiveLayer;
 }
 public UseCurrentTool()
 {
     tool = Map.CurrentBrush.Tool;
     origin = tool.Origin;
     baseTile = tool.BaseTile;
     overwriteTile = Map.GetTileAt(origin.X, origin.Y);
     currentLayer = Map.ActiveLayer;
     brushSize = tool.BrushSize;
 }