Quellcode durchsuchen

feat(Costume): Add costume main "望月幽庭" #540

huangrunheng vor 1 Jahr
Ursprung
Commit
d9dafe0ed5

+ 13 - 0
tasks/Component/Costume/assets.py

@@ -23,6 +23,19 @@ class CostumeAssets:
 	I_PET_HOUSE_1 = RuleImage(roi_front=(1250,439,25,26), roi_back=(1198,362,81,147), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main1/main1_pet_house_1.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_10 = RuleImage(roi_front=(725,125,134,42), roi_back=(149,109,1099,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main10/main10_check_main_10.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_10 = RuleImage(roi_front=(444,170,31,30), roi_back=(193,143,904,66), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main10/main10_main_goto_exploration_10.png")
+	#  
+	I_MAIN_GOTO_SUMMON_10 = RuleImage(roi_front=(899,139,35,29), roi_back=(515,115,623,68), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main10/main10_main_goto_summon_10.png")
+	# description 
+	I_MAIN_GOTO_TOWN_10 = RuleImage(roi_front=(712,328,41,42), roi_back=(270,307,999,78), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main10/main10_main_goto_town_10.png")
+	# description 
+	I_PET_HOUSE_10 = RuleImage(roi_front=(954,425,40,35), roi_back=(737,401,440,69), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main10/main10_pet_house_10.png")
+
+
 	# Image Rule Assets
 	# description 
 	I_CHECK_MAIN_2 = RuleImage(roi_front=(1090,146,48,55), roi_back=(880,108,271,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main2/main2_check_main_2.png")

+ 1 - 0
tasks/Component/Costume/config.py

@@ -16,6 +16,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_7 = 'costume_main_7'  # 盛夏幽庭
     COSTUME_MAIN_8 = 'costume_main_8'  # 远海航船
     COSTUME_MAIN_9 = 'costume_main_9'  # 结缘神社
+    COSTUME_MAIN_10 = 'costume_main_10'  # 望月幽庭
 
 # 结界皮肤
 class RealmType(str, Enum):

+ 5 - 0
tasks/Component/Costume/costume_base.py

@@ -58,6 +58,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_9',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_9',
                               'I_PET_HOUSE': 'I_PET_HOUSE_9', },
+    MainType.COSTUME_MAIN_10: {'I_CHECK_MAIN': 'I_CHECK_MAIN_10',
+                               'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_10',
+                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_10',
+                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_10',
+                               'I_PET_HOUSE': 'I_PET_HOUSE_10', },
 }
 
 # 结界皮肤

+ 47 - 0
tasks/Component/Costume/main10/image.json

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_10",
+    "imageName": "main10_check_main_10.png",
+    "roiFront": "725,125,134,42",
+    "roiBack": "149,109,1099,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_10",
+    "imageName": "main10_main_goto_exploration_10.png",
+    "roiFront": "444,170,31,30",
+    "roiBack": "193,143,904,66",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_10",
+    "imageName": "main10_main_goto_summon_10.png",
+    "roiFront": "899,139,35,29",
+    "roiBack": "515,115,623,68",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_10",
+    "imageName": "main10_main_goto_town_10.png",
+    "roiFront": "712,328,41,42",
+    "roiBack": "270,307,999,78",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_10",
+    "imageName": "main10_pet_house_10.png",
+    "roiFront": "954,425,40,35",
+    "roiBack": "737,401,440,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/Costume/main10/main10_check_main_10.png


BIN
tasks/Component/Costume/main10/main10_main_goto_exploration_10.png


BIN
tasks/Component/Costume/main10/main10_main_goto_summon_10.png


BIN
tasks/Component/Costume/main10/main10_main_goto_town_10.png


BIN
tasks/Component/Costume/main10/main10_pet_house_10.png