Esempio n. 1
0
        /// <summary>
        /// Sets up the GUI system for rendering with the engine.
        /// </summary>
        /// <param name="engine">The <see cref="Engine"/> to render in.</param>
        public GuiManager(Engine engine)
        {
            #region Sanity checks
            if (engine == null)
            {
                throw new ArgumentNullException(nameof(engine));
            }
            #endregion

            _engine             = engine;
            DialogManager       = new Render.DialogManager(engine);
            engine.ExtraRender += Render;
        }
Esempio n. 2
0
 public void Reset()
 {
     CloseAll();
     DialogManager.Dispose();
     DialogManager = new Render.DialogManager(_engine);
 }
Esempio n. 3
0
        // ReSharper restore InconsistentNaming

        /// <summary>
        /// Create a new message-box dialog
        /// </summary>
        /// <param name="manager">The <see cref="DialogManager"/> instance that provides the resources for rendering of this dialog</param>
        public MessageBox(DialogManager manager) : base(manager)
        {
        }