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

战斗主题添加流焰蝶舞

徐旭光 1 год назад
Родитель
Сommit
16e2611e77

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

@@ -51,6 +51,7 @@ class BattleType(str, Enum):
     COSTUME_BATTLE_7 = 'costume_battle_7'  # 笼梦之境
     COSTUME_BATTLE_8 = 'costume_battle_8'  # 藏金台阁
     COSTUME_BATTLE_9 = 'costume_battle_9'  # 莲华圣域
+    COSTUME_BATTLE_10 = 'costume_battle_10'  # 流焰蝶舞
 
 
 

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

@@ -131,6 +131,11 @@ battle_theme_model = {
         'I_EXIT': 'I_EXIT_9',
         'I_FRIENDS': 'I_FRIENDS_9',
     },
+    BattleType.COSTUME_BATTLE_10: {
+        'I_LOCAL': 'I_LOCAL_10',
+        'I_EXIT': 'I_EXIT_10',
+        'I_FRIENDS': 'I_FRIENDS_10',
+    },
 }
 
 

+ 10 - 1
tasks/Component/CostumeBattle/assets.py

@@ -19,6 +19,15 @@ class CostumeBattleAssets:
 	I_FRIENDS_1 = RuleImage(roi_front=(88,18,35,34), roi_back=(88,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle1/battle1_friends_1.png")
 
 
+	# Image Rule Assets
+	# 左上角退出 
+	I_EXIT_10 = RuleImage(roi_front=(16,15,38,36), roi_back=(16,15,38,36), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_exit_10.png")
+	# 左上角好友 
+	I_FRIENDS_10 = RuleImage(roi_front=(90,14,35,37), roi_back=(90,14,35,37), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_friends_10.png")
+	# 指针 
+	I_LOCAL_10 = RuleImage(roi_front=(29,566,23,26), roi_back=(29,566,23,26), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle10/battle10_local_10.png")
+
+
 	# Image Rule Assets
 	# description 
 	I_LOCAL_2 = RuleImage(roi_front=(30,569,21,22), roi_back=(30,569,21,22), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle2/battle2_local_2.png")
@@ -70,7 +79,7 @@ class CostumeBattleAssets:
 	# 左上角退出 
 	I_EXIT_7 = RuleImage(roi_front=(22,17,27,31), roi_back=(22,17,27,31), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_exit_7.png")
 	# 左上角好友 
-	I_FRIENDS_7 = RuleImage(roi_front=(89,18,35,34), roi_back=(89,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle7_friends_7.png")
+	I_FRIENDS_7 = RuleImage(roi_front=(89,18,35,34), roi_back=(89,18,35,34), threshold=0.8, method="Template matching", file="./tasks/Component/CostumeBattle/battle7/battle6_friends_7.png")
 
 
 	# Image Rule Assets

BIN
tasks/Component/CostumeBattle/battle10/battle10_exit_10.png


BIN
tasks/Component/CostumeBattle/battle10/battle10_friends_10.png


BIN
tasks/Component/CostumeBattle/battle10/battle10_local_10.png


+ 29 - 0
tasks/Component/CostumeBattle/battle10/image.json

@@ -0,0 +1,29 @@
+[
+  {
+    "itemName": "exit_10",
+    "imageName": "battle10_exit_10.png",
+    "roiFront": "16,15,38,36",
+    "roiBack": "16,15,38,36",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "左上角退出"
+  },
+  {
+    "itemName": "friends_10",
+    "imageName": "battle10_friends_10.png",
+    "roiFront": "90,14,35,37",
+    "roiBack": "90,14,35,37",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "左上角好友"
+  },
+  {
+    "itemName": "local_10",
+    "imageName": "battle10_local_10.png",
+    "roiFront": "29,566,23,26",
+    "roiBack": "29,566,23,26",
+    "method": "Template matching",
+    "threshold": 0.8,
+    "description": "指针"
+  }
+]