public void SetActivatedLayout(StandardLayout layout) { ActivatedLayout?.Deactivate(); ActivatedLayout = layout; ActivatedLayout.Activate(); PaintAgent.CurrentLayout = ActivatedLayout; PaintingTexture.CopyTo(PaintingTextureBackup); ActivatedLayoutChanged?.Invoke(); }
public void SetActivatedLayout(int layoutIndex) { ActivatedLayout?.Deactivate(); if (layoutIndex == -1) { ActivatedLayout = null; PaintAgent.CurrentLayout = null; return; } ActivatedLayout = (StandardLayout)Layouts[layoutIndex]; ActivatedLayout.Activate(); PaintAgent.CurrentLayout = ActivatedLayout; PaintingTexture.CopyTo(PaintingTextureBackup); ActivatedLayoutChanged?.Invoke(); }