Просмотр исходного кода

feat(CostumeShikigami): 添加幕间:月下火舞

yuyuyuyuyu 9 месяцев назад
Родитель
Сommit
304f5ed0ee
22 измененных файлов с 225 добавлено и 0 удалено
  1. 43 0
      tasks/Component/CostumeShikigami/assets.py
  2. 182 0
      tasks/Component/CostumeShikigami/sk6/image.json
  3. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_check_records_6.png
  4. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_record_soul_back_6.png
  5. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_1_6.png
  6. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_2_6.png
  7. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_3_6.png
  8. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_4_6.png
  9. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_5_6.png
  10. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_6_6.png
  11. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_7_6.png
  12. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_check_in_6.png
  13. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_click_present_6.png
  14. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_1_6.png
  15. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_2_6.png
  16. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_3_6.png
  17. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_4_6.png
  18. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_sure_6.png
  19. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_sou_team_present_6.png
  20. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_soul_preset_6.png
  21. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_st_replace_6.png
  22. BIN
      tasks/Component/CostumeShikigami/sk6/sk6_st_souls_6.png

+ 43 - 0
tasks/Component/CostumeShikigami/assets.py

@@ -225,3 +225,46 @@ class CostumeShikigamiAssets:
 	I_ST_REPLACE_5 = RuleImage(roi_front=(860,168,100,100), roi_back=(872,186,78,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk5/sk5_st_replace_5.png")
 
 
+	# Image Rule Assets
+	# 用于判断在式神录 
+	I_CHECK_RECORDS_6 = RuleImage(roi_front=(269,71,55,50), roi_back=(269,71,55,50), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_check_records_6.png")
+	# 退出式神录 
+	I_RECORD_SOUL_BACK_6 = RuleImage(roi_front=(19,9,51,44), roi_back=(19,9,51,44), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_record_soul_back_6.png")
+	# 预设 
+	I_SOUL_PRESET_6 = RuleImage(roi_front=(335,73,90,51), roi_back=(310,57,169,72), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_soul_preset_6.png")
+	# 第一组切换 
+	I_SOU_SWITCH_1_6 = RuleImage(roi_front=(973,140,34,32), roi_back=(967,131,51,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_1_6.png")
+	# 第二组切换 
+	I_SOU_SWITCH_2_6 = RuleImage(roi_front=(971,293,33,33), roi_back=(960,284,58,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_2_6.png")
+	# description 
+	I_SOU_SWITCH_3_6 = RuleImage(roi_front=(968,448,41,38), roi_back=(962,442,52,48), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_3_6.png")
+	# description 
+	I_SOU_SWITCH_4_6 = RuleImage(roi_front=(967,597,42,25), roi_back=(962,592,53,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_4_6.png")
+	# description 
+	I_SOU_SWITCH_SURE_6 = RuleImage(roi_front=(668,401,180,61), roi_back=(668,401,180,61), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_sure_6.png")
+	# 用于判断是否在式神录里面 
+	I_SOU_CHECK_IN_6 = RuleImage(roi_front=(269,69,50,49), roi_back=(269,69,50,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_in_6.png")
+	# 检查是否为第一组 
+	I_SOU_CHECK_GROUP_1_6 = RuleImage(roi_front=(1086,91,22,57), roi_back=(1086,91,22,57), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_1_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_2_6 = RuleImage(roi_front=(1086,163,25,57), roi_back=(1086,163,25,57), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_2_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_3_6 = RuleImage(roi_front=(1085,234,22,49), roi_back=(1085,234,22,49), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_3_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_4_6 = RuleImage(roi_front=(1086,303,21,56), roi_back=(1086,303,21,56), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_4_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_5_6 = RuleImage(roi_front=(1088,370,21,53), roi_back=(1088,370,21,53), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_5_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_6_6 = RuleImage(roi_front=(1085,443,23,54), roi_back=(1085,443,23,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_6_6.png")
+	# description 
+	I_SOU_CHECK_GROUP_7_6 = RuleImage(roi_front=(1088,512,21,54), roi_back=(1088,512,21,54), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_7_6.png")
+	# 匹配队伍预设 
+	I_SOU_TEAM_PRESENT_6 = RuleImage(roi_front=(720,76,136,43), roi_back=(706,68,175,63), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_team_present_6.png")
+	# 需要切换的预设按钮(颜色深一点) 
+	I_SOU_CLICK_PRESENT_6 = RuleImage(roi_front=(967,305,43,22), roi_back=(965,142,48,480), threshold=0.9, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_sou_click_present_6.png")
+	# 选中的御魂 
+	I_ST_SOULS_6 = RuleImage(roi_front=(1180,236,62,66), roi_back=(1176,230,70,80), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_st_souls_6.png")
+	# 更换 
+	I_ST_REPLACE_6 = RuleImage(roi_front=(856,170,100,100), roi_back=(856,170,100,100), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeShikigami/sk6/sk6_st_replace_6.png")
+
+

+ 182 - 0
tasks/Component/CostumeShikigami/sk6/image.json

@@ -0,0 +1,182 @@
+[
+  {
+    "itemName": "check_records_6",
+    "imageName": "sk6_check_records_6.png",
+    "roiFront": "269,71,55,50",
+    "roiBack": "269,71,55,50",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断在式神录"
+  },
+  {
+    "itemName": "record_soul_back_6",
+    "imageName": "sk6_record_soul_back_6.png",
+    "roiFront": "19,9,51,44",
+    "roiBack": "19,9,51,44",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "退出式神录"
+  },
+  {
+    "itemName": "soul_preset_6",
+    "imageName": "sk6_soul_preset_6.png",
+    "roiFront": "335,73,90,51",
+    "roiBack": "310,57,169,72",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "预设"
+  },
+  {
+    "itemName": "sou_switch_1_6",
+    "imageName": "sk6_sou_switch_1_6.png",
+    "roiFront": "973,140,34,32",
+    "roiBack": "967,131,51,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第一组切换"
+  },
+  {
+    "itemName": "sou_switch_2_6",
+    "imageName": "sk6_sou_switch_2_6.png",
+    "roiFront": "971,293,33,33",
+    "roiBack": "960,284,58,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "第二组切换"
+  },
+  {
+    "itemName": "sou_switch_3_6",
+    "imageName": "sk6_sou_switch_3_6.png",
+    "roiFront": "968,448,41,38",
+    "roiBack": "962,442,52,48",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_4_6",
+    "imageName": "sk6_sou_switch_4_6.png",
+    "roiFront": "967,597,42,25",
+    "roiBack": "962,592,53,34",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_switch_sure_6",
+    "imageName": "sk6_sou_switch_sure_6.png",
+    "roiFront": "668,401,180,61",
+    "roiBack": "668,401,180,61",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_in_6",
+    "imageName": "sk6_sou_check_in_6.png",
+    "roiFront": "269,69,50,49",
+    "roiBack": "269,69,50,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "用于判断是否在式神录里面"
+  },
+  {
+    "itemName": "sou_check_group_1_6",
+    "imageName": "sk6_sou_check_group_1_6.png",
+    "roiFront": "1086,91,22,57",
+    "roiBack": "1086,91,22,57",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "检查是否为第一组"
+  },
+  {
+    "itemName": "sou_check_group_2_6",
+    "imageName": "sk6_sou_check_group_2_6.png",
+    "roiFront": "1086,163,25,57",
+    "roiBack": "1086,163,25,57",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_3_6",
+    "imageName": "sk6_sou_check_group_3_6.png",
+    "roiFront": "1085,234,22,49",
+    "roiBack": "1085,234,22,49",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_4_6",
+    "imageName": "sk6_sou_check_group_4_6.png",
+    "roiFront": "1086,303,21,56",
+    "roiBack": "1086,303,21,56",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_5_6",
+    "imageName": "sk6_sou_check_group_5_6.png",
+    "roiFront": "1088,370,21,53",
+    "roiBack": "1088,370,21,53",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_6_6",
+    "imageName": "sk6_sou_check_group_6_6.png",
+    "roiFront": "1085,443,23,54",
+    "roiBack": "1085,443,23,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_check_group_7_6",
+    "imageName": "sk6_sou_check_group_7_6.png",
+    "roiFront": "1088,512,21,54",
+    "roiBack": "1088,512,21,54",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "sou_team_present_6",
+    "imageName": "sk6_sou_team_present_6.png",
+    "roiFront": "720,76,136,43",
+    "roiBack": "706,68,175,63",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "匹配队伍预设"
+  },
+  {
+    "itemName": "sou_click_present_6",
+    "imageName": "sk6_sou_click_present_6.png",
+    "roiFront": "967,305,43,22",
+    "roiBack": "965,142,48,480",
+    "method": "Template matching",
+    "threshold": 0.9,
+    "description": "需要切换的预设按钮(颜色深一点)"
+  },
+  {
+    "itemName": "st_souls_6",
+    "imageName": "sk6_st_souls_6.png",
+    "roiFront": "1180,236,62,66",
+    "roiBack": "1176,230,70,80",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "选中的御魂"
+  },
+  {
+    "itemName": "st_replace_6",
+    "imageName": "sk6_st_replace_6.png",
+    "roiFront": "856,170,100,100",
+    "roiBack": "856,170,100,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "更换"
+  }
+]

BIN
tasks/Component/CostumeShikigami/sk6/sk6_check_records_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_record_soul_back_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_1_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_2_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_3_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_4_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_5_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_6_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_group_7_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_check_in_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_click_present_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_1_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_2_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_3_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_4_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_switch_sure_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_sou_team_present_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_soul_preset_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_st_replace_6.png


BIN
tasks/Component/CostumeShikigami/sk6/sk6_st_souls_6.png