diff --git a/.gitignore b/.gitignore index 0f341c9..08d91ed 100644 --- a/.gitignore +++ b/.gitignore @@ -345,6 +345,11 @@ !/FMODCoreAPI/Assets/ARM64 !/FMODCoreAPI/Assets/x64 +/Language/Assets/Client.json + +!/LedCSharp/Assets/ARM64 +!/LedCSharp/Assets/x64 + !/Qwilight/Assets/ARM64 /Qwilight/Assets/ARM64/Flint.exe /Qwilight/Assets/ARM64/Igniter.exe @@ -356,19 +361,14 @@ /Qwilight/Assets/x64/NVIDIA.dll /Qwilight/Assets/x64/Xwindow.exe -/Language/Assets/Client.json - -!/LedCSharp/Assets/ARM64 -!/LedCSharp/Assets/x64 - !/Qwilight/Protobuf/protoc.exe !/Qwilight/Protobuf/protoc-gen-js.exe -!/Qwilight/sdk/tools/ContentBuilder/builder/steamcmd -!/Qwilight/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf -/Qwilight/sdk/tools/ContentBuilder/builder -/Qwilight/sdk/tools/ContentBuilder/output +/Test/qpdgo -/Qwilight.zip +!/sdk/tools/ContentBuilder/builder/steamcmd.exe +!/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf +/sdk/tools/ContentBuilder/builder +/sdk/tools/ContentBuilder/output -/Test/qpdgo \ No newline at end of file +/Qwilight.zip \ No newline at end of file diff --git a/Qwilight.cmd b/Qwilight.cmd index c269b86..0e19a26 100644 --- a/Qwilight.cmd +++ b/Qwilight.cmd @@ -52,7 +52,7 @@ SET /P PW=PW: ) IF %VALVE% == 1 ( - Qwilight\sdk\tools\ContentBuilder\builder\steamcmd +login %ID% %PW% +run_app_build ..\scripts\simple_app_build.vdf +quit + sdk\tools\ContentBuilder\builder\steamcmd +login %ID% %PW% +run_app_build ..\scripts\simple_app_build.vdf +quit ) IF %VALVE% == 1 ( IF %ERRORLEVEL% == 0 ( diff --git a/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml b/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml index 8a5cc80..4c457c8 100644 --- a/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml +++ b/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml @@ -1,115 +1,112 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + DataContext="{Binding MainValue, Source={StaticResource ViewModels}}"> + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - + + + + + + + - + + + + + + + + + + + + + + - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml.cs b/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml.cs index ae9d23c..f821b5b 100644 --- a/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml.cs +++ b/Qwilight/View/MainWindow/DefaultMode/EntryView.xaml.cs @@ -4,6 +4,7 @@ using System.Windows; using System.Windows.Controls; using System.Windows.Input; +using System.Windows.Threading; namespace Qwilight.View { diff --git a/Qwilight/ViewModel/MainViewModel.cs b/Qwilight/ViewModel/MainViewModel.cs index 265b50a..e374059 100644 --- a/Qwilight/ViewModel/MainViewModel.cs +++ b/Qwilight/ViewModel/MainViewModel.cs @@ -93,7 +93,6 @@ int? _lastLowerMillis; bool _wasLowerMillis = true; bool _isUILoading; - bool _isDefaultEntryLoading; bool _isInputWantPointed; bool _isTwilightCommentaryPointed; bool _isDefaultCommentLoading; @@ -480,18 +479,7 @@ } } - public bool IsDefaultEntryLoading - { - get => _isDefaultEntryLoading; - - set - { - if (SetProperty(ref _isDefaultEntryLoading, value, nameof(IsDefaultEntryLoading)) && !value) - { - PointEntryView(); - } - } - } + public bool IsDefaultEntryLoading { get; set; } public bool IsUILoading { @@ -829,7 +817,6 @@ DefaultEntryVarietyValue = DefaultEntryItem.DefaultEntryVariety.Default, DefaultEntryPath = filePath }; - UIHandler.Instance.HandleParallel(() => ViewModels.Instance.ModifyDefaultEntryValue.DefaultEntryItemCollection.Add(defaultEntryItem)); if (!Configure.Instance.DefaultEntryItems.Contains(defaultEntryItem)) { Configure.Instance.DefaultEntryItems.Add(defaultEntryItem); @@ -852,14 +839,8 @@ } if (lastDefaultEntryItem != null) { - UIHandler.Instance.HandleParallel(() => - { - if (!IsDefaultEntryLoading) - { - Configure.Instance.LastDefaultEntryItem = lastDefaultEntryItem; - SetDefaultEntryItems(); - } - }); + Configure.Instance.LastDefaultEntryItem = lastDefaultEntryItem; + SetDefaultEntryItems(); } }); } @@ -1029,6 +1010,7 @@ switch (e.Key) { case Key.System when e.SystemKey != Key.F4: + case Key.Back: case Key.Escape: case Key.Space: e.Handled = true; @@ -2162,7 +2144,7 @@ public void Want(EntryItem wantEntryItem = null) { _wantHandler.Stop(); - if (IsNoteFileMode && !IsDefaultEntryLoading) + if (IsNoteFileMode) { UIHandler.Instance.HandleParallel(() => { diff --git a/Qwilight/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf b/Qwilight/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf deleted file mode 100644 index eef3ffc..0000000 --- a/Qwilight/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf +++ /dev/null @@ -1,21 +0,0 @@ -"AppBuild" -{ - "AppID" "1910130" // your AppID - "Desc" "This is a simple build script" // internal description for this build - - "ContentRoot" "..\..\..\..\bin\x64\Release\net8.0-windows10.0.22621.0\win-x64\publish\" // root content folder, relative to location of this file - "BuildOutput" "..\output\" // build output folder for build logs and build cache files - - "Depots" - { - "1910131" // your DepotID - { - "FileMapping" - { - "LocalPath" "*" // all files from contentroot folder - "DepotPath" "." // mapped into the root of the depot - "recursive" "1" // include all subfolders - } - } - } -} \ No newline at end of file diff --git a/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf b/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf new file mode 100644 index 0000000..a102164 --- /dev/null +++ b/sdk/tools/ContentBuilder/scripts/simple_app_build.vdf @@ -0,0 +1,21 @@ +"AppBuild" +{ + "AppID" "1910130" // your AppID + "Desc" "This is a simple build script" // internal description for this build + + "ContentRoot" "..\..\..\..\Qwilight\bin\x64\Release\net8.0-windows10.0.22621.0\win-x64\publish\" // root content folder, relative to location of this file + "BuildOutput" "..\output\" // build output folder for build logs and build cache files + + "Depots" + { + "1910131" // your DepotID + { + "FileMapping" + { + "LocalPath" "*" // all files from contentroot folder + "DepotPath" "." // mapped into the root of the depot + "recursive" "1" // include all subfolders + } + } + } +} \ No newline at end of file