-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
📖 new organization | minor fixes | syntax errors | update mermaid graphs
- Loading branch information
1 parent
bb99606
commit 0b13ece
Showing
9 changed files
with
110 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Basic concepts | ||
|
||
This section is made for you to understand what is ConsoleAppVisuals, its purposes, use case, how to install it use it. We will guide you into the creation of your first project and how to use the library to add visual elements to your console application. | ||
|
||
## What is ConsoleAppVisuals? | ||
|
||
The ambition of ConsoleAppVisuals is to provide the best compromise between an easy-to-use library and a complex tool to create console applications with visual elements. The library is designed to be simple to use and to provide a wide range of visual elements to make your console application more user-friendly and interactive. | ||
|
||
```mermaid | ||
flowchart LR | ||
A[Visual elements] -->|Stored in| B[Element List] | ||
B -->|From| D[Window Class] | ||
D -->|Rendered using| E[Core Class] | ||
E -->|Displayed on| F[Console] | ||
``` | ||
|
||
It is relies on the concept of "visuals" which are elements that can be displayed in the console. There are two types of visuals: | ||
|
||
- **Static visuals**: elements that do not change by themselves, you may display several from the same type at the same time | ||
- **Interactive visuals**: elements that can be updated and create a response that can be collected, you may display only one at a time | ||
|
||
These visuals are stored in `Window` as a list. From this class, you can display the visuals, add, remove, or update them. Each one of the visual element has its rendering method that will be called from the `Window` class. | ||
|
||
The basics of the interaction between the library and the console are defined in the `Core` class. | ||
|
||
## Use flow | ||
|
||
Here is the basic visualization of the use flow of the library: | ||
|
||
```mermaid | ||
sequenceDiagram | ||
participant User | ||
participant Element | ||
participant Window | ||
User->>Element: Creates an Element | ||
User->>Window: Adds the Element to the Window | ||
User->>Window: Tells the Window to Render the Element | ||
Window->>Element: Calls the Element's Render Function | ||
``` | ||
|
||
In C# terms, the use flow is as follows: | ||
|
||
1. Creating an element: | ||
|
||
```csharp | ||
Title exampleTitle = new Title("Hello world!"); | ||
``` | ||
|
||
2. Adding it to the `Window`: | ||
|
||
```csharp | ||
Window.AddElement(exampleTitle); | ||
``` | ||
|
||
3. Rendering the element: | ||
|
||
```csharp | ||
Window.Render(exampleTitle); | ||
``` | ||
|
||
## First steps | ||
|
||
Now that you have the basic concepts, let's dive into this guided path to know how to use the library: | ||
|
||
- [Create a simple console application](/ConsoleAppVisuals/introduction/first_app.html) | ||
- [Discover new elements for your project](/ConsoleAppVisuals/introduction/advanced_app.html) | ||
- [Manage multiple menus](/ConsoleAppVisuals/introduction/menus_managment.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.