Exemple #1
0
 public ConfigMenu(ConfigParam[] configParams, Size fieldSize, Padding p)
 {
     this.ConfigParams = configParams;
     configMenu        = new SelectionMenu(
         configParams.Select(x => x.ToString()).ToArray(),
         fieldSize,
         defaultSelected: 0,
         p
         );
 }
Exemple #2
0
        public override void OnWindowSizeChanged(Size fieldSize)
        {
            if (keyHandlers.Contains(sm))
            {
                keyHandlers.Remove(sm);
            }

            sm           = new SelectionMenu(variants, fieldSize, defaultSelected: 0, p);
            sm.IsFocused = true;
            keyHandlers.Add(sm);
        }