assets.py 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. from module.atom.image import RuleImage
  2. from module.atom.click import RuleClick
  3. from module.atom.long_click import RuleLongClick
  4. from module.atom.swipe import RuleSwipe
  5. from module.atom.ocr import RuleOcr
  6. from module.atom.list import RuleList
  7. # This file was automatically generated by ./dev_tools/assets_extract.py.
  8. # Don't modify it manually.
  9. class FallenSunAssets:
  10. # Image Rule Assets
  11. # 选择日轮
  12. I_FALLEN_SUN = RuleImage(roi_front=(881,100,58,65), roi_back=(720,83,231,394), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_fallen_sun.png")
  13. # 组队
  14. I_FORM_TEAM = RuleImage(roi_front=(963,584,96,90), roi_back=(963,584,96,90), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_form_team.png")
  15. # description
  16. I_FALLEN_SUN_FIRE = RuleImage(roi_front=(1142,593,94,51), roi_back=(1141,582,104,98), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_fallen_sun_fire.png")
  17. # description
  18. I_FALLEN_SUN_UNLOCK = RuleImage(roi_front=(699,650,31,38), roi_back=(699,650,31,38), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_fallen_sun_unlock.png")
  19. # description
  20. I_FALLEN_SUN_LOCK = RuleImage(roi_front=(700,652,31,37), roi_back=(700,652,31,37), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_fallen_sun_lock.png")
  21. # 小小宠物,发现宝藏
  22. I_PET_PRESENT = RuleImage(roi_front=(873,184,62,147), roi_back=(873,184,62,147), threshold=0.8, method="Template matching", file="./tasks/FallenSun/f/f_pet_present.png")
  23. # List Rule Assets
  24. # 这个是御魂界面选择不同层数的
  25. L_LAYER_LIST = RuleList(folder="./tasks/FallenSun/res", direction="vertical", mode="ocr", roi_back=(128,106,65,579), size=(65, 86),
  26. array=["壹", "贰", "叁", "日"])
  27. # Ocr Rule Assets
  28. # Ocr-description
  29. O_O_TEST_OCR = RuleOcr(roi=(85,96,361,491), area=(85,96,360,491), mode="Full", method="Default", keyword="", name="o_test_ocr")