Ejemplo n.º 1
0
        /// <summary>
        /// Instances a new menu with <paramref name="title"/>, <paramref name="subtitle"/> and <paramref name="description"/> with <paramref name="banner"/>.
        /// </summary>
        /// <param name="title">Title of the menu.</param>
        /// <param name="subtitle">Subtitle of the menu.</param>
        /// <param name="description">Description of the menu.</param>
        /// <param name="banner">Banner of the menu.</param>
        public CustomNativeMenu(string title, string subtitle, string description, I2Dimensional banner) : base(title, subtitle, description, banner)
        {
            CustomNativeMenus.Add(this);
            ObjectPool.Add(this);

            Shown                 += Menu_Shown;
            Closing               += Menu_Closing;
            OnItemActivated       += Menu_OnItemActivated;
            OnItemSelected        += Menu_OnItemSelected;
            OnItemCheckboxChanged += Menu_OnItemCheckboxChanged;
            OnItemValueChanged    += Menu_OnItemValueChanged;
        }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="customText"></param>
 /// <param name="internalName"></param>
 /// <param name="banner"></param>
 public CustomNativeMenu(CustomText customText, string internalName, I2Dimensional banner) : this(customText, internalName)
 {
     Banner = banner;
 }