From fb7a4aefbd5a94166366e80945c46539d58b6e9c Mon Sep 17 00:00:00 2001 From: RagingLightning Date: Thu, 22 Sep 2022 15:49:21 +0200 Subject: [PATCH 01/19] prepare UI for CC export --- Config.cs | 11 +++++-- MainWindow.xaml | 16 ++++++--- MainWindow.xaml.cs | 81 +++++++++++++++++++++++++++++++++++++--------- 3 files changed, 86 insertions(+), 22 deletions(-) diff --git a/Config.cs b/Config.cs index 808bdf1..7316820 100644 --- a/Config.cs +++ b/Config.cs @@ -1,9 +1,6 @@ #nullable disable warnings using Newtonsoft.Json; -using System; -using System.Collections.Generic; using System.IO; -using System.Windows.Media.Animation; namespace TSW3LM { @@ -41,6 +38,12 @@ public static string GamePath set { entries.GamePath = value; if (!entries.SkipAutosave) Save(); } } + public static string CCPath + { + get { return entries.CCPath; } + set { entries.CCPath = value; if (!entries.SkipAutosave) Save(); } + } + public static string LibraryPath { get { return entries.LibraryPath; } @@ -87,6 +90,7 @@ private class Entries { public bool SkipAutosave = false; public string GamePath = ""; + public string CCPath = ""; public string LibraryPath = ""; public bool NoUpdate = false; public bool DevUpdates = false; @@ -97,6 +101,7 @@ internal void ApplyDefaults() { SkipAutosave = false; GamePath = ""; + CCPath = ""; LibraryPath = ""; NoUpdate = false; DevUpdates = false; diff --git a/MainWindow.xaml b/MainWindow.xaml index fa0c2cc..3fd2d31 100644 --- a/MainWindow.xaml +++ b/MainWindow.xaml @@ -23,11 +23,19 @@