started implementing dtsod parsing
This commit is contained in:
31
view/example.tui.dtsod
Normal file
31
view/example.tui.dtsod
Normal file
@@ -0,0 +1,31 @@
|
||||
TUI_version: 1;
|
||||
namespace: "example_namespace"
|
||||
|
||||
$ui: {
|
||||
name: "UIElement",
|
||||
type: "UIElement",
|
||||
min_width: 4,
|
||||
max_width: 4,
|
||||
width_scaling: 0,
|
||||
height_scaling: 0,
|
||||
bg_color: "black",
|
||||
fg_color: "white",
|
||||
border: {
|
||||
top: "hidden",
|
||||
bottom: "no",
|
||||
left: "thick",
|
||||
right: "double",
|
||||
fg_color: "dark_cyan",
|
||||
bg_color: "gray";
|
||||
};
|
||||
};
|
||||
|
||||
$ui: [
|
||||
name: "Grid",
|
||||
type: "Grid",
|
||||
content: [
|
||||
// column
|
||||
[ "@UIElement" ], // row
|
||||
[ "@namespace.element1" ], // row
|
||||
];
|
||||
];
|
||||
10
view/main.tui.dtsod
Normal file
10
view/main.tui.dtsod
Normal file
@@ -0,0 +1,10 @@
|
||||
TUI_version: 1;
|
||||
namespace: "main";
|
||||
|
||||
grid: [
|
||||
name: "Grid",
|
||||
type: "Grid",
|
||||
// column
|
||||
[ "@namespace.element0" ], // row
|
||||
[ "@namespace.element1" ], // row
|
||||
];
|
||||
Reference in New Issue
Block a user