Kaynağa Gözat

feat(#668): 鏖刀禁府庭院皮肤适配

chubbycat 1 yıl önce
ebeveyn
işleme
cbe9a7e88c

BIN
tasks/ActivityShikigami/as/as_antivity_win.png


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

@@ -36,6 +36,19 @@ class CostumeAssets:
 	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_11 = RuleImage(roi_front=(680,128,83,33), roi_back=(149,109,1099,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main11/main11_check_main_11.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_11 = RuleImage(roi_front=(522,113,21,34), roi_back=(192,105,904,66), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main11/main11_main_goto_exploration_11.png")
+	#  
+	I_MAIN_GOTO_SUMMON_11 = RuleImage(roi_front=(946,111,20,37), roi_back=(500,102,623,68), threshold=0.6, method="Template matching", file="./tasks/Component/Costume/main11/main11_main_goto_summon_11.png")
+	# 町中 
+	I_MAIN_GOTO_TOWN_11 = RuleImage(roi_front=(701,164,36,20), roi_back=(262,145,999,78), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main11/main11_main_goto_town_11.png")
+	# 宠物室 
+	I_PET_HOUSE_11 = RuleImage(roi_front=(946,335,40,35), roi_back=(729,323,440,69), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main11/main11_pet_house_11.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

@@ -17,6 +17,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_8 = 'costume_main_8'  # 远海航船
     COSTUME_MAIN_9 = 'costume_main_9'  # 结缘神社
     COSTUME_MAIN_10 = 'costume_main_10'  # 望月幽庭
+    COSTUME_MAIN_11 = 'costume_main_11'  # 鏖刀禁府
 
 # 结界皮肤
 class RealmType(str, Enum):

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

@@ -63,6 +63,11 @@ main_costume_model = {
                                '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', },
+    MainType.COSTUME_MAIN_11: {'I_CHECK_MAIN': 'I_CHECK_MAIN_11',
+                               'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_11',
+                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_11',
+                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_11',
+                               'I_PET_HOUSE': 'I_PET_HOUSE_11', },
 }
 
 # 结界皮肤

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_11",
+    "imageName": "main11_check_main_11.png",
+    "roiFront": "680,128,83,33",
+    "roiBack": "149,109,1099,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_11",
+    "imageName": "main11_main_goto_exploration_11.png",
+    "roiFront": "522,113,21,34",
+    "roiBack": "192,105,904,66",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_11",
+    "imageName": "main11_main_goto_summon_11.png",
+    "roiFront": "946,111,20,37",
+    "roiBack": "500,102,623,68",
+    "method": "Template matching",
+    "threshold": 0.6,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_11",
+    "imageName": "main11_main_goto_town_11.png",
+    "roiFront": "701,164,36,20",
+    "roiBack": "262,145,999,78",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "町中"
+  },
+  {
+    "itemName": "pet_house_11",
+    "imageName": "main11_pet_house_11.png",
+    "roiFront": "946,335,40,35",
+    "roiBack": "729,323,440,69",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "宠物室"
+  }
+]

BIN
tasks/Component/Costume/main11/main11_check_main_11.png


BIN
tasks/Component/Costume/main11/main11_main_goto_exploration_11.png


BIN
tasks/Component/Costume/main11/main11_main_goto_summon_11.png


BIN
tasks/Component/Costume/main11/main11_main_goto_town_11.png


BIN
tasks/Component/Costume/main11/main11_pet_house_11.png