Jelajahi Sumber

fix(Component): Update "Buy"

runhey 3 tahun lalu
induk
melakukan
31f7746834

+ 6 - 6
tasks/Component/Buy/assets.py

@@ -12,22 +12,22 @@ class BuyAssets:
 
 	# Click Rule Assets
 	# description 
-	C_BUY_ONE = RuleClick(roi_front=(553,435,174,61), roi_back=(553,435,174,61), name="buy_one")
+	C_BUY_ONE = RuleClick(roi_front=(551,506,174,36), roi_back=(551,506,174,36), name="buy_one")
 	# description 
-	C_BUY_MORE = RuleClick(roi_front=(551,510,174,60), roi_back=(551,510,174,60), name="buy_more")
+	C_BUY_MORE = RuleClick(roi_front=(551,540,174,40), roi_back=(551,540,174,40), name="buy_more")
 	# 取消购买 
 	C_BUY_CANCEL = RuleClick(roi_front=(121,2,100,22), roi_back=(121,2,100,22), name="buy_cancel")
 
 
 	# Image Rule Assets
 	# 拉满 
-	I_BUY_PLUS = RuleImage(roi_front=(759,422,50,58), roi_back=(746,397,98,96), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_plus.png")
+	I_BUY_PLUS = RuleImage(roi_front=(759,422,50,58), roi_back=(746,397,98,156), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_plus.png")
 	# 加一个 
-	I_BUY_ADD = RuleImage(roi_front=(671,428,51,54), roi_back=(645,412,111,84), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_add.png")
+	I_BUY_ADD = RuleImage(roi_front=(671,428,51,54), roi_back=(645,412,111,141), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_add.png")
 	# 减 
-	I_BUY_SUB = RuleImage(roi_front=(467,429,50,48), roi_back=(452,412,85,94), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_sub.png")
+	I_BUY_SUB = RuleImage(roi_front=(467,429,50,48), roi_back=(452,412,85,147), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_sub.png")
 	# 出现用魂玉购买 
-	I_BUY_RMB = RuleImage(roi_front=(610,532,35,32), roi_back=(548,513,178,72), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_rmb.png")
+	I_BUY_RMB = RuleImage(roi_front=(610,532,35,32), roi_back=(548,483,178,119), threshold=0.8, method="Template matching", file="./tasks/Component/Buy/buy/buy_buy_rmb.png")
 
 
 	# Ocr Rule Assets

+ 4 - 4
tasks/Component/Buy/buy/click.json

@@ -1,14 +1,14 @@
 [
   {
     "itemName": "buy_one",
-    "roiFront": "553,435,174,61",
-    "roiBack": "553,435,174,61",
+    "roiFront": "551,506,174,36",
+    "roiBack": "551,506,174,36",
     "description": "description"
   },
   {
     "itemName": "buy_more",
-    "roiFront": "551,510,174,60",
-    "roiBack": "551,510,174,60",
+    "roiFront": "551,540,174,40",
+    "roiBack": "551,540,174,40",
     "description": "description"
   },
   {

+ 4 - 4
tasks/Component/Buy/buy/image.json

@@ -3,7 +3,7 @@
     "itemName": "buy_plus",
     "imageName": "buy_buy_plus.png",
     "roiFront": "759,422,50,58",
-    "roiBack": "746,397,98,96",
+    "roiBack": "746,397,98,156",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "拉满"
@@ -12,7 +12,7 @@
     "itemName": "buy_add",
     "imageName": "buy_buy_add.png",
     "roiFront": "671,428,51,54",
-    "roiBack": "645,412,111,84",
+    "roiBack": "645,412,111,141",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "加一个"
@@ -21,7 +21,7 @@
     "itemName": "buy_sub",
     "imageName": "buy_buy_sub.png",
     "roiFront": "467,429,50,48",
-    "roiBack": "452,412,85,94",
+    "roiBack": "452,412,85,147",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "减"
@@ -30,7 +30,7 @@
     "itemName": "buy_rmb",
     "imageName": "buy_buy_rmb.png",
     "roiFront": "610,532,35,32",
-    "roiBack": "548,513,178,72",
+    "roiBack": "548,483,178,119",
     "method": "Template matching",
     "threshold": 0.8,
     "description": "出现用魂玉购买"