Exemplo n.º 1
0
        public void SetDefaults(ConsoleSettings settings)
        {
            InputPrefix      = settings.InputPrefix;
            InputPrefixColor = settings.InputPrefixColor;
            NumPositionsToMoveWhenOutOfScreen      = settings.NumPositionsToMoveWhenOutOfScreen;
            RepeatingInput.RepeatingInputCooldown  = settings.TimeToCooldownRepeatingInput;
            RepeatingInput.TimeUntilRepeatingInput = settings.TimeToTriggerRepeatingInput;
            Selection.Color = settings.SelectionColor;

            Caret.SetSettings(settings);
        }
Exemplo n.º 2
0
        private void SetSettings(ConsoleSettings settings)
        {
            BackgroundColor            = settings.BackgroundColor;
            FontColor                  = settings.FontColor;
            HeightRatio                = settings.HeightRatio;
            OpenCloseTransitionSeconds = settings.TimeToToggleOpenClose;
            Padding               = settings.Padding;
            BottomBorderColor     = settings.BottomBorderColor;
            BottomBorderThickness = settings.BottomBorderThickness;
            TabSymbol             = settings.TabSymbol;

            BgRenderer.SetDefaults(settings);
            ConsoleInput.SetDefaults(settings);
            ConsoleOutput.SetDefaults(settings);
        }
 public void SetDefaults(ConsoleSettings settings)
 {
     Texture          = settings.BackgroundTexture;
     TextureTransform = settings.BackgroundTextureTransform;
 }
Exemplo n.º 4
0
 public void SetDefaults(ConsoleSettings settings)
 {
 }
Exemplo n.º 5
0
 public void SetSettings(ConsoleSettings settings)
 {
     Symbol = settings.CaretSymbol;
     _caretBlinkingTimer.TargetTime = settings.CaretBlinkingIntervalSeconds;
 }