/// <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; }
public void Reset() { CloseAll(); DialogManager.Dispose(); DialogManager = new Render.DialogManager(_engine); }
// 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) { }