1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
| 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;
| using System.Diagnostics;
| using ZTImage.Collections;
|
| namespace RichCreator.Utility.CV
| {
| /// <summary>
| /// 频道识别
| /// </summary>
| public class ChannelCVHelper
| {
| //-133,10点击范围
| //-200,30识别范围
| //1,时空之门
| private static ColorArray ShikongzhimenText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1259,34,225,197,147$1224,35,225,197,147$1226,35,225,197,147$1227,35,225,197,147$1233,35,225,197,147$1233,34,225,197,147$1240,34,225,197,147$1241,35,225,197,147$1252,35,225,197,147$1251,34,225,197,147$1260,35,225,197,147$1262,34,225,197,147$1263,34,225,197,147$1268,34,225,197,147$1268,35,225,197,147$1268,37,225,197,147$1259,37,225,197,147$1256,37,225,197,147$1254,37,225,197,147$1251,37,225,197,147$1248,37,225,197,147$1246,37,225,197,147$1243,37,225,197,147$1239,37,225,197,147$1236,37,225,197,147$1234,37,225,197,147$1232,37,225,197,147$1229,37,225,197,147$1227,37,225,197,147$1224,37,225,197,147$1224,39,225,197,147$1226,39,225,197,147$1227,39,225,197,147$1233,39,225,197,147$1237,39,225,197,147$1245,39,225,197,147$1254,39,225,197,147$1259,39,225,197,147$1268,39,225,197,147$1268,42,225,197,147$1259,42,225,197,147$1251,42,225,197,147$1241,42,225,197,147$1233,42,225,197,147$1231,42,225,197,147$1227,42,225,197,147$1224,42,225,197,147$1224,44,225,197,147$1227,44,225,197,147$1233,44,225,197,147$1241,44,225,197,147$1249,44,225,197,147$1251,44,225,197,147$1259,44,225,197,147$1268,44,225,197,147$1268,45,225,197,147$1266,45,225,197,147$1259,45,225,197,147$1257,45,225,197,147$1254,45,225,197,147$1252,45,225,197,147$1248,45,225,197,147$1246,45,225,197,147$1242,45,225,197,147$1238,45,225,197,147$1236,45,225,197,147$1233,45,225,197,147$1231,45,225,197,147");
| /// <summary>
| /// 是否在时空之门频道
| /// </summary>
| /// <returns></returns>
| public static bool IsInShikongzhimenChannel(ZTRectangle gameRect)
| {
| ZTRectangle limit = new ZTRectangle(gameRect.End.X - 200, gameRect.Start.Y, gameRect.End.X, gameRect.Start.Y + 30);
| return CVHelper.RectExistsArray(limit, ShikongzhimenText);
| }
|
|
| //2,寂静城
| private static ColorArray JijingchengText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "1226,43,225,197,147$1229,34,225,197,147$1238,34,225,197,147$1242,34,225,197,147$1249,34,225,197,147$1256,34,225,197,147$1258,34,225,197,147$1258,36,225,197,147$1257,36,225,197,147$1256,36,225,197,147$1255,36,225,197,147$1253,36,225,197,147$1252,36,225,197,147$1249,36,225,197,147$1244,36,225,197,147$1241,36,225,197,147$1238,36,225,197,147$1234,36,225,197,147$1224,36,225,197,147$1226,38,225,197,147$1228,38,225,197,147$1230,38,225,197,147$1233,38,225,197,147$1238,38,225,197,147$1241,38,225,197,147$1243,38,225,197,147$1245,38,225,197,147$1249,38,225,197,147$1252,38,225,197,147$1256,38,225,197,147$1258,40,225,197,147$1256,40,225,197,147$1254,40,225,197,147$1252,40,225,197,147$1249,40,225,197,147$1246,40,225,197,147$1244,40,225,197,147$1242,40,225,197,147$1241,40,225,197,147$1239,40,225,197,147$1237,40,225,197,147$1233,40,225,197,147$1230,40,225,197,147$1228,40,225,197,147$1225,40,225,197,147$1224,40,225,197,147$1225,42,225,197,147$1226,42,225,197,147$1227,42,225,197,147$1230,42,225,197,147$1232,42,225,197,147$1237,42,225,197,147$1239,42,225,197,147$1241,42,225,197,147$1243,42,225,197,147$1245,42,225,197,147$1249,42,225,197,147$1250,42,225,197,147$1252,42,225,197,147$1254,42,225,197,147$1256,42,225,197,147$1258,43,225,197,147$1256,43,225,197,147$1254,43,225,197,147$1253,43,225,197,147$1251,43,225,197,147$1248,43,225,197,147$1245,43,225,197,147$1243,43,225,197,147$1239,43,225,197,147$1237,43,225,197,147$1231,43,225,197,147$1228,43,225,197,147$1224,43,225,197,147$1225,45,225,197,147$1226,45,225,197,147$1229,45,225,197,147$1233,45,225,197,147$1234,45,225,197,147$1237,45,225,197,147$1239,45,225,197,147$1242,45,225,197,147$1243,45,225,197,147$1250,45,225,197,147$1254,45,225,197,147$1258,45,225,197,147");
| /// <summary>
| /// 是否在寂静城频道
| /// </summary>
| /// <returns></returns>
| public static bool IsInJijingchengChannel(ZTRectangle gameRect)
| {
| ZTRectangle limit = new ZTRectangle(gameRect.End.X - 200, gameRect.Start.Y, gameRect.End.X, gameRect.Start.Y + 30);
| return CVHelper.RectExistsArray(limit, JijingchengText);
| }
|
|
| //频道选择文字
| private static ColorArray ChannelChoiceText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "684,132,255,255,255$678,132,0,0,0$679,132,255,255,255$681,132,0,0,0$680,132,0,0,0$682,132,255,255,255$686,132,255,255,255$687,132,0,0,0$688,132,0,0,0$689,132,255,255,255$690,132,0,0,0$692,132,0,0,0$693,132,255,255,255$694,132,0,0,0$696,132,0,0,0$697,132,255,255,255$698,132,0,0,0$700,132,0,0,0$701,132,255,255,255$702,132,0,0,0$706,132,0,0,0$707,132,255,255,255$708,132,0,0,0$713,132,0,0,0$714,132,255,255,255$715,132,0,0,0$716,132,255,255,255$719,132,255,255,255$721,132,255,255,255$722,132,0,0,0$722,137,255,255,255$721,137,255,255,255$720,137,0,0,0$719,137,255,255,255$718,137,0,0,0$717,137,255,255,255$716,137,255,255,255$715,137,0,0,0$714,137,255,255,255$713,137,0,0,0$711,137,0,0,0$710,137,255,255,255$707,137,255,255,255$704,137,255,255,255$703,137,0,0,0$702,137,255,255,255$701,137,0,0,0$699,137,0,0,0$698,137,255,255,255$695,137,255,255,255$692,137,255,255,255$691,137,0,0,0$690,137,255,255,255$689,137,0,0,0$687,137,0,0,0$686,137,255,255,255$685,137,0,0,0$684,137,255,255,255$683,137,0,0,0$682,137,255,255,255$681,137,0,0,0$680,137,0,0,0$679,137,255,255,255$678,137,0,0,0$677,137,0,0,0$676,137,0,0,0$675,143,0,0,0$676,143,255,255,255$677,143,255,255,255$678,143,0,0,0$681,143,0,0,0$682,143,255,255,255$684,143,0,0,0$687,143,0,0,0$688,143,255,255,255$691,143,0,0,0$692,143,255,255,255$695,143,255,255,255$698,143,255,255,255$700,143,255,255,255$702,143,0,0,0$704,143,255,255,255$708,143,255,255,255$710,143,255,255,255$711,143,0,0,0$712,143,0,0,0$713,143,255,255,255$714,143,255,255,255$715,143,0,0,0$719,143,255,255,255$720,143,0,0,0$718,143,0,0,0");
| /// <summary>
| /// 是否打开频道选择窗口
| /// </summary>
| /// <param name="gameRect"></param>
| /// <returns></returns>
| public static bool IsOpenChannelChoiceWindow(out ZTRectangle textRect, ZTRectangle gameRect)
| {
| return CVHelper.RectExistsArray(out textRect,gameRect, ChannelChoiceText);
| }
|
|
|
|
|
| //公告:爆满频道服务器自动连接失败,请再次连接或选择其他频道
| private static ColorArray BaomanText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "720,329,0,0,0$699,329,0,0,0$700,329,255,255,255$701,329,0,0,0$705,329,0,0,0$706,329,255,255,255$707,329,0,0,0$710,329,0,0,0$711,329,255,255,255$712,329,0,0,0$715,329,255,255,255$714,329,0,0,0$716,329,0,0,0$720,336,0,0,0$719,336,255,255,255$716,336,255,255,255$714,336,255,255,255$711,336,255,255,255$710,336,0,0,0$708,336,0,0,0$707,336,255,255,255$702,336,255,255,255$699,336,255,255,255$698,336,0,0,0$636,365,255,255,255$638,365,255,255,255$641,365,255,255,255$643,365,255,255,255$645,365,255,255,255$650,365,255,255,255$653,365,255,255,255$656,365,255,255,255$658,365,255,255,255$660,365,255,255,255$663,365,255,255,255$666,365,255,255,255$670,365,255,255,255$672,365,255,255,255$674,365,255,255,255$676,365,255,255,255$682,365,255,255,255$685,365,255,255,255$687,365,255,255,255$688,365,255,255,255$690,365,255,255,255$692,365,255,255,255$693,365,255,255,255$698,365,255,255,255$699,365,255,255,255$703,365,255,255,255$704,365,255,255,255$713,365,255,255,255$717,365,255,255,255$720,365,255,255,255$728,365,255,255,255$730,365,255,255,255$733,365,255,255,255$734,365,255,255,255$737,365,255,255,255$740,365,255,255,255$746,365,255,255,255$749,365,255,255,255$756,365,255,255,255$760,365,255,255,255$762,365,255,255,255$767,365,255,255,255$771,365,255,255,255$774,385,255,255,255$772,385,255,255,255$770,385,255,255,255$766,385,255,255,255$761,385,255,255,255$753,385,255,255,255$747,385,255,255,255$742,385,255,255,255$741,385,255,255,255$738,385,255,255,255$734,385,255,255,255$732,385,255,255,255$728,385,255,255,255$726,385,255,255,255$720,385,255,255,255$714,385,255,255,255$713,385,255,255,255$710,385,255,255,255$708,385,255,255,255$706,385,255,255,255$705,385,255,255,255$702,385,255,255,255$699,385,255,255,255$696,385,255,255,255$694,385,255,255,255$692,385,255,255,255$690,385,255,255,255$682,385,255,255,255$677,385,255,255,255$675,385,255,255,255$669,385,255,255,255$665,385,255,255,255$664,385,255,255,255$660,385,255,255,255$657,385,255,255,255$646,385,255,255,255$645,385,255,255,255$641,385,255,255,255$640,385,255,255,255$636,385,255,255,255$646,398,255,255,255$646,395,255,255,255$646,392,255,255,255$646,390,255,255,255$646,387,255,255,255$646,385,255,255,255$646,377,255,255,255$646,371,255,255,255$646,369,255,255,255");
|
| /// <summary>
| /// 是否切换失败
| /// </summary>
| /// <param name="gameRect"></param>
| /// <returns></returns>
| public static bool IsChangeFailed(ZTRectangle gameRect)
| {
| ZTRectangle rect = ZTRectangle.Empty;
| return CVHelper.RectExistsArray(out rect, gameRect, BaomanText);
| }
|
| //网格连接中断
| //关闭后自动打开了频道选择
| private static ColorArray NetDisConnection = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "");
|
|
| // 公告:连接失败!请稍候几份钟再登录,不便之处,敬请谅解。
| // 在选择角色界面,点击确认后自动连接其它频道,失败后还可能跳至选角色界面
| private static ColorArray ConnectionErrorInChoiceRole = ColorArray.FromThresholdString(130, "717,422,0,0,0$712,421,255,255,255$719,421,255,255,255$694,422,0,0,0$695,422,0,0,0$702,422,0,0,0$703,422,255,255,255$704,422,255,255,255$709,422,0,0,0$710,422,0,0,0$715,422,0,0,0$716,422,0,0,0$719,422,255,255,255$721,422,0,0,0$722,422,0,0,0$723,422,0,0,0$694,423,0,0,0$695,423,0,0,0$697,423,255,255,255$698,423,255,255,255$699,423,255,255,255$700,423,255,255,255$704,423,255,255,255$705,423,255,255,255$706,423,255,255,255$707,423,255,255,255$709,423,0,0,0$710,423,0,0,0$711,423,0,0,0$712,423,0,0,0$715,423,0,0,0$716,423,0,0,0$717,423,0,0,0$719,423,255,255,255$721,423,0,0,0$722,423,0,0,0$723,423,0,0,0$694,424,0,0,0$695,424,0,0,0$696,424,0,0,0$697,424,0,0,0$699,424,255,255,255$700,424,0,0,0$701,424,0,0,0$702,424,255,255,255$703,424,0,0,0$704,424,0,0,0$705,424,0,0,0$706,424,0,0,0$707,424,255,255,255$709,424,0,0,0$710,424,0,0,0$711,424,0,0,0$712,424,0,0,0$713,424,0,0,0$714,424,0,0,0$715,424,0,0,0$716,424,0,0,0$717,424,0,0,0$718,424,0,0,0$719,424,255,255,255$721,424,0,0,0$722,424,0,0,0$723,424,0,0,0$694,425,0,0,0$695,425,0,0,0$696,425,0,0,0$697,425,0,0,0$699,425,255,255,255$700,425,0,0,0$701,425,0,0,0$702,425,0,0,0$703,425,0,0,0$704,425,0,0,0$706,425,255,255,255$707,425,0,0,0$708,425,0,0,0$709,425,0,0,0$710,425,0,0,0$711,425,0,0,0$712,425,0,0,0$713,425,0,0,0$714,425,0,0,0$715,425,0,0,0$716,425,0,0,0$717,425,0,0,0$718,425,0,0,0$719,425,255,255,255$721,425,0,0,0$722,425,0,0,0$723,425,0,0,0$694,426,0,0,0$695,426,0,0,0$696,426,0,0,0$699,426,0,0,0$700,426,0,0,0$701,426,0,0,0$703,426,255,255,255$704,426,255,255,255$705,426,255,255,255$706,426,255,255,255$707,426,255,255,255$708,426,255,255,255$711,426,255,255,255$712,426,255,255,255$713,426,255,255,255$715,426,0,0,0$716,426,0,0,0$717,426,0,0,0$718,426,0,0,0$719,426,255,255,255$721,426,0,0,0$722,426,0,0,0$723,426,0,0,0$694,427,0,0,0$695,427,0,0,0$696,427,0,0,0$698,427,255,255,255$701,427,0,0,0$702,427,255,255,255$705,427,255,255,255$708,427,255,255,255$710,427,0,0,0$713,427,255,255,255$715,427,0,0,0$716,427,0,0,0$717,427,0,0,0$718,427,0,0,0$719,427,255,255,255$721,427,0,0,0$722,427,0,0,0$723,427,0,0,0$694,428,0,0,0$695,428,0,0,0$697,428,255,255,255$698,428,255,255,255$700,428,255,255,255$701,428,0,0,0$702,428,255,255,255$705,428,255,255,255$708,428,255,255,255$710,428,0,0,0$711,428,0,0,0$712,428,0,0,0$713,428,255,255,255$715,428,0,0,0$716,428,0,0,0$717,428,0,0,0$721,428,0,0,0$722,428,0,0,0$723,428,0,0,0$694,429,0,0,0$695,429,0,0,0$697,429,255,255,255$699,429,0,0,0$700,429,255,255,255$701,429,0,0,0$702,429,255,255,255$703,429,255,255,255$704,429,255,255,255$705,429,255,255,255$706,429,255,255,255$707,429,255,255,255$708,429,255,255,255$710,429,0,0,0$711,429,0,0,0$712,429,0,0,0$713,429,255,255,255$714,429,0,0,0$715,429,0,0,0$716,429,0,0,0$717,429,0,0,0$718,429,255,255,255$719,429,0,0,0$720,429,255,255,255$722,429,0,0,0$723,429,0,0,0$694,430,0,0,0$695,430,0,0,0$696,430,0,0,0$699,430,0,0,0$700,430,255,255,255$701,430,0,0,0$702,430,255,255,255$705,430,255,255,255$706,430,0,0,0$707,430,0,0,0$708,430,255,255,255$710,430,0,0,0$711,430,0,0,0$712,430,0,0,0$713,430,255,255,255$714,430,0,0,0$715,430,0,0,0$716,430,0,0,0$717,430,0,0,0$718,430,255,255,255$719,430,0,0,0$720,430,255,255,255$722,430,0,0,0$723,430,0,0,0$694,431,0,0,0$695,431,0,0,0$696,431,0,0,0$699,431,0,0,0$700,431,255,255,255$701,431,0,0,0$702,431,255,255,255$703,431,255,255,255$704,431,255,255,255$705,431,255,255,255$706,431,255,255,255$707,431,255,255,255$708,431,255,255,255$710,431,0,0,0$711,431,0,0,0$712,431,0,0,0$713,431,255,255,255$714,431,0,0,0$717,431,0,0,0$718,431,255,255,255$719,431,0,0,0$720,431,255,255,255$722,431,0,0,0$723,431,0,0,0$694,432,0,0,0$695,432,0,0,0$696,432,0,0,0$698,432,255,255,255$699,432,255,255,255$700,432,255,255,255$701,432,0,0,0$702,432,255,255,255$705,432,255,255,255$706,432,0,0,0$707,432,0,0,0$708,432,255,255,255$710,432,0,0,0$711,432,0,0,0$712,432,0,0,0$713,432,255,255,255$714,432,255,255,255$718,432,0,0,0$719,432,0,0,0$720,432,0,0,0$723,432,0,0,0$694,433,0,0,0$695,433,0,0,0$696,433,0,0,0$698,433,255,255,255$700,433,255,255,255$701,433,0,0,0$702,433,255,255,255$705,433,255,255,255$706,433,0,0,0$707,433,0,0,0$708,433,255,255,255$710,433,0,0,0$711,433,0,0,0$712,433,0,0,0$713,433,255,255,255$715,433,0,0,0$717,433,255,255,255$718,433,0,0,0$719,433,0,0,0$720,433,0,0,0$723,433,0,0,0$694,434,0,0,0$695,434,0,0,0$696,434,0,0,0$698,434,0,0,0$699,434,0,0,0$703,434,0,0,0$704,434,0,0,0$706,434,0,0,0$708,434,255,255,255$710,434,0,0,0$711,434,0,0,0$712,434,0,0,0$714,434,0,0,0$715,434,0,0,0$718,434,0,0,0$719,434,0,0,0$720,434,0,0,0$694,435,0,0,0$695,435,0,0,0$696,435,0,0,0$697,435,0,0,0$698,435,0,0,0$699,435,0,0,0$700,435,0,0,0$702,435,0,0,0$703,435,0,0,0$704,435,0,0,0$705,435,0,0,0$706,435,0,0,0$708,435,255,255,255$710,435,0,0,0$711,435,0,0,0$712,435,0,0,0$713,435,0,0,0$714,435,0,0,0$717,435,0,0,0$718,435,0,0,0$719,435,0,0,0$720,435,0,0,0$721,435,0,0,0$722,435,0,0,0$694,436,0,0,0$695,436,0,0,0$696,436,0,0,0$697,436,0,0,0$698,436,0,0,0$699,436,0,0,0$700,436,0,0,0$701,436,0,0,0$702,436,0,0,0$703,436,0,0,0$704,436,0,0,0$705,436,0,0,0$706,436,0,0,0$707,436,0,0,0$708,436,0,0,0$709,436,0,0,0$710,436,0,0,0$711,436,0,0,0$712,436,0,0,0$713,436,0,0,0$714,436,0,0,0$715,436,0,0,0$716,436,0,0,0$717,436,0,0,0$718,436,0,0,0$719,436,0,0,0$720,436,0,0,0$721,436,0,0,0$722,436,0,0,0$723,436,0,0,0$694,437,0,0,0$695,437,0,0,0$696,437,0,0,0$697,437,0,0,0$698,437,0,0,0$699,437,0,0,0$700,437,0,0,0$701,437,0,0,0$702,437,0,0,0$703,437,0,0,0$704,437,0,0,0$705,437,0,0,0$706,437,0,0,0$707,437,0,0,0$708,437,0,0,0$709,437,0,0,0$710,437,0,0,0$711,437,0,0,0$712,437,0,0,0$713,437,0,0,0$714,437,0,0,0$715,437,0,0,0$716,437,0,0,0$717,437,0,0,0$718,437,0,0,0$719,437,0,0,0$720,437,0,0,0$721,437,0,0,0$722,437,0,0,0$723,437,0,0,0");
| public static bool HasConnectionErrorInChoiceRole(out ZTRectangle confirmButtonRect)
| {
| confirmButtonRect = ZTRectangle.Empty;
| System.Drawing.Bitmap bitmap = ScreenCapture.Instance.CaptureScreen();
| Image<Rgb, byte> image = new Image<Rgb, byte>(bitmap);
|
| ZTRectangle limit = new ZTRectangle(0, 0, image.Width, image.Height);
|
| //查找开始游戏按钮
| if (CVHelper.FindColorArrayForThreshold(out confirmButtonRect, image, ConnectionErrorInChoiceRole, limit))
| {
| return true;
| }
| return false;
| }
|
| //公告:网络连接中断
| private static ColorArray DisconnectionWhiteText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "734,309,255,255,255$729,307,0,0,0$730,307,255,255,255$731,307,0,0,0$733,307,0,0,0$734,307,255,255,255$743,307,0,0,0$744,307,255,255,255$745,307,0,0,0$749,309,0,0,0$748,309,255,255,255$744,309,255,255,255$741,309,255,255,255$740,309,0,0,0$736,309,0,0,0$733,309,0,0,0$731,309,0,0,0$730,309,255,255,255$729,309,0,0,0$730,314,0,0,0$731,314,255,255,255$732,314,0,0,0$739,314,0,0,0$740,314,255,255,255$745,314,255,255,255$748,314,255,255,255$749,314,0,0,0$769,343,255,255,255$767,343,255,255,255$765,343,255,255,255$763,343,255,255,255$761,343,255,255,255$754,343,255,255,255$745,343,255,255,255$740,343,255,255,255$732,343,255,255,255$727,343,255,255,255$723,343,255,255,255$720,343,255,255,255$716,343,255,255,255$712,343,255,255,255$702,343,255,255,255$702,348,255,255,255$705,348,255,255,255$709,348,255,255,255$712,348,255,255,255$715,348,255,255,255$718,348,255,255,255$719,348,255,255,255$723,348,255,255,255$724,348,255,255,255$727,348,255,255,255$733,348,255,255,255$740,348,255,255,255$741,348,255,255,255$745,348,255,255,255$750,348,255,255,255$754,348,255,255,255$758,348,255,255,255$760,348,255,255,255$762,348,255,255,255$763,348,255,255,255$764,348,255,255,255$767,348,255,255,255$769,348,255,255,255$747,372,255,255,184$742,372,255,255,184$737,372,255,255,184$734,372,255,255,184$731,372,255,255,184$728,372,255,255,184$728,377,255,255,184$729,377,255,255,184$731,377,255,255,184$733,377,255,255,184$735,377,255,255,184$737,377,255,255,184$738,377,255,255,184$742,377,255,255,184$746,377,255,255,184$748,377,255,255,184");
| private static ColorArray DisconnectionGrayText = ColorArray.FromHsvFloatString(0.002f, 0.002f, 0.002f, "745,307,0,0,0$729,307,0,0,0$730,307,170,170,170$731,307,0,0,0$733,307,0,0,0$734,307,170,170,170$735,307,0,0,0$740,307,0,0,0$743,307,0,0,0$744,307,170,170,170$749,309,0,0,0$748,309,170,170,170$744,309,170,170,170$741,309,170,170,170$740,309,0,0,0$736,309,0,0,0$735,309,0,0,0$734,309,170,170,170$733,309,0,0,0$731,309,0,0,0$730,309,170,170,170$729,309,0,0,0$728,310,0,0,0$729,310,170,170,170$730,310,0,0,0$734,310,0,0,0$735,310,170,170,170$736,310,0,0,0$739,310,0,0,0$740,310,170,170,170$743,310,0,0,0$744,310,170,170,170$745,310,0,0,0$750,312,0,0,0$749,312,170,170,170$739,312,170,170,170$736,312,170,170,170$732,312,170,170,170$728,312,170,170,170$729,312,0,0,0$727,312,0,0,0$702,345,255,255,255$703,345,255,255,255$707,345,255,255,255$711,345,255,255,255$712,345,255,255,255$714,345,255,255,255$717,345,255,255,255$718,345,255,255,255$720,345,255,255,255$722,345,255,255,255$731,345,255,255,255$738,345,255,255,255$740,345,255,255,255$741,345,255,255,255$743,345,255,255,255$747,345,255,255,255$750,345,255,255,255$754,345,255,255,255$758,345,255,255,255$760,345,255,255,255$763,345,255,255,255$767,345,255,255,255$769,350,255,255,255$767,350,255,255,255$763,350,255,255,255$760,350,255,255,255$758,350,255,255,255$754,350,255,255,255$750,350,255,255,255$747,350,255,255,255$744,350,255,255,255$740,350,255,255,255$736,350,255,255,255$733,350,255,255,255$730,350,255,255,255$729,350,255,255,255$727,350,255,255,255$723,350,255,255,255$719,350,255,255,255$712,350,255,255,255$711,350,255,255,255$707,350,255,255,255$703,350,255,255,255$702,350,255,255,255$728,372,255,255,184$731,372,255,255,184$734,372,255,255,184$736,372,255,255,184$737,372,255,255,184$742,372,255,255,184$747,372,255,255,184$749,380,255,255,184$745,380,255,255,184$743,380,255,255,184$742,380,255,255,184$738,380,255,255,184$735,380,255,255,184$733,380,255,255,184$731,380,255,255,184$730,380,255,255,184$729,380,255,255,184");
| /// <summary>
| /// 是否存在网络连接中断窗
| /// </summary>
| /// <param name="confirmButtonPoint"></param>
| /// <param name="gameRect"></param>
| /// <returns></returns>
| public static bool HasConnectIsVaildWindow(out ZTPoint confirmButtonPoint, ZTRectangle gameRect)
| {
| confirmButtonPoint = ZTPoint.Empty;
| ZTRectangle tempRect = ZTRectangle.Empty;
| if (!CVHelper.RectExistsArray(out tempRect, gameRect, DisconnectionWhiteText))
| {
| if (!CVHelper.RectExistsArray(out tempRect, gameRect, DisconnectionGrayText))
| {
| return false;
| }
| }
|
| confirmButtonPoint = new ZTPoint(tempRect.GetCenterPoint().X, tempRect.End.Y);
| return true;
| }
| }
| }
|
|