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

feat(costume main): Add '结缘神社' #195

huangrunheng 2 лет назад
Родитель
Сommit
f0ed15093a

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

@@ -114,3 +114,16 @@ class CostumeAssets:
 	I_PET_HOUSE_8 = RuleImage(roi_front=(1110,499,50,40), roi_back=(1033,469,241,83), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main8/main8_pet_house_8.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_9 = RuleImage(roi_front=(764,117,134,42), roi_back=(149,109,1099,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main9/main9_check_main_9.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_9 = RuleImage(roi_front=(553,107,31,30), roi_back=(234,98,904,68), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main9/main9_main_goto_exploration_9.png")
+	#  
+	I_MAIN_GOTO_SUMMON_9 = RuleImage(roi_front=(970,210,35,29), roi_back=(609,194,623,68), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main9/main9_main_goto_summon_9.png")
+	# description 
+	I_MAIN_GOTO_TOWN_9 = RuleImage(roi_front=(684,342,41,42), roi_back=(276,321,999,78), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main9/main9_main_goto_town_9.png")
+	# description 
+	I_PET_HOUSE_9 = RuleImage(roi_front=(915,351,40,35), roi_back=(755,319,405,93), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main9/main9_pet_house_9.png")
+
+

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

@@ -15,6 +15,7 @@ class MainType(str, Enum):
     COSTUME_MAIN_6 = 'costume_main_6'  # 暖池青苑
     COSTUME_MAIN_7 = 'costume_main_7'  # 盛夏幽庭
     COSTUME_MAIN_8 = 'costume_main_8'  # 远海航船
+    COSTUME_MAIN_9 = 'costume_main_9'  # 结缘神社
 
 # 结界皮肤
 class RealmType(str, Enum):

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

@@ -51,6 +51,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_8',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_8',
                               'I_PET_HOUSE': 'I_PET_HOUSE_8', },
+    MainType.COSTUME_MAIN_9: {'I_CHECK_MAIN': 'I_CHECK_MAIN_9',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_9',
+                              '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', },
 }
 
 # 结界皮肤

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_9",
+    "imageName": "main9_check_main_9.png",
+    "roiFront": "764,117,134,42",
+    "roiBack": "149,109,1099,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_9",
+    "imageName": "main9_main_goto_exploration_9.png",
+    "roiFront": "553,107,31,30",
+    "roiBack": "234,98,904,68",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_9",
+    "imageName": "main9_main_goto_summon_9.png",
+    "roiFront": "970,210,35,29",
+    "roiBack": "609,194,623,68",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_9",
+    "imageName": "main9_main_goto_town_9.png",
+    "roiFront": "684,342,41,42",
+    "roiBack": "276,321,999,78",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_9",
+    "imageName": "main9_pet_house_9.png",
+    "roiFront": "915,351,40,35",
+    "roiBack": "755,319,405,93",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/Costume/main9/main9_check_main_9.png


BIN
tasks/Component/Costume/main9/main9_main_goto_exploration_9.png


BIN
tasks/Component/Costume/main9/main9_main_goto_summon_9.png


BIN
tasks/Component/Costume/main9/main9_main_goto_town_9.png


BIN
tasks/Component/Costume/main9/main9_pet_house_9.png