namespace UIWidgets { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using UIWidgets.l10n; using UIWidgets.Styles; using UnityEngine; using UnityEngine.UI; /// /// Base class for the Dialogs. /// /// Dialog type. public abstract class DialogCustom : DialogBase where TDialog : DialogCustom, IHideable { /// /// Button instance. /// public class ButtonInstance : DialogButtonCustom { /// /// Initializes a new instance of the class. /// /// Owner. /// Index. /// Info. /// Template. /// Button container. public ButtonInstance(TDialog owner, int index, DialogButton info, Button template, RectTransform container) : base(owner, index, info, template, container) { } } /// /// Class for the buttons instances. /// protected class ButtonsPool : DialogButtonsPoolCustom { /// /// Initializes a new instance of the class. /// /// Dialog. /// Templates. /// Container. /// List for the active buttons. /// List for the cached buttons. public ButtonsPool(TDialog owner, ReadOnlyCollection