UI.Console
| Name |
Mandatory |
Description |
Default |
Type |
⬅️ Input |
|
The raw logs. |
|
String |
Output ➡️ |
|
The output of this shard will be its input. |
|
String |
ShowFilters |
No |
Whether to display filter controls. |
false |
Bool |
Style |
No |
The console style. |
none |
{Any}Var({Any}) |
A console with formatted logs.
Examples
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | // Setup
Once({
Sequence(logs Type: @type([Type::String]))
})
CaptureLog({
GFX.MainWindow(Contents: {
// Setup
GFX.DrawQueue = ui-draw-queue
GFX.UIPass(ui-draw-queue) >> render-steps
// UI
UI({
UI.CentralPanel(Contents: {
UI.Button("Say Hello" {Msg("Hello!")})
logs | String.Join("\n") | UI.Console(ShowFilters: true)
})
})
UI.Render(ui-draw-queue)
GFX.Render(Steps: render-steps)
})
} MinLevel: LogLevel::Info Format: "%^[%l]%$ [%Y-%m-%d %T.%e] %v") | Extend(logs)
|
[warning] Context has 2 buffers at release (2 released, 2 kept)
[warning] Context has 5 textures at release (1 released, 5 kept)