mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-25 09:29:49 +08:00
43 lines
1.7 KiB
C#
43 lines
1.7 KiB
C#
using BetterGenshinImpact.Core.Recognition;
|
|
using BetterGenshinImpact.GameTask.Model;
|
|
using OpenCvSharp;
|
|
|
|
namespace BetterGenshinImpact.GameTask.GameLoading.Assets;
|
|
|
|
public class GameLoadingAssets : BaseAssets<GameLoadingAssets>
|
|
{
|
|
public RecognitionObject ChooseEnterGameRo;
|
|
public RecognitionObject EnterGameRo;
|
|
public RecognitionObject WelkinMoonRo;
|
|
|
|
private GameLoadingAssets()
|
|
{
|
|
ChooseEnterGameRo = new RecognitionObject
|
|
{
|
|
Name = "ChooseEnterGame",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("GameLoading", "choose_enter_game.png"),
|
|
RegionOfInterest = new Rect(0, CaptureRect.Height / 2, CaptureRect.Width, CaptureRect.Height - CaptureRect.Height / 2),
|
|
DrawOnWindow = false
|
|
}.InitTemplate();
|
|
|
|
EnterGameRo = new RecognitionObject
|
|
{
|
|
Name = "EnterGame",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("GameLoading", "enter_game.png"),
|
|
RegionOfInterest = new Rect(CaptureRect.Width / 3, CaptureRect.Height / 2, CaptureRect.Width / 3, CaptureRect.Height - CaptureRect.Height / 2),
|
|
DrawOnWindow = false
|
|
}.InitTemplate();
|
|
|
|
WelkinMoonRo = new RecognitionObject
|
|
{
|
|
Name = "WelkinMoon",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("GameLoading", "welkin_moon_logo.png"),
|
|
RegionOfInterest = new Rect(0, CaptureRect.Height / 2, CaptureRect.Width, CaptureRect.Height / 2),
|
|
DrawOnWindow = false
|
|
}.InitTemplate();
|
|
}
|
|
}
|