using RichCreator.Utility.CV;
using RichCreator.Utility.Structs;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Emgu.CV;
using Emgu.CV.Structure;
using System.Threading;
using RichCreator.Utility.Captures;
using ZTImage.Configuration;
using RichCreator.Utility.Utilitys;
namespace RichCreator.Utility.CV
{
///
/// 组队识别
///
public class GroupCVHelper
{
///
/// 组队窗标题文字
///
private static ColorArray groupTitleText = ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f, "720,233,255,255,255$715,225,255,255,255$718,225,255,255,255$718,227,255,255,255$717,228,255,255,255$717,229,255,255,255$718,230,255,255,255$718,232,255,255,255$717,233,255,255,255$716,233,255,255,255$715,235,255,255,255$719,235,255,255,255$720,234,255,255,255$721,232,255,255,255$721,230,255,255,255$722,229,255,255,255$722,224,255,255,255$767,224,255,255,255$769,224,255,255,255$769,226,255,255,255$769,231,255,255,255$769,234,255,255,255$767,234,255,255,255");
///
/// 搜索按钮文字
///
private static ColorArray searchButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "878,263,222,198,148$875,254,222,198,148$875,256,222,198,148$874,256,222,198,148$877,256,222,198,148$875,258,222,198,148$876,258,222,198,148$874,259,222,198,148$873,260,222,198,148$875,262,222,198,148$875,263,222,198,148$877,263,222,198,148$881,263,222,198,148$882,263,222,198,148$880,261,222,198,148$880,262,222,198,148$879,262,222,198,148$879,257,222,198,148$882,257,222,198,148$882,256,222,198,148$882,255,222,198,148$880,255,222,198,148$879,255,222,198,148$878,255,222,198,148$879,254,222,198,148$885,255,222,198,148$888,255,222,198,148$888,254,222,198,148$889,255,222,198,148$891,255,222,198,148$888,256,222,198,148$888,257,222,198,148$890,257,222,198,148$892,257,222,198,148$892,258,222,198,148$884,258,222,198,148$887,259,222,198,148$886,259,222,198,148$887,263,222,198,148$888,263,222,198,148$885,263,222,198,148$884,263,222,198,148$891,263,222,198,148$892,263,222,198,148");
///
/// 创建队伍按钮文字
///
private static ColorArray createGroupButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "528,601,221,197,147$525,590,221,197,147$524,591,221,197,147$526,591,221,197,147$527,592,221,197,147$523,592,221,197,147$522,593,221,197,147$528,593,221,197,147$527,594,221,197,147$527,597,221,197,147$526,598,221,197,147$525,598,221,197,147$523,598,221,197,147$523,600,221,197,147$524,601,221,197,147$528,599,221,197,147$530,598,221,197,147$530,595,221,197,147$530,592,221,197,147$532,590,221,197,147$532,592,221,197,147$532,596,221,197,147$532,599,221,197,147$532,601,221,197,147$531,601,221,197,147$559,601,221,197,147$559,598,221,197,147$559,596,221,197,147$559,594,221,197,147$558,594,221,197,147$559,592,221,197,147$560,591,221,197,147$560,590,221,197,147$562,591,221,197,147$564,591,221,197,147$567,591,221,197,147$564,592,221,197,147$564,595,221,197,147$562,595,221,197,147$564,597,221,197,147$567,595,221,197,147$568,601,221,197,147$563,601,221,197,147$563,598,221,197,147$561,601,221,197,147");
///
/// 查找队伍信息窗口
///
///
///
///
///
///
///
public static bool FindGroupWindow(out ZTRectangle groupWindowTextRect,out ZTRectangle searchRect, out ZTRectangle createGroupRect,out bool hasGroup,ZTRectangle gameRect)
{
hasGroup = false;
groupWindowTextRect=searchRect = createGroupRect= ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out groupWindowTextRect, image, groupTitleText, gameRect))
{
return false;
}
if (!CVHelper.FindColorArray(out searchRect, image, searchButtonText, gameRect))
{
return false;
}
if (!CVHelper.FindColorArray(out createGroupRect, image, createGroupButtonText, gameRect))
{
if (!CVHelper.FindColorArray(out createGroupRect, image, myGroupButtonText, gameRect))
{
return false;
}
hasGroup = true;
}
return true;
}
///
/// 创建队伍标题文本
///
private static ColorArray createGroupWindowText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "536,102,255,255,255$533,93,255,255,255$532,94,255,255,255$534,94,255,255,255$535,95,255,255,255$531,95,255,255,255$530,96,255,255,255$536,96,255,255,255$535,100,255,255,255$535,97,255,255,255$531,97,255,255,255$531,103,255,255,255$532,104,255,255,255$536,104,255,255,255$534,101,255,255,255$533,101,255,255,255$538,101,255,255,255$538,95,255,255,255$540,93,255,255,255$540,97,255,255,255$540,104,255,255,255$539,104,255,255,255$569,104,255,255,255$571,104,255,255,255$576,104,255,255,255$575,103,255,255,255$571,103,255,255,255$571,101,255,255,255$572,100,255,255,255$570,98,255,255,255$572,98,255,255,255$575,98,255,255,255$572,97,255,255,255$572,94,255,255,255$575,94,255,255,255$570,94,255,255,255$568,93,255,255,255$568,94,255,255,255$567,95,255,255,255$567,97,255,255,255$566,97,255,255,255$567,98,255,255,255$567,101,255,255,255$567,104,255,255,255");
//创建队伍对话框的确定按钮
private static ColorArray okButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "513,300,221,197,147$512,296,221,197,147$514,296,221,197,147$515,296,221,197,147$514,297,221,197,147$514,298,221,197,147$513,299,221,197,147$515,300,221,197,147$515,304,221,197,147$515,305,221,197,147$514,304,221,197,147$513,305,221,197,147$512,301,221,197,147$517,297,221,197,147$518,296,221,197,147$518,295,221,197,147$521,296,221,197,147$521,297,221,197,147$520,298,221,197,147$516,306,221,197,147$517,305,221,197,147$519,305,221,197,147$521,306,221,197,147$522,306,221,197,147$522,305,221,197,147$525,305,221,197,147$524,306,221,197,147$527,305,221,197,147$529,305,221,197,147$529,306,221,197,147$534,306,221,197,147$533,303,221,197,147$529,303,221,197,147$529,300,221,197,147$534,300,221,197,147$534,298,221,197,147$534,297,221,197,147$529,297,221,197,147$524,297,221,197,147$524,298,221,197,147$529,296,221,197,147$528,295,221,197,147");
///
/// 查找创建队伍窗口
///
///
///
///
///
public static bool FindCreateGroupWindow(out ZTRectangle createGroupWindowTextRect,out ZTRectangle okButtonRect,ZTRectangle gameRect)
{
createGroupWindowTextRect = okButtonRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out createGroupWindowTextRect, image, createGroupWindowText, gameRect))
{
return false;
}
ZTRectangle limit = new ZTRectangle(createGroupWindowTextRect.Start.X-150, createGroupWindowTextRect.Start.Y, createGroupWindowTextRect.Start.X+150, createGroupWindowTextRect.Start.Y+275);
if (!CVHelper.FindColorArray(out okButtonRect, image, okButtonText, limit))
{
return false;
}
return true;
}
private static ColorArray myGroupButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "640,549,221,197,147$638,540,221,197,147$637,540,221,197,147$637,541,221,197,147$636,541,221,197,147$635,541,221,197,147$637,542,221,197,147$637,544,221,197,147$634,544,221,197,147$634,549,221,197,147$635,549,221,197,147$636,548,221,197,147$638,547,221,197,147$637,551,221,197,147$636,551,221,197,147$639,550,221,197,147$641,549,221,197,147$642,550,221,197,147$643,551,221,197,147$644,551,221,197,147$644,550,221,197,147$644,549,221,197,147$643,541,221,197,147$644,542,221,197,147$647,541,221,197,147$648,540,221,197,147$646,542,221,197,147$650,542,221,197,147$650,546,221,197,147$648,546,221,197,147$646,546,221,197,147$646,550,221,197,147$648,550,221,197,147$650,550,221,197,147$650,551,221,197,147$646,551,221,197,147$654,551,221,197,147$655,551,221,197,147$656,550,221,197,147$656,547,221,197,147$656,546,221,197,147$656,542,221,197,147$653,542,221,197,147$653,540,221,197,147$652,543,221,197,147$653,545,221,197,147$654,546,221,197,147$654,547,221,197,147$664,546,221,197,147$664,548,221,197,147$666,548,221,197,147$666,546,221,197,147$665,545,221,197,147$662,551,221,197,147$668,551,221,197,147$671,551,221,197,147$673,551,221,197,147$675,551,221,197,147$679,551,221,197,147$680,551,221,197,147$679,550,221,197,147$679,547,221,197,147$679,545,221,197,147$676,545,221,197,147$676,543,221,197,147$676,541,221,197,147$674,541,221,197,147$679,541,221,197,147");
///
/// 查找我的队伍按钮
///
///
///
///
public static bool ExistsMyGroupButton(out ZTRectangle mygroupButton, ZTRectangle limitRect)
{
mygroupButton = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out mygroupButton, image, myGroupButtonText, limitRect))
{
return false;
}
return true;
}
///
/// 组项文本
///
private static ColorArray groupItemText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "956,186,217,203,180$950,184,217,203,180$951,184,217,203,180$956,184,217,203,180$957,184,217,203,180$958,185,217,203,180$955,185,217,203,180$952,185,217,203,180$949,185,217,203,180$950,186,217,203,180$951,186,217,203,180$952,186,217,203,180$957,186,217,203,180$958,186,217,203,180$958,187,217,203,180$955,187,217,203,180$952,187,217,203,180$949,187,217,203,180$950,188,217,203,180$951,188,217,203,180$952,188,217,203,180$953,188,217,203,180$956,188,217,203,180$957,188,217,203,180$958,188,217,203,180$959,188,217,203,180");
///
/// 查找队伍项
///
///
///
///
public static bool FindGroupItem(out ZTRectangle groupItemRect, ZTRectangle limitRect)
{
groupItemRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out groupItemRect, image, groupItemText, limitRect))
{
return false;
}
return true;
}
//队员窗口文本
private static ColorArray groupMemberWindowText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "648,97,170,170,170$650,90,170,170,170$650,91,170,170,170$649,92,170,170,170$648,93,170,170,170$648,94,170,170,170$649,94,170,170,170$650,94,170,170,170$650,95,170,170,170$649,96,170,170,170$650,97,170,170,170$651,97,170,170,170$651,99,170,170,170$650,99,170,170,170$649,100,170,170,170$648,100,170,170,170$652,101,170,170,170$653,101,170,170,170$658,101,170,170,170$657,100,170,170,170$653,100,170,170,170$653,97,170,170,170$655,97,170,170,170$657,97,170,170,170$657,96,170,170,170$657,94,170,170,170$655,94,170,170,170$653,94,170,170,170$653,92,170,170,170$657,92,170,170,170$657,91,170,170,170$655,91,170,170,170$653,91,170,170,170$660,91,170,170,170$663,91,170,170,170$663,93,170,170,170$662,94,170,170,170$662,95,170,170,170$663,96,170,170,170$663,98,170,170,170$662,99,170,170,170$661,99,170,170,170$665,99,170,170,170$665,100,170,170,170$664,101,170,170,170$670,101,170,170,170$669,100,170,170,170$668,98,170,170,170$668,96,170,170,170$667,94,170,170,170$667,90,170,170,170$686,90,170,170,170$692,90,170,170,170$692,92,170,170,170$686,92,170,170,170$685,94,170,170,170$685,98,170,170,170$689,98,170,170,170$693,98,170,170,170$693,100,170,170,170$694,101,170,170,170");
private static ColorArray joinButtonText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "688,242,221,197,147$687,239,221,197,147$686,240,221,197,147$685,241,221,197,147$686,241,221,197,147$688,241,221,197,147$691,241,221,197,147$692,241,221,197,147$692,240,221,197,147$693,241,221,197,147$684,243,221,197,147$685,243,221,197,147$688,243,221,197,147$689,243,221,197,147$694,243,221,197,147$692,244,221,197,147$690,244,221,197,147$686,244,221,197,147$685,245,221,197,147$688,245,221,197,147$689,245,221,197,147$693,245,221,197,147$694,246,221,197,147$691,246,221,197,147$693,248,221,197,147$692,249,221,197,147$690,249,221,197,147$688,250,221,197,147$689,250,221,197,147$685,250,221,197,147$730,250,221,197,147$729,249,221,197,147$729,248,221,197,147$728,247,221,197,147$728,246,221,197,147$728,245,221,197,147$727,244,221,197,147$727,242,221,197,147$727,240,221,197,147$727,239,221,197,147$723,240,221,197,147$723,242,221,197,147$722,243,221,197,147$722,244,221,197,147$723,245,221,197,147$723,247,221,197,147$722,248,221,197,147$721,248,221,197,147$720,249,221,197,147$720,250,221,197,147");
///
/// 查找队伍成员窗口
///
///
///
///
public static bool FindGroupMemberWindow(out ZTRectangle joinButtonRect,ZTRectangle limitRect)
{
ZTRectangle windowTextRect = ZTRectangle.Empty;
joinButtonRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out windowTextRect, image, groupMemberWindowText, limitRect))
{
return false;
}
if (!CVHelper.FindColorArray(out joinButtonRect, image, joinButtonText, limitRect))
{
return false;
}
return true;
}
///
/// 组项文本
///
private static ColorArray ChioceChannelWindowText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "956,186,217,203,180$950,184,217,203,180$951,184,217,203,180$956,184,217,203,180$957,184,217,203,180$958,185,217,203,180$955,185,217,203,180$952,185,217,203,180$949,185,217,203,180$950,186,217,203,180$951,186,217,203,180$952,186,217,203,180$957,186,217,203,180$958,186,217,203,180$958,187,217,203,180$955,187,217,203,180$952,187,217,203,180$949,187,217,203,180$950,188,217,203,180$951,188,217,203,180$952,188,217,203,180$953,188,217,203,180$956,188,217,203,180$957,188,217,203,180$958,188,217,203,180$959,188,217,203,180");
///
/// 查找频道选择窗口
///
///
///
///
public static bool FindChioceWindow(out ZTRectangle groupItemRect, ZTRectangle limitRect)
{
groupItemRect = ZTRectangle.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out groupItemRect, image, groupItemText, limitRect))
{
return false;
}
return true;
}
//邀请入门标题文字
private static ColorArray YaoqingZuduiWindowTitle = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1162,491,255,255,255$1163,481,255,255,255$1162,480,255,255,255$1162,484,255,255,255$1163,484,255,255,255$1163,487,255,255,255$1163,490,255,255,255$1164,491,255,255,255$1167,491,255,255,255$1172,491,255,255,255$1172,490,255,255,255$1171,489,255,255,255$1169,489,255,255,255$1170,488,255,255,255$1170,487,255,255,255$1171,486,255,255,255$1171,482,255,255,255$1172,482,255,255,255$1169,482,255,255,255$1169,480,255,255,255$1166,480,255,255,255$1166,481,255,255,255$1165,481,255,255,255$1167,481,255,255,255$1167,483,255,255,255$1165,483,255,255,255$1165,485,255,255,255$1167,485,255,255,255$1166,487,255,255,255$1164,487,255,255,255$1168,487,255,255,255$1167,489,255,255,255$1175,491,255,255,255$1176,490,255,255,255$1175,487,255,255,255$1175,484,255,255,255$1174,484,255,255,255$1174,480,255,255,255$1175,481,255,255,255$1177,481,255,255,255$1180,481,255,255,255$1180,480,255,255,255$1183,481,255,255,255$1184,481,255,255,255$1205,480,255,255,255$1205,485,255,255,255$1204,486,255,255,255$1204,488,255,255,255$1203,489,255,255,255$1203,490,255,255,255$1202,491,255,255,255$1208,491,255,255,255$1207,490,255,255,255$1206,486,255,255,255$1198,485,255,255,255$1200,485,255,255,255$1201,488,255,255,255$1198,488,255,255,255$1198,491,255,255,255$1200,489,255,255,255");
//申请入门文字
private static ColorArray ShengqingruduiText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1239,637,221,197,147$1137,627,221,197,147$1136,626,221,197,147$1135,630,221,197,147$1137,630,221,197,147$1137,633,221,197,147$1137,636,221,197,147$1138,635,221,197,147$1144,633,221,197,147$1145,632,221,197,147$1145,637,221,197,147$1151,637,221,197,147$1157,637,221,197,147$1157,636,221,197,147$1157,635,221,197,147$1159,636,221,197,147$1161,636,221,197,147$1162,635,221,197,147$1163,635,221,197,147$1164,634,221,197,147$1167,634,221,197,147$1171,635,221,197,147$1175,635,221,197,147$1175,637,221,197,147$1179,635,221,197,147$1179,628,221,197,147$1171,628,221,197,147$1175,626,221,197,147$1181,626,221,197,147$1182,627,221,197,147$1182,637,221,197,147$1183,636,221,197,147$1185,637,221,197,147$1189,637,221,197,147$1190,637,221,197,147$1190,636,221,197,147$1191,631,221,197,147$1231,626,221,197,147$1231,627,221,197,147$1230,628,221,197,147$1230,629,221,197,147$1230,630,221,197,147$1229,630,221,197,147$1230,637,221,197,147$1230,632,221,197,147$1233,631,221,197,147$1238,631,221,197,147$1238,637,221,197,147$1232,637,221,197,147");
///
/// 查找邀请组队窗口
///
///
///
///
///
public static bool FindYaoqingZuduiWindow(out Structs.ZTPoint yesPoint,out Structs.ZTPoint noPoint, ZTRectangle limitRect)
{
ZTRectangle textRect = ZTRectangle.Empty;
yesPoint = Structs.ZTPoint.Empty;
noPoint = Structs.ZTPoint.Empty;
Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
if (!CVHelper.FindColorArray(out textRect, image, YaoqingZuduiWindowTitle, limitRect))
{
return false;
}
ZTRectangle shengqingTextRect = ZTRectangle.Empty;
if (!CVHelper.FindColorArray(out shengqingTextRect, image, ShengqingruduiText, limitRect))
{
return false;
}
Structs.ZTPoint center = textRect.GetCenterPoint();
yesPoint = new Structs.ZTPoint(center.X - 28, center.Y + 186);
noPoint = new Structs.ZTPoint(center.X + 28, center.Y + 186);
return true;
}
///
/// 频道项
///
public enum ChannelItem:Int32
{
CH123031=0,
CH12031=1,
CH4031=2,
CH1232=3,
CH4032=4
}
//public static bool FindCommonUpDownKey(out ZTRectangle upKeyRect, out ZTRectangle downKeyRect, ZTRectangle titleRect, ZTRectangle gameRect)
//{
// upKeyRect = downKeyRect = ZTRectangle.Empty;
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// ZTRectangle updownkeylimit = new ZTRectangle(titleRect.Start.X, titleRect.Start.Y, titleRect.Start.X + 222, gameRect.End.Y);
// if (!CVHelper.FindColorArray(out upKeyRect, image, upKey, updownkeylimit))
// {
// return false;
// }
// if (!CVHelper.FindColorArray(out downKeyRect, image, downKey, updownkeylimit))
// {
// return false;
// }
// return true;
//}
//private static ColorArray notificationText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "661,316,255,255,255$658,306,255,255,255$658,308,255,255,255$657,309,255,255,255$657,310,255,255,255$660,311,255,255,255$660,310,255,255,255$659,313,255,255,255$659,312,255,255,255$656,316,255,255,255$657,316,255,255,255$658,316,255,255,255$659,316,255,255,255$660,316,255,255,255$664,316,255,255,255$668,316,255,255,255$668,317,255,255,255$668,313,255,255,255$676,313,255,255,255$676,317,255,255,255$676,311,255,255,255$672,311,255,255,255$668,311,255,255,255$668,309,255,255,255$669,308,255,255,255$672,306,255,255,255$672,308,255,255,255$672,310,255,255,255$673,308,255,255,255$675,308,255,255,255$676,308,255,255,255");
/////
///// 是否存在公告文本
/////
/////
/////
//public static bool ExistsNotificationText(out ZTRectangle notificationRect,ZTRectangle gameRect)
//{
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// if (!CVHelper.FindColorArray(out notificationRect, image, notificationText, gameRect))
// {
// return false;
// }
// return true;
//}
/////
///// 加技能时向右的红色按钮
/////
//private static ColorArray rightRedButton = ColorArray.FromHsvFloatString(0.002f, 0.02f, 0.02f, "515,264,255,34,34$515,259,255,51,51$515,260,255,34,34$515,261,255,34,34$515,262,255,34,34$515,263,255,34,34$515,265,255,34,34$516,265,255,34,34$516,261,255,34,34$516,260,255,34,34$517,261,255,34,34$517,262,255,34,34$517,264,255,34,34$518,262,255,34,34$518,263,255,34,34$521,259,255,51,51$521,260,255,34,34$521,266,255,51,51$521,265,255,34,34$521,264,255,34,34$521,263,255,34,34$522,264,255,34,34$522,265,255,34,34$522,260,255,34,34$522,261,255,34,34$523,262,255,34,34$523,261,255,34,34$523,264,255,34,34$523,263,255,34,34$524,263,255,34,34$524,262,255,34,34");
/////
///// 加技能时向右的灰色按钮
/////
//private static ColorArray grayRedButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "516,261,153,153,153$515,259,153,153,153$515,260,153,153,153$515,262,153,153,153$515,263,153,153,153$515,265,153,153,153$515,266,153,153,153$516,265,153,153,153$516,264,153,153,153$516,262,153,153,153$516,260,153,153,153$517,261,153,153,153$517,262,153,153,153$517,263,153,153,153$517,264,153,153,153$518,263,153,153,153$518,262,153,153,153$521,259,153,153,153$521,260,153,153,153$521,261,153,153,153$521,262,153,153,153$521,263,153,153,153$521,264,153,153,153$521,265,153,153,153$521,266,153,153,153$522,265,153,153,153$522,264,153,153,153$522,261,153,153,153$522,260,153,153,153$523,261,153,153,153$523,262,153,153,153$523,263,153,153,153$523,264,153,153,153$524,263,153,153,153$524,262,153,153,153");
/////
///// 是否已经选中技能
/////
/////
///// 技能是否已经满级
/////
/////
//public static bool IsSelectSkill(out ZTRectangle rightButtonRect,out bool skillIsFullLevel, ZTRectangle limitRect)
//{
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// if (CVHelper.FindColorArray(out rightButtonRect, image, rightRedButton, limitRect))
// {
// //已选中,未满级
// skillIsFullLevel = false;
// return true;
// }
// if (CVHelper.FindColorArray(out rightButtonRect, image, grayRedButton, limitRect))
// {
// //已选中,已满级
// skillIsFullLevel = true;
// return true;
// }
// skillIsFullLevel = false;
// return false;
//}
/////
///// 技能是否已经满级
/////
/////
/////
//public static bool SkillIsFullLevel(ZTRectangle limitRect)
//{
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// ZTRectangle rect = ZTRectangle.Empty;
// if (CVHelper.FindColorArray(out rect, image, grayRedButton, limitRect))
// {
// //已满级
// return true;
// }
// return false;
//}
/////
///// 技能等级数字
/////
//private static ColorArray[] numbers = new ColorArray[] {
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,400,140,140,140$254,396,140,140,140$254,397,140,140,140$253,397,140,140,140$254,398,140,140,140$254,399,140,140,140$254,401,140,140,140$254,402,140,140,140$254,403,140,140,140$253,403,140,140,140$255,403,140,140,140"),//1
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,533,140,140,140$251,532,140,140,140$251,531,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$253,534,140,140,140$252,535,140,140,140$251,536,140,140,140$251,537,140,140,140$252,537,140,140,140$253,537,140,140,140$254,537,140,140,140$255,537,140,140,140"),//2
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "255,532,140,140,140$251,531,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$254,533,140,140,140$253,533,140,140,140$255,534,140,140,140$255,535,140,140,140$255,536,140,140,140$254,537,140,140,140$253,537,140,140,140$252,537,140,140,140$251,536,140,140,140"),//3
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "252,332,140,140,140$255,334,140,140,140$254,334,140,140,140$253,334,140,140,140$252,334,140,140,140$251,334,140,140,140$251,333,140,140,140$253,331,140,140,140$253,330,140,140,140$254,329,140,140,140$254,330,140,140,140$254,331,140,140,140$254,332,140,140,140$254,333,140,140,140$254,335,140,140,140$254,336,140,140,140$255,336,140,140,140$253,336,140,140,140"),//4
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "251,467,140,140,140$255,463,140,140,140$254,463,140,140,140$253,463,140,140,140$252,463,140,140,140$251,463,140,140,140$251,464,140,140,140$251,465,140,140,140$251,466,140,140,140$252,466,140,140,140$253,466,140,140,140$254,466,140,140,140$255,467,140,140,140$255,468,140,140,140$255,469,140,140,140$254,470,140,140,140$253,470,140,140,140$252,470,140,140,140$251,469,140,140,140"),//5
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "252,537,140,140,140$255,531,140,140,140$254,530,140,140,140$253,530,140,140,140$252,531,140,140,140$251,532,140,140,140$251,533,140,140,140$251,534,140,140,140$251,535,140,140,140$251,536,140,140,140$253,537,140,140,140$254,537,140,140,140$255,536,140,140,140$255,535,140,140,140$255,534,140,140,140$254,533,140,140,140$253,533,140,140,140$252,534,140,140,140"),//6
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "254,465,140,140,140$252,463,140,140,140$253,463,140,140,140$254,463,140,140,140$255,463,140,140,140$255,464,140,140,140$254,466,140,140,140$253,467,140,140,140$253,468,140,140,140$253,469,140,140,140$253,470,140,140,140"),//7
// ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "255,534,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$254,533,140,140,140$253,533,140,140,140$252,533,140,140,140$255,535,140,140,140$255,536,140,140,140$254,537,140,140,140$253,537,140,140,140$252,537,140,140,140$251,536,140,140,140$251,535,140,140,140$251,534,140,140,140$251,532,140,140,140$251,531,140,140,140"),//8
//};
/////
///// 是否有数字文本
/////
/////
/////
//public static bool HasNumberText(ZTRectangle limitRect)
//{
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// ZTRectangle rect = ZTRectangle.Empty;
// for (int i = 0; i < numbers.Length; i++)
// {
// if (CVHelper.FindColorArray(out rect, image, numbers[i], limitRect))
// {
// return true;
// }
// }
// return false;
//}
/////
///// 技能节
/////
//private static ColorArray[] numberSections = new ColorArray[] {
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"100,578,140,140,140$109,309,140,140,140$109,310,140,140,140$108,310,140,140,140$109,311,140,140,140$109,312,140,140,140$109,313,140,140,140$109,314,140,140,140$109,315,140,140,140$109,316,140,140,140$110,316,140,140,140$108,316,140,140,140$100,579,140,140,140$101,577,140,140,140$102,577,140,140,140$103,577,140,140,140$104,578,140,140,140$104,579,140,140,140$103,580,140,140,140$102,581,140,140,140$101,582,140,140,140$100,583,140,140,140$100,584,140,140,140$101,584,140,140,140$102,584,140,140,140$103,584,140,140,140$104,584,140,140,140$107,584,140,140,140$109,584,140,140,140$110,583,140,140,140$110,578,140,140,140$109,577,140,140,140$107,577,140,140,140$106,578,140,140,140$106,583,140,140,140"),
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"251,269,140,140,140$251,264,140,140,140$251,263,140,140,140$252,262,140,140,140$253,262,140,140,140$254,262,140,140,140$255,263,140,140,140$255,264,140,140,140$254,265,140,140,140$253,266,140,140,140$252,267,140,140,140$251,268,140,140,140$252,269,140,140,140$253,269,140,140,140$254,269,140,140,140$255,269,140,140,140$258,269,140,140,140$260,269,140,140,140$261,268,140,140,140$261,263,140,140,140$260,262,140,140,140$258,262,140,140,140$257,263,140,140,140$257,268,140,140,140$254,530,140,140,140$254,531,140,140,140$253,531,140,140,140$253,532,140,140,140$254,532,140,140,140$254,533,140,140,140$252,533,140,140,140$251,534,140,140,140$254,534,140,140,140$255,535,140,140,140$254,535,140,140,140$253,535,140,140,140$252,535,140,140,140$251,535,140,140,140$254,536,140,140,140$254,537,140,140,140$255,537,140,140,140$253,537,140,140,140"),
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"261,334,140,140,140$251,329,140,140,140$252,329,140,140,140$253,329,140,140,140$254,329,140,140,140$255,329,140,140,140$258,329,140,140,140$259,329,140,140,140$260,329,140,140,140$261,330,140,140,140$261,331,140,140,140$261,335,140,140,140$260,336,140,140,140$258,336,140,140,140$257,335,140,140,140$257,334,140,140,140$257,330,140,140,140$251,330,140,140,140$251,332,140,140,140$252,332,140,140,140$253,332,140,140,140$254,332,140,140,140$251,333,140,140,140$255,333,140,140,140$255,334,140,140,140$255,335,140,140,140$254,336,140,140,140$253,336,140,140,140$252,336,140,140,140$251,335,140,140,140$252,530,140,140,140$253,530,140,140,140$254,530,140,140,140$255,531,140,140,140$255,532,140,140,140$254,533,140,140,140$253,533,140,140,140$252,533,140,140,140$251,534,140,140,140$251,535,140,140,140$251,536,140,140,140$252,537,140,140,140$253,537,140,140,140$254,537,140,140,140$255,536,140,140,140$255,535,140,140,140$255,534,140,140,140")
//};
/////
///// 查找技能节
/////
/////
/////
/////
/////
//public static bool IsNumberSections(out Int32 numberSection,out ZTRectangle sectionRect, ZTRectangle limitRect)
//{
// numberSection = 0;
// sectionRect = ZTRectangle.Empty;
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// for (int i = 0; i < numberSections.Length; i++)
// {
// if (CVHelper.FindColorArray(out sectionRect, image, numberSections[i], limitRect))
// {
// numberSection = i;
// return true;
// }
// }
// return false;
//}
/////
///// 已学技能文字
///// 白色
///// 灰色
/////
//private static ColorArray[] studayedText = new ColorArray[] {
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"739,471,255,255,255$739,468,255,255,255$740,468,255,255,255$742,468,255,255,255$743,468,255,255,255$745,468,255,255,255$746,468,255,255,255$747,468,255,255,255$747,469,255,255,255$747,472,255,255,255$747,473,255,255,255$746,473,255,255,255$739,473,255,255,255$739,477,255,255,255$739,476,255,255,255$740,478,255,255,255$741,478,255,255,255$747,478,255,255,255$748,478,255,255,255$748,477,255,255,255$748,476,255,255,255$753,478,255,255,255$755,478,255,255,255$755,474,255,255,255$760,474,255,255,255$750,474,255,255,255$756,473,255,255,255$757,472,255,255,255$758,471,255,255,255$752,471,255,255,255$750,470,255,255,255$750,469,255,255,255$751,469,255,255,255$753,469,255,255,255$755,469,255,255,255$757,469,255,255,255$760,469,255,255,255$760,470,255,255,255"),
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"739,476,170,170,170$739,468,170,170,170$740,468,170,170,170$743,468,170,170,170$744,468,170,170,170$747,468,170,170,170$747,469,170,170,170$747,472,170,170,170$747,473,170,170,170$746,473,170,170,170$742,473,170,170,170$740,473,170,170,170$739,473,170,170,170$739,472,170,170,170$739,471,170,170,170$739,477,170,170,170$740,478,170,170,170$741,478,170,170,170$744,478,170,170,170$748,478,170,170,170$748,477,170,170,170$748,476,170,170,170$753,478,170,170,170$754,478,170,170,170$755,478,170,170,170$755,477,170,170,170$755,474,170,170,170$750,474,170,170,170$751,474,170,170,170$760,474,170,170,170$759,474,170,170,170$756,473,170,170,170$757,472,170,170,170$758,471,170,170,170$756,471,170,170,170$752,471,170,170,170$750,470,170,170,170$750,469,170,170,170$751,469,170,170,170$757,469,170,170,170$759,469,170,170,170$760,469,170,170,170$760,470,170,170,170"),
//};
/////
///// 已学技能窗口是否打开
/////
/////
//public static bool StudaySkillWindowIsOpen(out ZTRectangle innerstudyTextRect,ZTRectangle gameRect)
//{
// innerstudyTextRect = ZTRectangle.Empty;
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// for (int i = 0; i < studayedText.Length; i++)
// {
// if (CVHelper.FindColorArray(out innerstudyTextRect, image, studayedText[i], gameRect))
// {
// return true;
// }
// }
// return false;
//}
//private static ColorArray[] skillsText = new ColorArray[] {
// //0.后跳
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"555,357,247,214,90$555,353,247,214,90$554,353,247,214,90$553,353,247,214,90$552,354,247,214,90$551,354,247,214,90$550,354,247,214,90$548,354,247,214,90$548,357,247,214,90$549,357,247,214,90$550,357,247,214,90$552,357,247,214,90$556,357,247,214,90$556,360,247,214,90$556,361,247,214,90$556,363,247,214,90$550,363,247,214,90$550,364,247,214,90$550,360,247,214,90$548,361,247,214,90$548,359,247,214,90$558,353,247,214,90$561,353,247,214,90$561,356,247,214,90$558,356,247,214,90$560,357,247,214,90$560,362,247,214,90$561,362,247,214,90$561,359,247,214,90$564,353,247,214,90$564,356,247,214,90$564,359,247,214,90$564,362,247,214,90$563,363,247,214,90$562,364,247,214,90$567,364,247,214,90$568,364,247,214,90$568,363,247,214,90$568,362,247,214,90$568,360,247,214,90"),
// //1.魔法旋风
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"563,51,247,214,90$569,42,247,214,90$568,42,247,214,90$565,42,247,214,90$565,41,247,214,90$561,42,247,214,90$560,42,247,214,90$560,51,247,214,90$559,52,247,214,90$561,52,247,214,90$562,52,247,214,90$565,51,247,214,90$566,52,247,214,90$567,52,247,214,90$569,52,247,214,90$569,51,247,214,90$571,51,247,214,90$572,50,247,214,90$573,49,247,214,90$574,51,247,214,90$581,52,247,214,90$581,47,247,214,90$577,47,247,214,90$573,47,247,214,90$574,44,247,214,90$577,44,247,214,90$580,44,247,214,90$577,41,247,214,90$585,41,247,214,90$586,42,247,214,90$589,41,247,214,90$589,43,247,214,90$593,43,247,214,90$593,45,247,214,90$593,46,247,214,90$583,44,247,214,90$584,51,247,214,90$583,52,247,214,90$585,52,247,214,90$586,52,247,214,90$588,52,247,214,90$590,52,247,214,90$593,52,247,214,90$595,52,247,214,90$596,51,247,214,90$597,50,247,214,90$596,42,247,214,90$603,42,247,214,90$603,50,247,214,90$604,51,247,214,90$605,52,247,214,90$605,49,247,214,90$601,50,247,214,90$600,49,247,214,90$599,47,247,214,90"),
// //2.魔法冰球
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"598,311,247,214,90$596,301,247,214,90$596,302,247,214,90$600,302,247,214,90$591,302,247,214,90$591,311,247,214,90$590,312,247,214,90$592,312,247,214,90$593,312,247,214,90$594,311,247,214,90$596,311,247,214,90$600,311,247,214,90$600,312,247,214,90$602,311,247,214,90$603,310,247,214,90$604,309,247,214,90$606,311,247,214,90$605,311,247,214,90$606,310,247,214,90$612,311,247,214,90$612,312,247,214,90$611,310,247,214,90$610,309,247,214,90$612,307,247,214,90$608,307,247,214,90$604,307,247,214,90$603,306,247,214,90$602,305,247,214,90$603,301,247,214,90$604,302,247,214,90$605,304,247,214,90$608,304,247,214,90$608,301,247,214,90$611,304,247,214,90$612,307,247,214,90$611,307,247,214,90$616,308,247,214,90$615,309,247,214,90$614,310,247,214,90$617,309,247,214,90$617,310,247,214,90$618,308,247,214,90$618,305,247,214,90$616,305,247,214,90$620,301,247,214,90$620,312,247,214,90$619,312,247,214,90$624,311,247,214,90$623,310,247,214,90$623,309,247,214,90$622,308,247,214,90$622,306,247,214,90$623,305,247,214,90$624,304,247,214,90$626,302,247,214,90$629,302,247,214,90$628,306,247,214,90$629,306,247,214,90$626,306,247,214,90$630,310,247,214,90$628,310,247,214,90$633,312,247,214,90$632,312,247,214,90$633,304,247,214,90$633,301,247,214,90$630,304,247,214,90$636,304,247,214,90"),
// //3.狂风冲刺
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"619,273,247,214,90$610,264,247,214,90$611,263,247,214,90$611,262,247,214,90$611,265,247,214,90$610,268,247,214,90$611,272,247,214,90$610,273,247,214,90$609,273,247,214,90$613,273,247,214,90$619,268,247,214,90$613,268,247,214,90$613,263,247,214,90$619,263,247,214,90$622,263,247,214,90$629,263,247,214,90$633,263,247,214,90$640,263,247,214,90$640,262,247,214,90$648,264,247,214,90$648,262,247,214,90$651,264,247,214,90$653,264,247,214,90$655,262,247,214,90$655,273,247,214,90$654,273,247,214,90$653,270,247,214,90$651,269,247,214,90$650,269,247,214,90$651,272,247,214,90$648,272,247,214,90$648,273,247,214,90$645,272,247,214,90$640,272,247,214,90$640,273,247,214,90$643,269,247,214,90$643,270,247,214,90$642,269,247,214,90"),
// //4.朔风牵引
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"644,315,247,214,90$641,314,247,214,90$642,315,247,214,90$645,314,247,214,90$647,315,247,214,90$647,316,247,214,90$648,315,247,214,90$650,315,247,214,90$653,315,247,214,90$660,315,247,214,90$660,316,247,214,90$665,315,247,214,90$669,315,247,214,90$669,314,247,214,90$673,315,247,214,90$676,315,247,214,90$680,315,247,214,90$684,315,247,214,90$684,314,247,214,90$684,325,247,214,90$684,324,247,214,90$680,324,247,214,90$679,325,247,214,90$677,325,247,214,90$674,323,247,214,90$669,323,247,214,90$669,325,247,214,90$664,323,247,214,90$665,323,247,214,90$665,322,247,214,90$662,325,247,214,90$662,324,247,214,90$661,324,247,214,90$660,323,247,214,90$658,323,247,214,90$654,323,247,214,90$653,323,247,214,90$653,324,247,214,90$652,325,247,214,90$650,325,247,214,90$649,325,247,214,90$647,324,247,214,90$646,325,247,214,90$641,325,247,214,90$642,324,247,214,90"),
// //5.流风决
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"696,302,247,214,90$683,302,247,214,90$684,303,247,214,90$686,303,247,214,90$690,303,247,214,90$690,302,247,214,90$689,301,247,214,90$693,303,247,214,90$696,303,247,214,90$703,302,247,214,90$703,303,247,214,90$709,302,247,214,90$708,301,247,214,90$711,303,247,214,90$713,303,247,214,90$713,301,247,214,90$716,303,247,214,90$716,307,247,214,90$717,307,247,214,90$713,307,247,214,90$713,308,247,214,90$714,309,247,214,90$714,310,247,214,90$715,311,247,214,90$716,312,247,214,90$717,312,247,214,90$710,312,247,214,90$711,311,247,214,90$712,310,247,214,90$712,309,247,214,90$709,310,247,214,90$708,310,247,214,90$708,311,247,214,90$705,311,247,214,90$705,309,247,214,90$705,312,247,214,90$703,310,247,214,90$701,310,247,214,90$697,310,247,214,90$691,311,247,214,90$691,308,247,214,90$693,310,247,214,90$693,312,247,214,90$689,312,247,214,90$689,308,247,214,90$687,308,247,214,90$687,310,247,214,90"),
// //6.风鸣冲击
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"723,318,247,214,90$703,315,247,214,90$706,315,247,214,90$710,315,247,214,90$714,315,247,214,90$717,315,247,214,90$719,315,247,214,90$720,315,247,214,90$720,314,247,214,90$723,315,247,214,90$722,318,247,214,90$721,317,247,214,90$719,320,247,214,90$724,320,247,214,90$724,322,247,214,90$724,324,247,214,90$723,325,247,214,90$722,325,247,214,90$722,323,247,214,90$720,323,247,214,90$717,323,247,214,90$717,322,247,214,90$714,322,247,214,90$714,323,247,214,90$714,318,247,214,90$717,318,247,214,90$727,316,247,214,90$726,315,247,214,90$730,316,247,214,90$733,316,247,214,90$733,314,247,214,90$736,316,247,214,90$736,321,247,214,90$736,322,247,214,90$733,321,247,214,90$733,325,247,214,90$739,316,247,214,90$743,316,247,214,90$743,314,247,214,90$747,316,247,214,90$747,319,247,214,90$748,319,247,214,90$747,321,247,214,90$747,324,247,214,90$747,325,247,214,90$743,324,247,214,90$739,324,247,214,90$739,321,247,214,90"),
// //7.游离之风
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"523,330,247,214,90$516,320,247,214,90$517,321,247,214,90$519,321,247,214,90$521,321,247,214,90$520,320,247,214,90$519,319,247,214,90$519,324,247,214,90$519,329,247,214,90$518,330,247,214,90$516,329,247,214,90$524,330,247,214,90$524,326,247,214,90$526,326,247,214,90$525,324,247,214,90$525,323,247,214,90$523,323,247,214,90$522,322,247,214,90$521,321,247,214,90$523,321,247,214,90$523,319,247,214,90$525,321,247,214,90$526,321,247,214,90$528,320,247,214,90$533,320,247,214,90$533,319,247,214,90$538,320,247,214,90$537,322,247,214,90$537,324,247,214,90$529,324,247,214,90$529,322,247,214,90$528,326,247,214,90$528,330,247,214,90$535,330,247,214,90$535,329,247,214,90$537,330,247,214,90$538,330,247,214,90$538,326,247,214,90$540,322,247,214,90$544,322,247,214,90$548,322,247,214,90$549,330,247,214,90$544,330,247,214,90$543,329,247,214,90$540,330,247,214,90$543,327,247,214,90$544,326,247,214,90$545,325,247,214,90$546,324,247,214,90$547,323,247,214,90$552,320,247,214,90$559,320,247,214,90$559,325,247,214,90$559,328,247,214,90$560,329,247,214,90$561,330,247,214,90$561,329,247,214,90$561,327,247,214,90$551,330,247,214,90$552,329,247,214,90$552,324,247,214,90"),
// //8.双翼风刃
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"548,364,247,214,90$547,359,247,214,90$551,359,247,214,90$551,362,247,214,90$550,363,247,214,90$550,364,247,214,90$549,365,247,214,90$549,366,247,214,90$550,367,247,214,90$550,368,247,214,90$548,368,247,214,90$548,367,247,214,90$548,363,247,214,90$547,362,247,214,90$553,361,247,214,90$553,359,247,214,90$557,359,247,214,90$557,362,247,214,90$557,369,247,214,90$552,369,247,214,90$559,358,247,214,90$563,358,247,214,90$563,360,247,214,90$563,361,247,214,90$561,361,247,214,90$561,360,247,214,90$560,359,247,214,90$565,358,247,214,90$569,358,247,214,90$569,361,247,214,90$567,360,247,214,90$566,359,247,214,90$572,359,247,214,90$579,359,247,214,90$584,359,247,214,90$588,359,247,214,90$593,359,247,214,90$593,368,247,214,90$592,369,247,214,90$590,369,247,214,90$584,369,247,214,90$583,369,247,214,90$584,365,247,214,90$585,364,247,214,90$585,362,247,214,90$579,367,247,214,90$577,367,247,214,90$573,367,247,214,90$569,367,247,214,90$566,366,247,214,90$562,366,247,214,90$561,364,247,214,90$564,364,247,214,90$567,364,247,214,90$567,362,247,214,90$564,362,247,214,90$561,362,247,214,90"),
// //9.风暴之眼
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"593,324,247,214,90$579,320,247,214,90$586,320,247,214,90$591,320,247,214,90$591,319,247,214,90$596,319,247,214,90$599,319,247,214,90$599,323,247,214,90$595,323,247,214,90$595,321,247,214,90$595,325,247,214,90$593,325,247,214,90$591,325,247,214,90$599,325,247,214,90$590,327,247,214,90$593,327,247,214,90$597,327,247,214,90$600,327,247,214,90$600,329,247,214,90$599,329,247,214,90$597,329,247,214,90$595,329,247,214,90$593,329,247,214,90$591,329,247,214,90$590,329,247,214,90$592,330,247,214,90$594,330,247,214,90$595,330,247,214,90$598,330,247,214,90$613,329,247,214,90$616,329,247,214,90$614,328,247,214,90$615,325,247,214,90$615,322,247,214,90$614,322,247,214,90$614,319,247,214,90$615,319,247,214,90$616,321,247,214,90$616,323,247,214,90$613,323,247,214,90$613,327,247,214,90$616,327,247,214,90$618,329,247,214,90$618,322,247,214,90$618,319,247,214,90$619,319,247,214,90$621,319,247,214,90$622,319,247,214,90$622,320,247,214,90"),
// //10.真空旋风破
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"618,320,247,214,90$610,320,247,214,90$611,320,247,214,90$614,320,247,214,90$614,319,247,214,90$615,320,247,214,90$616,320,247,214,90$614,321,247,214,90$611,322,247,214,90$614,322,247,214,90$617,322,247,214,90$617,324,247,214,90$615,324,247,214,90$612,324,247,214,90$611,324,247,214,90$611,325,247,214,90$617,325,247,214,90$617,326,247,214,90$615,326,247,214,90$613,326,247,214,90$611,326,247,214,90$611,327,247,214,90$617,327,247,214,90$619,328,247,214,90$617,328,247,214,90$616,328,247,214,90$613,328,247,214,90$612,328,247,214,90$610,328,247,214,90$609,328,247,214,90$611,330,247,214,90$612,329,247,214,90$616,329,247,214,90$617,330,247,214,90$621,330,247,214,90$631,330,247,214,90$640,330,247,214,90$643,330,247,214,90$645,330,247,214,90$655,330,247,214,90$658,329,247,214,90$659,328,247,214,90$660,328,247,214,90$660,324,247,214,90$658,324,247,214,90$657,325,247,214,90$657,320,247,214,90$660,320,247,214,90$662,321,247,214,90$665,321,247,214,90$665,319,247,214,90$667,321,247,214,90$667,322,247,214,90$665,322,247,214,90$665,323,247,214,90$665,324,247,214,90$666,324,247,214,90$666,327,247,214,90$665,328,247,214,90$664,329,247,214,90$663,330,247,214,90$667,330,247,214,90$666,329,247,214,90"),
// //11.风暴之拳
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"645,311,247,214,90$641,307,247,214,90$641,309,247,214,90$641,310,247,214,90$641,316,247,214,90$640,317,247,214,90$642,315,247,214,90$643,314,247,214,90$644,313,247,214,90$644,312,247,214,90$646,309,247,214,90$648,307,247,214,90$648,309,247,214,90$648,315,247,214,90$649,316,247,214,90$650,316,247,214,90$650,317,247,214,90$650,314,247,214,90$653,310,247,214,90$653,308,247,214,90$653,306,247,214,90$658,306,247,214,90$661,306,247,214,90$661,308,247,214,90$661,310,247,214,90$677,306,247,214,90$680,306,247,214,90$683,306,247,214,90$684,307,247,214,90$680,307,247,214,90$677,307,247,214,90$679,308,247,214,90$679,317,247,214,90$680,317,247,214,90$680,316,247,214,90$680,315,247,214,90$684,315,247,214,90$676,315,247,214,90$677,313,247,214,90$680,313,247,214,90$683,313,247,214,90"),
// //12.万象风龙阵
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"680,303,247,214,90$671,294,247,214,90$672,294,247,214,90$674,294,247,214,90$679,294,247,214,90$681,294,247,214,90$674,295,247,214,90$674,298,247,214,90$676,298,247,214,90$678,298,247,214,90$680,298,247,214,90$680,302,247,214,90$679,304,247,214,90$677,304,247,214,90$671,304,247,214,90$672,303,247,214,90$673,302,247,214,90$673,301,247,214,90$674,300,247,214,90$674,299,247,214,90$726,293,247,214,90$726,294,247,214,90$729,295,247,214,90$727,295,247,214,90$724,295,247,214,90$725,296,247,214,90$725,297,247,214,90$724,298,247,214,90$724,299,247,214,90$725,299,247,214,90$726,299,247,214,90$727,299,247,214,90$727,297,247,214,90$728,299,247,214,90$729,299,247,214,90$727,300,247,214,90$727,301,247,214,90$727,302,247,214,90$728,302,247,214,90$729,302,247,214,90$726,302,247,214,90$725,302,247,214,90$724,302,247,214,90$727,303,247,214,90$727,304,247,214,90"),
// //13.风卷残云
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"703,298,247,214,90$703,294,247,214,90$703,295,247,214,90$703,296,247,214,90$703,297,247,214,90$703,301,247,214,90$703,303,247,214,90$702,304,247,214,90$704,302,247,214,90$708,302,247,214,90$710,302,247,214,90$711,303,247,214,90$712,303,247,214,90$712,302,247,214,90$712,301,247,214,90$712,304,247,214,90$747,303,247,214,90$747,304,247,214,90$746,303,247,214,90$743,303,247,214,90$739,303,247,214,90$740,302,247,214,90$741,301,247,214,90$742,300,247,214,90$743,299,247,214,90$745,301,247,214,90$746,302,247,214,90$748,298,247,214,90$747,298,247,214,90$744,298,247,214,90$743,298,247,214,90$739,298,247,214,90$738,298,247,214,90$740,294,247,214,90$741,294,247,214,90$745,294,247,214,90$746,294,247,214,90$723,295,247,214,90$722,295,247,214,90$719,295,247,214,90$716,295,247,214,90$715,295,247,214,90$716,293,247,214,90$717,294,247,214,90$719,294,247,214,90$719,293,247,214,90$721,294,247,214,90$722,293,247,214,90"),
// //14.游龙惊风破
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"519,344,247,214,90$516,338,247,214,90$517,339,247,214,90$518,339,247,214,90$519,339,247,214,90$521,339,247,214,90$520,338,247,214,90$519,337,247,214,90$519,340,247,214,90$519,342,247,214,90$519,346,247,214,90$519,347,247,214,90$518,348,247,214,90$517,346,247,214,90$516,347,247,214,90$516,342,247,214,90$517,343,247,214,90$522,344,247,214,90$526,344,247,214,90$524,344,247,214,90$524,343,247,214,90$525,342,247,214,90$525,341,247,214,90$523,341,247,214,90$522,340,247,214,90$523,339,247,214,90$523,337,247,214,90$526,339,247,214,90$574,348,247,214,90$573,347,247,214,90$572,346,247,214,90$571,347,247,214,90$570,348,247,214,90$569,346,247,214,90$569,344,247,214,90$569,342,247,214,90$571,342,247,214,90$571,343,247,214,90$571,344,247,214,90$571,345,247,214,90$573,345,247,214,90$573,344,247,214,90$573,343,247,214,90$573,342,247,214,90$572,341,247,214,90$572,340,247,214,90$572,339,247,214,90$572,338,247,214,90$572,337,247,214,90$573,339,247,214,90$574,339,247,214,90$574,340,247,214,90$569,339,247,214,90$569,341,247,214,90"),
// //15.九霄风雷
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"550,340,247,214,90$550,337,247,214,90$550,338,247,214,90$550,339,247,214,90$550,340,247,214,90$547,340,247,214,90$553,340,247,214,90$554,340,247,214,90$554,341,247,214,90$554,343,247,214,90$554,345,247,214,90$554,347,247,214,90$555,348,247,214,90$556,348,247,214,90$557,348,247,214,90$557,346,247,214,90$550,344,247,214,90$549,345,247,214,90$549,346,247,214,90$548,347,247,214,90$547,348,247,214,90$584,348,247,214,90$585,348,247,214,90$588,348,247,214,90$588,347,247,214,90$588,346,247,214,90$588,345,247,214,90$588,344,247,214,90$589,344,247,214,90$592,344,247,214,90$592,345,247,214,90$592,346,247,214,90$591,346,247,214,90$590,346,247,214,90$592,348,247,214,90$592,347,247,214,90$591,348,247,214,90$584,348,247,214,90$584,347,247,214,90$585,348,247,214,90$559,339,247,214,90$559,340,247,214,90$561,340,247,214,90$561,339,247,214,90$567,339,247,214,90$567,340,247,214,90$568,339,247,214,90$569,340,247,214,90$569,339,247,214,90"),
// //16.无限风域
// ColorArray.FromHsvFloatString(0.002f,0.002f,0.002f,"624,269,247,214,90$579,260,247,214,90$580,260,247,214,90$582,260,247,214,90$583,260,247,214,90$585,260,247,214,90$586,260,247,214,90$587,260,247,214,90$583,261,247,214,90$583,262,247,214,90$583,263,247,214,90$583,264,247,214,90$585,264,247,214,90$586,264,247,214,90$588,264,247,214,90$578,264,247,214,90$579,264,247,214,90$582,265,247,214,90$582,266,247,214,90$581,267,247,214,90$580,268,247,214,90$579,269,247,214,90$578,270,247,214,90$584,269,247,214,90$584,268,247,214,90$584,267,247,214,90$585,270,247,214,90$586,270,247,214,90$588,270,247,214,90$588,269,247,214,90$588,268,247,214,90$624,270,247,214,90$623,269,247,214,90$624,268,247,214,90$622,268,247,214,90$620,268,247,214,90$621,269,247,214,90$619,269,247,214,90$618,269,247,214,90$620,270,247,214,90$622,268,247,214,90$622,267,247,214,90$623,267,247,214,90$623,266,247,214,90$622,266,247,214,90$624,265,247,214,90$624,264,247,214,90$622,264,247,214,90$622,261,247,214,90$624,261,247,214,90$624,259,247,214,90$622,259,247,214,90$618,261,247,214,90")
//};
/////
///// 得到技能名称
/////
/////
/////
/////
//public static bool GetSkillName(out Int32 skillIndex, ZTRectangle limit)
//{
// skillIndex = 0;
// ZTRectangle rect = ZTRectangle.Empty;
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// for (int i = 0; i < skillsText.Length; i++)
// {
// if (CVHelper.FindColorArray(out rect, image, skillsText[i], limit))
// {
// skillIndex = i;
// return true;
// }
// }
// return false;
//}
//private static Int32 tt = 0;
/////
///// 灰色学习按钮
/////
//private static ColorArray studayGrayButton = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
//private static ColorArray studayCommon1Button = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
//private static ColorArray studayCommon2Button = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
//public static bool GetStudayStatus(out bool canStuday,ZTRectangle gameRect)
//{
// Image image = ScreenCapture.Instance.CaptureScreenReturnImage();
// ZTRectangle rect = ZTRectangle.Empty;
// if (CVHelper.FindColorArray(out rect, image, notiButton, gameRect))
// {
// return true;
// }
// return false;
//}
}
}