Beispiel #1
0
        //+ REGISTRATION
        /// <summary>
        /// Registers a system window
        /// </summary>
        /// <param name="window">The window to register</param>
        /// <returns>The window registered if registration was successful, null otherwise</returns>
        public static SystemWindow RegisterWindow(SystemWindow window)
        {
            if (WINDOWS.ContainsKey(window.ID))
            {
                GuuCore.LOGGER.LogWarning($"Trying to register system window with id '<color=white>{window.ID}</color>' but the ID is already registered!");
                return(null);
            }

            WINDOWS.Add(window.ID, window);
            window.BuildWindow();
            return(window);
        }