Răsfoiți Sursa

feat(costume main): Add '盛夏幽庭' #182

huangrunheng 2 ani în urmă
părinte
comite
0c90e4e908

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

@@ -88,3 +88,16 @@ class CostumeAssets:
 	I_PET_HOUSE_6 = RuleImage(roi_front=(1101,516,29,40), roi_back=(987,497,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main6/main6_pet_house_6.png")
 
 
+	# Image Rule Assets
+	# description 
+	I_CHECK_MAIN_7 = RuleImage(roi_front=(843,116,240,64), roi_back=(149,108,1078,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main7/main7_check_main_7.png")
+	# description 
+	I_MAIN_GOTO_EXPLORATION_7 = RuleImage(roi_front=(653,150,47,79), roi_back=(237,137,904,100), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main7/main7_main_goto_exploration_7.png")
+	#  
+	I_MAIN_GOTO_SUMMON_7 = RuleImage(roi_front=(1110,264,43,59), roi_back=(701,232,779,100), threshold=0.7, method="Template matching", file="./tasks/Component/Costume/main7/main7_main_goto_summon_7.png")
+	# description 
+	I_MAIN_GOTO_TOWN_7 = RuleImage(roi_front=(712,314,56,51), roi_back=(300,295,777,82), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main7/main7_main_goto_town_7.png")
+	# description 
+	I_PET_HOUSE_7 = RuleImage(roi_front=(1163,468,50,40), roi_back=(1033,444,241,73), threshold=0.8, method="Template matching", file="./tasks/Component/Costume/main7/main7_pet_house_7.png")
+
+

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

@@ -11,7 +11,8 @@ class MainType(str, Enum):
     COSTUME_MAIN_3 = 'costume_main_3'  # 烬夜韶阁
     COSTUME_MAIN_4 = 'costume_main_4'  # 笔墨山河
     COSTUME_MAIN_5 = 'costume_main_5'  # 枫色秋庭
-    COSTUME_MAIN_6 = 'costume_main_6'  # 枫色秋庭
+    COSTUME_MAIN_6 = 'costume_main_6'  # 暖池青苑
+    COSTUME_MAIN_7 = 'costume_main_7'  # 盛夏幽庭
 
 
 class CostumeConfig(BaseModel):

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

@@ -38,6 +38,11 @@ main_costume_model = {
                               'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_6',
                               'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_6',
                               'I_PET_HOUSE': 'I_PET_HOUSE_6', },
+    MainType.COSTUME_MAIN_7: {'I_CHECK_MAIN': 'I_CHECK_MAIN_7',
+                              'I_MAIN_GOTO_EXPLORATION': 'I_MAIN_GOTO_EXPLORATION_7',
+                              'I_MAIN_GOTO_SUMMON': 'I_MAIN_GOTO_SUMMON_7',
+                              'I_MAIN_GOTO_TOWN': 'I_MAIN_GOTO_TOWN_7',
+                              'I_PET_HOUSE': 'I_PET_HOUSE_7', },
 }
 
 

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

@@ -0,0 +1,47 @@
+[
+  {
+    "itemName": "check_main_7",
+    "imageName": "main7_check_main_7.png",
+    "roiFront": "843,116,240,64",
+    "roiBack": "149,108,1078,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_exploration_7",
+    "imageName": "main7_main_goto_exploration_7.png",
+    "roiFront": "653,150,47,79",
+    "roiBack": "237,137,904,100",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "main_goto_summon_7",
+    "imageName": "main7_main_goto_summon_7.png",
+    "roiFront": "1110,264,43,59",
+    "roiBack": "701,232,779,100",
+    "method": "Template matching",
+    "threshold": 0.7,
+    "description": ""
+  },
+  {
+    "itemName": "main_goto_town_7",
+    "imageName": "main7_main_goto_town_7.png",
+    "roiFront": "712,314,56,51",
+    "roiBack": "300,295,777,82",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  },
+  {
+    "itemName": "pet_house_7",
+    "imageName": "main7_pet_house_7.png",
+    "roiFront": "1163,468,50,40",
+    "roiBack": "1033,444,241,73",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "description"
+  }
+]

BIN
tasks/Component/Costume/main7/main7_check_main_7.png


BIN
tasks/Component/Costume/main7/main7_main_goto_exploration_7.png


BIN
tasks/Component/Costume/main7/main7_main_goto_summon_7.png


BIN
tasks/Component/Costume/main7/main7_main_goto_town_7.png


BIN
tasks/Component/Costume/main7/main7_pet_house_7.png