SadConsole 8.99.0
A MonoGame library that emulates old-school console and command prompt style graphics. Targets .NET Standard 2.0
Install-Package SadConsole -Version 8.99.0
dotnet add package SadConsole --version 8.99.0
<PackageReference Include="SadConsole" Version="8.99.0" />
paket add SadConsole --version 8.99.0
11/26/2019 V8.99.0
-
Breaking changes to themes and controls
The control themes system is now a lot simpler.
- Themes only come from two places, the control directly or from the library.
- Each control has a
ThemeColors
property that controls the colors of the theme. If set tonull
the colors are pulled from the parent console/window. - The Console/Window types have a
ThemeColors
property that specify the colors for all controls. If set tonull
the colors are instead pulled from the library. - The library has been simplified. Each control type is registered with a theme via the
Library.SetControlTheme
. To overwrite a default theme, set it in the library.
When you create a new a control, and thus have a new theme, register it with the library
SadConsole.Themes.Library.Default.SetControlTheme(typeof(yourControl), new ThemeType());
When a control is created it queries the library for a theme, which is a clone of the one registered with the library. If you want to override the library-supplied theme, just set theControl.THeme
property.Setting colors for a console or a control is easy. Each control and
ControlsConsole
orWindow
has aThemeColors
property. Set this to
I know I'm not supposed to add breaking changes without increasing the major version. However, V9 is already labeled and I wasn't planning on this change. This change was actually created for V9 as a way to solve the problems with v8's theme system. But it proved so simple to implement that I wanted to port it.
Because of the breaking change, I'm setting this version to a strange one, v8.99.
11/26/2019 V8.99.0
-
Breaking changes to themes and controls
The control themes system is now a lot simpler.
- Themes only come from two places, the control directly or from the library.
- Each control has a
ThemeColors
property that controls the colors of the theme. If set tonull
the colors are pulled from the parent console/window. - The Console/Window types have a
ThemeColors
property that specify the colors for all controls. If set tonull
the colors are instead pulled from the library. - The library has been simplified. Each control type is registered with a theme via the
Library.SetControlTheme
. To overwrite a default theme, set it in the library.
When you create a new a control, and thus have a new theme, register it with the library
SadConsole.Themes.Library.Default.SetControlTheme(typeof(yourControl), new ThemeType());
When a control is created it queries the library for a theme, which is a clone of the one registered with the library. If you want to override the library-supplied theme, just set theControl.THeme
property.Setting colors for a console or a control is easy. Each control and
ControlsConsole
orWindow
has aThemeColors
property. Set this to
I know I'm not supposed to add breaking changes without increasing the major version. However, V9 is already labeled and I wasn't planning on this change. This change was actually created for V9 as a way to solve the problems with v8's theme system. But it proved so simple to implement that I wanted to port it.
Because of the breaking change, I'm setting this version to a strange one, v8.99.
Release Notes
Fix xml docs
Dependencies
-
.NETStandard 2.0
- newtonsoft.json (>= 11.0.2)
GitHub Usage
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated | ||
---|---|---|---|---|
8.99.0 | 72 | 11/27/2019 | ||
8.99.0-debug | 35 | 11/27/2019 | ||
8.9.1 | 145 | 11/5/2019 | ||
8.9.1-debug | 35 | 11/5/2019 | ||
8.9.0 | 386 | 9/7/2019 | ||
8.9.0-debug | 59 | 9/7/2019 | ||
8.8.1 | 227 | 7/28/2019 | ||
8.8.1-debug | 65 | 7/28/2019 | ||
8.8.0 | 73 | 7/27/2019 | ||
8.8.0-debug | 62 | 7/27/2019 | ||
8.7.1 | 204 | 6/22/2019 | ||
8.7.1-debug | 70 | 6/22/2019 | ||
8.7.0 | 78 | 6/22/2019 | ||
8.7.0-debug | 70 | 6/22/2019 | ||
8.6.0 | 346 | 4/14/2019 | ||
8.6.0-debug | 90 | 4/14/2019 | ||
8.5.0 | 200 | 4/2/2019 | ||
8.5.0-debug | 100 | 4/2/2019 | ||
8.4.1 | 193 | 3/19/2019 | ||
8.4.1-debug | 94 | 3/19/2019 | ||
8.4.0 | 110 | 3/17/2019 | ||
8.4.0-debug | 107 | 3/17/2019 | ||
8.3.0 | 149 | 3/10/2019 | ||
8.3.0-debug | 93 | 3/10/2019 | ||
8.2.0 | 148 | 3/2/2019 | ||
8.2.0-debug | 106 | 3/2/2019 | ||
8.1.0 | 146 | 2/28/2019 | ||
8.1.0-debug | 99 | 2/28/2019 | ||
8.0.0 | 175 | 2/24/2019 | ||
8.0.0-pre5 | 112 | 2/19/2019 | ||
8.0.0-pre4 | 121 | 1/31/2019 | ||
8.0.0-pre2 | 163 | 12/30/2018 | ||
8.0.0-pre1 | 112 | 12/30/2018 | ||
7.3.0 | 284 | 12/29/2018 | ||
7.2.0 | 284 | 11/20/2018 | ||
7.1.0 | 325 | 10/19/2018 | ||
7.0.4 | 279 | 9/8/2018 | ||
7.0.3 | 168 | 9/8/2018 | ||
7.0.2 | 476 | 8/31/2018 | ||
7.0.0 | 298 | 8/29/2018 | ||
7.0.0-pre1 | 183 | 8/22/2018 | ||
6.5.0 | 419 | 6/12/2018 | ||
6.4.11 | 413 | 4/13/2018 | ||
6.4.11-pre1 | 382 | 4/6/2018 | ||
6.4.10 | 326 | 3/18/2018 | ||
6.4.9 | 257 | 3/18/2018 | ||
6.4.8 | 270 | 3/18/2018 | ||
6.4.7 | 271 | 3/16/2018 | ||
6.4.6 | 492 | 2/14/2018 | ||
6.4.5 | 334 | 2/3/2018 | ||
6.4.3 | 384 | 11/14/2017 | ||
6.4.2 | 450 | 8/11/2017 | ||
6.4.1 | 277 | 8/10/2017 | ||
6.4.0 | 309 | 7/25/2017 | ||
6.3.0 | 402 | 6/9/2017 | ||
6.2.2 | 337 | 5/20/2017 | ||
6.2.1 | 425 | 4/23/2017 | ||
6.2.0 | 304 | 4/22/2017 | ||
6.1.4 | 321 | 4/17/2017 | ||
6.1.3 | 959 | 4/3/2017 | ||
6.1.2 | 288 | 4/1/2017 | ||
6.1.1 | 302 | 4/1/2017 | ||
6.1.0 | 287 | 3/31/2017 | ||
6.0.1 | 359 | 3/19/2017 | ||
6.0.0 | 349 | 3/18/2017 |