-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMenus.cs
43 lines (36 loc) · 1.28 KB
/
Menus.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Collections;
using System.Security.Cryptography;
namespace Cosmoray;
internal static class Menus {
private static readonly MTLib.Terminal.Style matrixStyle = new(ConsoleColor.Green);
private static readonly MTLib.Terminal.Style matrixCarriageStyle = new(ConsoleColor.White);
internal static MTLib.Terminal.Menu GetScanMenu() {
return new MTLib.Terminal.Menu() {
};
}
internal static MTLib.Terminal.Menu GetSettingsMenu() {
return new MTLib.Terminal.Menu() {
};
}
internal static MTLib.Terminal.Menu GetMainMenu() {
return new MTLib.Terminal.Menu() {
Title = $"Cosmoray",
Description = "intrusive ray detektor",
Writer = MTLib.Terminal.Writers.TypewriterConsoleWriter,
AllowTriggerByIndex = true,
AllowHelp = true,
Carriage = "~=> ",
ClearConsole = true,
MasterStyle = matrixStyle,
CarriageStyle = matrixCarriageStyle,
PromptStyle = matrixCarriageStyle,
Triggers = {
{ "begin", GetScanMenu() },
{ "settings", GetSettingsMenu() },
},
Hooks = {
{ "exit", MTLib.Terminal.Menu.Macros.Exit }
},
};
}
}