public MagicElementSelectionPanel(MagicEditor Editor)
            : base("Magic Elements", Editor.ListActionMenuChoice, true)
        {
            this.Editor = Editor;
            ListAllMagicElementChoice = new List <MagicElement>();
            ListAllMagicElementChoice.AddRange(MagicElement.LoadAllMagicElements().Values);
            foreach (MagicElement ActiveMagicElement in ListAllMagicElementChoice)
            {
                ActiveMagicElement.InitGraphics(Editor.Content);
            }

            MenuOffset              = 0;
            ElementSize             = 75;
            MenuMaxVisibleHeight    = Constants.Height - 50;
            MaxNumberVisibleElement = ((MenuMaxVisibleHeight - 40) / ElementSize) * 2;
            MaxOffset = (int)Math.Ceiling((ListAllMagicElementChoice.Count - MaxNumberVisibleElement) / 2d);
            SpellBoxX = Constants.Width - 200;
        }
 public MagicAttributesEditonPanel(MagicEditor Editor, MagicElement ActiveMagicElement)
     : base("Magic Elements", Editor.ListActionMenuChoice, true)
 {
     this.ActiveMagicElement = ActiveMagicElement;
 }