mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-21 09:45:48 +08:00
auto skip: use new new icon
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.2 KiB |
@@ -7,7 +7,10 @@ namespace BetterGenshinImpact.GameTask.AutoSkip.Assets;
|
||||
public class AutoSkipAssets : BaseAssets<AutoSkipAssets>
|
||||
{
|
||||
public RecognitionObject StopAutoButtonRo;
|
||||
public RecognitionObject ChatReviewButtonRo;
|
||||
|
||||
// public RecognitionObject ChatReviewButtonRo;
|
||||
public RecognitionObject DisabledUiButtonRo;
|
||||
|
||||
public RecognitionObject PlayingTextRo;
|
||||
|
||||
public Rect OptionRoi;
|
||||
@@ -45,12 +48,20 @@ public class AutoSkipAssets : BaseAssets<AutoSkipAssets>
|
||||
DrawOnWindow = true
|
||||
}.InitTemplate();
|
||||
|
||||
ChatReviewButtonRo = new RecognitionObject
|
||||
// ChatReviewButtonRo = new RecognitionObject
|
||||
// {
|
||||
// Name = "ChatReviewButton",
|
||||
// RecognitionType = RecognitionTypes.TemplateMatch,
|
||||
// TemplateImageMat = GameTaskManager.LoadAssetImage("AutoSkip", "chat_review.png"),
|
||||
// RegionOfInterest = new Rect(0, 0, CaptureRect.Width / 4, CaptureRect.Height / 8),
|
||||
// DrawOnWindow = true
|
||||
// }.InitTemplate();
|
||||
DisabledUiButtonRo = new RecognitionObject
|
||||
{
|
||||
Name = "ChatReviewButton",
|
||||
Name = "DisabledUiButton",
|
||||
RecognitionType = RecognitionTypes.TemplateMatch,
|
||||
TemplateImageMat = GameTaskManager.LoadAssetImage("AutoSkip", "chat_review.png"),
|
||||
RegionOfInterest = new Rect(0, 0, CaptureRect.Width / 4, CaptureRect.Height / 8),
|
||||
TemplateImageMat = GameTaskManager.LoadAssetImage("AutoSkip", "disabled_ui.png"),
|
||||
RegionOfInterest = new Rect(0, 0, CaptureRect.Width / 3, CaptureRect.Height / 8),
|
||||
DrawOnWindow = true
|
||||
}.InitTemplate();
|
||||
|
||||
|
||||
@@ -140,7 +140,7 @@ public class AutoSkipTrigger : ITaskTrigger
|
||||
GetDailyRewardsEsc(_config, content);
|
||||
|
||||
// 找左上角剧情自动的按钮
|
||||
using var foundRectArea = content.CaptureRectArea.Find(_autoSkipAssets.ChatReviewButtonRo);
|
||||
using var foundRectArea = content.CaptureRectArea.Find(_autoSkipAssets.DisabledUiButtonRo);
|
||||
|
||||
var isPlaying = !foundRectArea.IsEmpty(); // 播放中
|
||||
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
[
|
||||
"幻想真境剧诗",
|
||||
"开始演奏",
|
||||
"募刻巧像",
|
||||
"绘想游迹",
|
||||
"祀珑典仪",
|
||||
"召唤激流",
|
||||
|
||||
Reference in New Issue
Block a user