Skip to content

Commit 730126a

Browse files
修改文件结构,修复路径错误bug
1 parent 58c9276 commit 730126a

19 files changed

Lines changed: 9 additions & 9 deletions

File tree

agent/custom/action/auto_fish.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ def match_template_in_region(img, region, template, min_similarity=0.8):
4343
@AgentServer.custom_action("auto_fish")
4444
class Autofish(CustomAction):
4545
abs_path = Path(__file__).parents[3]
46-
if Path.exists(abs_path.parent / "assets"):
47-
image_dir = abs_path / "assets/resource/image/auto_fish"
46+
if Path.exists(abs_path / "assets"):
47+
image_dir = abs_path / "assets/resource/base/image/auto_fish"
4848
else:
49-
image_dir = abs_path / "resource/image/auto_fish"
49+
image_dir = abs_path / "resource/base/image/auto_fish"
5050
continue_img = image_dir / "continue.png"
5151
valid_region_img = image_dir / "valid_region.png"
5252
slider_img = image_dir / "slider.png"

agent/custom/action/auto_make_coffee.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ class AutoMakeCoffee(CustomAction):
5252
def __init__(self):
5353
super().__init__()
5454
abs_path = Path(__file__).parents[3]
55-
if Path.exists(abs_path.parent / "assets"):
56-
image_dir = abs_path / "assets/resource/image/auto_make_coffee"
55+
if Path.exists(abs_path / "assets"):
56+
image_dir = abs_path / "assets/resource/base/image/auto_make_coffee"
5757
else:
58-
image_dir = abs_path / "resource/image/auto_make_coffee"
58+
image_dir = abs_path / "resource/base/image/auto_make_coffee"
5959
start_img = image_dir / "start.png"
6060
star_img = image_dir / "star.png"
6161
claim_img = image_dir / "claim.png"

assets/interface.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@
1515
"class_regex": ".*",
1616
"window_regex": "异环",
1717
"screencap": "FramePool",
18-
"mouse": "Seize",
19-
"keyboard": "Seize"
18+
"mouse": "SendMessageWithWindowPos",
19+
"keyboard": "SendMessageWithWindowPos"
2020
}
2121
}
2222
],
2323
"resource": [
2424
{
2525
"name": "官服",
2626
"path": [
27-
"./resource"
27+
"resource/base"
2828
]
2929
}
3030
],
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)