diff --git a/installer/AppShell.xaml b/installer/AppShell.xaml index 031ce892..cecf050f 100755 --- a/installer/AppShell.xaml +++ b/installer/AppShell.xaml @@ -19,6 +19,9 @@ + diff --git a/installer/Data/ConfigFileData.cs b/installer/Data/ConfigFileData.cs index d0579e18..1eb78542 100644 --- a/installer/Data/ConfigFileData.cs +++ b/installer/Data/ConfigFileData.cs @@ -23,7 +23,7 @@ public record CommandFile public string PlayerID { get; set; } = "0"; - public string SweeperType { get; set; } = "0"; + public string ShipType { get; set; } = "0"; public string PlaybackFile { get; set; } = "CLGG!@#$%^&*()_+"; @@ -120,13 +120,13 @@ public string PlayerID } - public string SweeperType + public string ShipType { - get => file.SweeperType; + get => file.ShipType; set { - var temp = file.SweeperType; - file.SweeperType = value; + var temp = file.ShipType; + file.ShipType = value; if (temp != value) OnMemoryChanged?.Invoke(this, new EventArgs()); } diff --git a/installer/Model/Logger.cs b/installer/Model/Logger.cs index 6aed625b..ff982356 100644 --- a/installer/Model/Logger.cs +++ b/installer/Model/Logger.cs @@ -30,6 +30,22 @@ public enum LogLevel public class LogRecord { public LogLevel Level { get; set; } + public string Color + { + get + { + return Level switch + { + LogLevel.Trace => "Black", + LogLevel.Debug => "Black", + LogLevel.Information => "Black", + LogLevel.Warning => "Yellow", + LogLevel.Error => "Red", + LogLevel.Critical => "DarkRed", + _ => "White", + }; + } + } public string Message { get; set; } = string.Empty; } diff --git a/installer/Page/HelpPage.xaml b/installer/Page/HelpPage.xaml new file mode 100644 index 00000000..8c106fa4 --- /dev/null +++ b/installer/Page/HelpPage.xaml @@ -0,0 +1,92 @@ + + + + + + + + \ No newline at end of file diff --git a/installer/Page/HelpPage.xaml.cs b/installer/Page/HelpPage.xaml.cs new file mode 100644 index 00000000..07018e36 --- /dev/null +++ b/installer/Page/HelpPage.xaml.cs @@ -0,0 +1,12 @@ +using installer.ViewModel; + +namespace installer.Page; + +public partial class HelpPage : ContentPage +{ + public HelpPage(HelpViewModel viewModel) + { + InitializeComponent(); + BindingContext = viewModel; + } +} \ No newline at end of file diff --git a/installer/Page/InstallPage.xaml b/installer/Page/InstallPage.xaml index 88318e76..de1ecf90 100644 --- a/installer/Page/InstallPage.xaml +++ b/installer/Page/InstallPage.xaml @@ -8,90 +8,103 @@ - -