Skip to content

Commit 99dc4c0

Browse files
committed
edit skip btn
1 parent 382c1ec commit 99dc4c0

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

BetterWutheringWaves/Core/Config/Global.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BetterWutheringWaves.Core.Config;
55

66
public class Global
77
{
8-
public static string Version { get; } = "0.10.0";
8+
public static string Version { get; } = "0.11.0";
99

1010
public static string StartUpPath { get; set; } = AppContext.BaseDirectory;
1111

BetterWutheringWaves/Core/Config/HotKeyConfig.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ public partial class HotKeyConfig : ObservableObject
149149
[ObservableProperty]
150150
private string _autoMusicGameHotkeyType = HotKeyTypeEnum.KeyboardMonitor.ToString();
151151

152-
// 自动寻路
152+
// 测试
153153
[ObservableProperty]
154-
private string _autoTrackPathHotkey = "";
154+
private string _test1Hotkey = "";
155155

156156
[ObservableProperty]
157-
private string _autoTrackPathHotkeyType = HotKeyTypeEnum.KeyboardMonitor.ToString();
157+
private string _test1HotkeyType = HotKeyTypeEnum.KeyboardMonitor.ToString();
158158
}
Loading

BetterWutheringWaves/ViewModel/Pages/HotKeyPageViewModel.cs

+15
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
using System.Collections.ObjectModel;
1111
using System.Diagnostics;
1212
using System.Reflection;
13+
using BetterWutheringWaves.Helpers;
1314
using HotKeySettingModel = BetterWutheringWaves.Model.HotKeySettingModel;
1415

1516
namespace BetterWutheringWaves.ViewModel.Pages;
@@ -161,6 +162,20 @@ private void BuildHotKeySettingModelList()
161162
_logger.LogInformation("切换{Name}状态为[{Enabled}]", "自动按下跳过按钮", ToChinese(TaskContext.Instance().Config.AutoSkipConfig.PressSkipEnabled));
162163
}
163164
));
165+
166+
if (RuntimeHelper.IsDebug)
167+
{
168+
HotKeySettingModels.Add(new HotKeySettingModel(
169+
"测试按钮",
170+
nameof(Config.HotKeyConfig.Test1Hotkey),
171+
Config.HotKeyConfig.Test1Hotkey,
172+
Config.HotKeyConfig.Test1HotkeyType,
173+
(_, _) =>
174+
{
175+
},
176+
true
177+
));
178+
}
164179
}
165180

166181
private string ToChinese(bool enabled)

0 commit comments

Comments
 (0)