SadConsoleEditor.Editors.GameObjectEditor.SyncSpecialLayerToAnimation C# (CSharp) Method

SyncSpecialLayerToAnimation() private method

private SyncSpecialLayerToAnimation ( ) : void
return void
        private void SyncSpecialLayerToAnimation()
        {
            int previousSelectedLayer = textSurface.ActiveLayerIndex;

            textSurface.SetActiveLayer(LayerAnimCenter);
            consoleWrapper.Fill(Color.White, Color.Transparent, 0);
            textSurface.GetCell(selectedAnimation.Center.X, selectedAnimation.Center.Y).GlyphIndex = 42;
            textSurface.GetCell(selectedAnimation.Center.X, selectedAnimation.Center.Y).Background = Color.Black;

            textSurface.SetActiveLayer(LayerBackground);
            consoleWrapper.Fill(Color.White, Color.White * 0.6f, 0);

            // Change this to a prop (SHOWCENTER LAYER) and have tool on selected
            textSurface.GetLayer(LayerAnimCenter).IsVisible = ShowCenterLayer;
            textSurface.GetLayer(LayerAnimBox).IsVisible = false;
            textSurface.GetLayer(LayerBackground).IsVisible = ShowCenterLayer;

            textSurface.SetActiveLayer(previousSelectedLayer);
            // TODO: Draw box on LayerAnimBox for collision rect
        }