mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-09 00:34:14 +08:00
25 lines
839 B
C#
25 lines
839 B
C#
using BetterGenshinImpact.Core.Recognition;
|
|
using BetterGenshinImpact.GameTask.Model;
|
|
using Microsoft.Extensions.Logging;
|
|
using OpenCvSharp;
|
|
|
|
namespace BetterGenshinImpact.GameTask.QuickBuy.Assets;
|
|
|
|
public class QuickBuyAssets : BaseAssets<QuickBuyAssets>
|
|
{
|
|
public RecognitionObject SereniteaPotCoin;
|
|
|
|
private QuickBuyAssets()
|
|
{
|
|
SereniteaPotCoin = new RecognitionObject
|
|
{
|
|
Name = "SereniteaPotCoin",
|
|
RecognitionType = RecognitionTypes.TemplateMatch,
|
|
TemplateImageMat = GameTaskManager.LoadAssetImage("QuickBuy", "SereniteaPotCoin.png"),
|
|
RegionOfInterest = new Rect((int)(1610 * AssetScale),(int)(28 * AssetScale),(int)(160 * AssetScale),(int)(45 * AssetScale)),
|
|
Use3Channels = true,
|
|
DrawOnWindow = true
|
|
}.InitTemplate();
|
|
}
|
|
|
|
} |