The common menu.
상속: Menu
예제 #1
0
        /// <summary>
        ///     Initializes static members of the <see cref="Menu" /> class.
        /// </summary>
        static Menu()
        {
            if (MenuVariables.DragAndDropDictionary == null)
            {
                MenuVariables.DragAndDropDictionary = new Dictionary <string, DragAndDrop>();
            }

            MenuPanel = new DrawRect(Color.Black);
            PanelText = new DrawText {
                Text = "EnsageSharp Menu", FontFlags = FontFlags.AntiAlias
            };
            TextureDictionary = new Dictionary <string, DotaTexture>();
            ItemDictionary    = new Dictionary <string, MenuItem>();
            Root = new CommonMenu();
            Root.AddToMainMenu();
            Drawing.OnDraw += OnDraw;
        }
예제 #2
0
        /// <summary>
        /// The activate common menu.
        /// </summary>
        private static void ActivateCommonMenu()
        {
            if (Root != null)
            {
                return;
            }

            Root = new CommonMenu();
            Root.AddToMainMenu();
        }