示例#1
0
 def isAtHome(self):
     print("isAtHome")
     return screen.autoCompareResImgHash(self.getHandle(), "spc_essex//at_home_10_10_50_30.png")
示例#2
0
 def onSelectTeam(self):
     print("onSelectTeam")
     return screen.autoCompareResImgHash(self.getHandle(), "spc_essex//on_select_team_78_82_90_88.png")
示例#3
0
 def onReady(self):
     return screen.autoCompareResImgHash(self.getHandle(), "spc_essex//ready_80_84_96_94.png")
示例#4
0
 def isAtHome(self):
     return screen.autoCompareResImgHash(
         self.getHandle(), "act/sp_huapohaikong/home_0_0_30_20.png", 0.4)
示例#5
0
 def isAtInMapReady(self):
     return screen.autoCompareResImgHash(
         self.getHandle(), "act/sp_huapohaikong/ready_30_30_80_50.png")
 def isAtHome(self):
     return screen.autoCompareResImgHash(self.getHandle(),
                                         "diehai/map_0_0_30_20.png", 0.4)
示例#7
0
 def onBattleEnd(self):
     return screen.autoCompareResImgHash(self.handle, "on_battle_end_10_10_90_30.png") \
         or screen.autoCompareResImgHash(self.handle, "battle_end1_30_80_50_95.png")
示例#8
0
 def onBattleEnd(self):
     print("onBattleEnd")
     return screen.autoCompareResImgHash(self.handle, "everyday\\win_35_15_65_30.png") \
         or screen.autoCompareResImgHash(self.handle, "everyday\\get_item_35_15_65_30.png")\
         or screen.autoCompareResImgHash(self.handle, "everyday\\end_82_86_100_100.png")\
         or screen.autoCompareResImgHash(self.handle, "everyday\\end_0_0_30_10.png")
示例#9
0
 def isAtHome(self):
     print("isAtHome")
     return screen.autoCompareResImgHash(self.handle, "everyday\\home_0_0_40_30.png")
 def isAtHome(self):
     return screen.autoCompareResImgHash(self.getHandle(),
                                         "act/tiexie/map_c1_0_0_30_20.png",
                                         0.4)
示例#11
0
 def onSelectTeam(self):
     print("onSelectTeam")
     return screen.autoCompareResImgHash(self.handle, "everyday\\select_team_82_86_100_100.png")
示例#12
0
 def onSelectTeam(self):
     print("onSelectTeam")
     return screen.autoCompareResImgHash(self.handle,
                                         "on_select_team_78_80_92_88.png")
示例#13
0
 def isNewMission(self):  # TODO 待优化
     print("isNewMission")
     return screen.autoCompareResImgHash(self.handle, "new_mission_28_26_70_76.png") \
         or self.matchResImgInWindow("newtask_28_26_70_30.png") \
         or self.matchResImgInWindow("newtask_30_68_66_76.png")
示例#14
0
 def isInMap(self):
     return screen.autoCompareResImgHash(self.handle,
                                         "in_map_65_90_100_100.png")
示例#15
0
 def onBattleEndCount(self):
     return self.matchResImgInWindow("battle_end_68_86_92_96.png")\
         or screen.autoCompareResImgHash(self.getHandle(),"battle_end2_68_86_92_96.png")
示例#16
0
 def needUseKey(self):
     return screen.autoCompareResImgHash(self.handle,
                                         "hongran//usekey_30_26_70_76.png")
示例#17
0
 def isHpEmpty(self):
     return screen.autoCompareResImgHash(self.handle,"hp_empty_10_40_90_62.png")
示例#18
0
 def autoCompareResImgHash(self, img,alikeValue=0.35):
     return screen.autoCompareResImgHash(self.getHandle(), img,alikeValue)
 def isAtInMapReady(self):
     return screen.autoCompareResImgHash(self.getHandle(),
                                         "diehai/ready_20_30_80_80.png")
示例#20
0
 def isAtInMapReady(self):
     return screen.autoCompareResImgHash(self.handle,
                                         "act//ready_20_30_80_80.png")