Exemplo n.º 1
0
 public QuickMainMenu(
     string translationKey,
     Func <Language, Dictionary <string, string> > translationGenerator,
     ReservedCollection replacements = null,
     string customHeader             = null)
     : base(translationKey.Replace('_', '.'), translationKey, translationGenerator, replacements, customHeader)
 {
 }
Exemplo n.º 2
0
        public MainMenu(string name, string translationKey, Func <Language, Dictionary <string, string> > translationGenerator, ReservedCollection replacements = null, string customHeader = null) : this(name, translationKey)
        {
            this.generator = translationGenerator;

            this.Replacements = replacements;

            this.Instance = EloBuddy.SDK.Menu.MainMenu.AddMenu(customHeader ?? this.GetText(), name);

            if (customHeader != null)
            {
                this.UpdateText();
            }
        }