From 47784ca01cbc1264b6a2faaa2ecf6178c2c551c2 Mon Sep 17 00:00:00 2001 From: erfang <34360545+erfang1998@users.noreply.github.com> Date: Sun, 14 Dec 2025 14:09:02 +0800 Subject: [PATCH] =?UTF-8?q?###=20=E5=8A=9F=E8=83=BD=E8=AF=B4=E6=98=8E=20(#?= =?UTF-8?q?2528)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 辉鸭蛋 --- .../GameTask/AutoSkip/AutoSkipConfig.cs | 6 +++++ .../GameTask/AutoSkip/AutoSkipTrigger.cs | 5 ++++ .../View/Pages/TriggerSettingsPage.xaml | 26 +++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipConfig.cs b/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipConfig.cs index 1eb40535..ce31dcf8 100644 --- a/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipConfig.cs +++ b/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipConfig.cs @@ -36,6 +36,12 @@ public partial class AutoSkipConfig : ObservableObject [ObservableProperty] private int _afterChooseOptionSleepDelay = 0; + /// + /// 点击对话框前的延迟(毫秒) + /// + [ObservableProperty] + private int _beforeClickConfirmDelay = 0; + /// /// 自动领取每日委托奖励 /// diff --git a/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipTrigger.cs b/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipTrigger.cs index 7b56ea1b..ca790da6 100644 --- a/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipTrigger.cs +++ b/BetterGenshinImpact/GameTask/AutoSkip/AutoSkipTrigger.cs @@ -205,6 +205,11 @@ public partial class AutoSkipTrigger : ITaskTrigger _prevPlayingTime = DateTime.Now; if (TaskContext.Instance().Config.AutoSkipConfig.QuicklySkipConversationsEnabled) { + if (_config.BeforeClickConfirmDelay > 0) + { + // 在触发点击动作之前延迟时间 + Thread.Sleep(_config.BeforeClickConfirmDelay); + } if (IsUseInteractionKey) { _postMessageSimulator? .SimulateActionBackground(GIActions.PickUpOrInteract); // 注意这里不是交互键 NOTE By Ayu0K: 这里确实是交互键 diff --git a/BetterGenshinImpact/View/Pages/TriggerSettingsPage.xaml b/BetterGenshinImpact/View/Pages/TriggerSettingsPage.xaml index 2a8023a5..6f89f566 100644 --- a/BetterGenshinImpact/View/Pages/TriggerSettingsPage.xaml +++ b/BetterGenshinImpact/View/Pages/TriggerSettingsPage.xaml @@ -429,6 +429,32 @@ Margin="0,0,24,0" Text="{Binding Config.AutoSkipConfig.AfterChooseOptionSleepDelay, Mode=TwoWay}" /> + + + + + + + + + + + + +