Skip to content

Commit

Permalink
fix: 适配游戏新UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwlin committed Nov 9, 2023
1 parent f71c023 commit 7073fd0
Show file tree
Hide file tree
Showing 15 changed files with 82 additions and 59 deletions.
Binary file modified assets/resource/image/Navigation/Attack/EnterAttackEventPage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file modified assets/resource/image/StartUp/HomeFlag.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resource/image/Utils/BackButton_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/resource/image/Utils/HomeButton_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 6 additions & 5 deletions assets/resource/pipeline/navigation/attack_event_navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"recognition": "TemplateMatch",
"template": "Navigation/AttackEvent/EnterMaterialExpeditionPage.png",
"roi": [
903,
356,
366,
307
452,
574,
196,
130
],
"action": "Click"
"action": "Click",
"post_delay": 1500
}
}
22 changes: 12 additions & 10 deletions assets/resource/pipeline/navigation/attack_navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,25 @@
"recognition": "TemplateMatch",
"template": "Navigation/Attack/EnterAttackEventPage.png",
"roi": [
0,
122,
135,
166
472,
33,
159,
135
],
"action": "Click"
"action": "Click",
"post_delay": 1500
},
"Sub_EnterChallengeEventPage": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "Navigation/Attack/EnterChallengeEventPage.png",
"roi": [
0,
309,
137,
170
647,
34,
162,
134
],
"action": "Click"
"action": "Click",
"post_delay": 1500
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"recognition": "TemplateMatch",
"template": "Navigation/ChallengeEvent/EnterUniversalMiragePage.png",
"roi": [
646,
72,
264,
144
511,
541,
195,
132
],
"action": "Click"
}
Expand Down
52 changes: 26 additions & 26 deletions assets/resource/pipeline/navigation/home_navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
"$schema": "../../pipeline.schema.json",
"Sub_EnterAttackPage": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "Navigation/Home/EnterAttackPage.png",
"recognition": "OCR",
"text": "出击",
"roi": [
1025,
77,
167,
163
1082,
282,
192,
150
],
"action": "Click",
"post_delay": 1500
},
"Sub_EnterSupplyPage": {
"is_sub": true,
"recognition": "TemplateMatch",
"template": "Navigation/Home/EnterSupplyPage.png",
"recognition": "OCR",
"text": "补给",
"roi": [
1012,
389,
184,
140
1085,
510,
147,
126
],
"action": "Click",
"post_delay": 1500
Expand All @@ -33,10 +33,10 @@
"舰团"
],
"roi": [
879,
661,
54,
29
868,
611,
141,
109
],
"action": "Click",
"post_delay": 1500
Expand All @@ -48,9 +48,9 @@
"家园"
],
"roi": [
1005,
1071,
610,
155,
141,
110
],
"action": "Click",
Expand All @@ -63,16 +63,16 @@
"任务"
],
"roi": [
92,
115,
54,
34
99,
89,
39,
23
],
"target": [
30,
108,
40,
32
36,
83,
45,
36
],
"action": "Click",
"post_delay": 1500
Expand Down
8 changes: 4 additions & 4 deletions assets/resource/pipeline/startup.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@
"template": "StartUp/HomeFlag.png",
"threshold": 0.8,
"roi": [
1129,
584,
141,
136
1175,
599,
105,
121
]
},
"Sub_CollectDailyLoginReward": {
Expand Down
40 changes: 30 additions & 10 deletions assets/resource/pipeline/utils.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@
"Sub_BackButton": {
"is_sub": true,
"recognition": "TemplateMatch",
"green_mask": true,
"template": [
"Utils/BackButton.png"
"Utils/BackButton.png",
"Utils/BackButton_1.png"
],
"roi": [
0,
0,
180,
133
[
0,
0,
180,
133
],
[
60,
0,
124,
132
]
],
"action": "Click"
},
Expand All @@ -31,14 +41,24 @@
"Sub_HomeButton": {
"is_sub": true,
"recognition": "TemplateMatch",
"green_mask": true,
"template": [
"Utils/HomeButton.png"
"Utils/HomeButton.png",
"Utils/HomeButton_1.png"
],
"roi": [
126,
0,
212,
134
[
126,
0,
212,
134
],
[
136,
0,
133,
132
]
],
"action": "Click"
},
Expand Down

0 comments on commit 7073fd0

Please sign in to comment.