Пример #1
0
    def __init__(self, adb, cwd, normal=None, high=None):
        if normal == None and high == None:
            self.updateTag()
        else:
            self.tagDict = normal
            self.highTagDict = high

        self.isTagNeedUpdate = False

        self.adb = adb
        self.regAns = None
        self.cwd = cwd
        self.screenShot = self.cwd + '/bin/adb/PCScreenshot.png'
        self.tag = pictureFind.picRead([
            self.cwd + '/res/publicCall/' + i
            for i in listdir(self.cwd + '/res/publicCall')
        ])
        self.tag.sort(key=lambda x: len(x['obj']), reverse=True)
        self.tagOnScreenList = []
        self.refresh = pictureFind.picRead(self.cwd +
                                           '/res/panel/publicCall/refresh.png')
        self.confirm = pictureFind.picRead(self.cwd +
                                           '/res/panel/other/confirm.png')
        self.pcInMark = pictureFind.picRead(
            self.cwd + '/res/panel/publicCall/inPcMark.png')

        self.is1Need = False
        self.is5Need = False
Пример #2
0
    def __init__(self, adb, cwd, listGoTo):
        self.adb = adb
        self.cwd = cwd
        self.switch = False
        self.icon = self.cwd + "/res/ico.ico"
        #self.home = pictureFind.picRead(self.cwd + "/res/panel/other/home.png")
        #self.mainpage = pictureFind.picRead(self.cwd + "/res/panel/other/mainpage.png")
        self.screenShot = self.cwd + '/bin/adb/arktemp.png'
        #self.mainpageMark = pictureFind.picRead(self.cwd + "/res/panel/other/act.png")
        self.frendList = pictureFind.picRead(self.cwd +
                                             '/res/panel/other/friendList.png')
        self.visitNext = pictureFind.picRead(self.cwd +
                                             '/res/panel/other/visitNext.png')
        self.visitFinish = pictureFind.picRead(
            self.cwd + '/res/panel/other/visitFinish.png')
        self.friends = pictureFind.picRead(self.cwd +
                                           '/res/panel/other/friends.png')
        self.visit = pictureFind.picRead(self.cwd +
                                         '/res/panel/other/visit.png')

        self.listGoTo = listGoTo
        self.mainpage = self.listGoTo[0]
        self.home = self.listGoTo[1]
        self.mainpageMark = self.listGoTo[2]
        self.listGetCredit = [self.visitNext, self.visitFinish]
Пример #3
0
    def initNormalPicRes(self):
        self.home = pictureFind.picRead(self.cwd + "/res/panel/other/home.png")
        self.mainpage = pictureFind.picRead(self.cwd +
                                            "/res/panel/other/mainpage.png")
        self.mainpageMark = pictureFind.picRead(self.cwd +
                                                "/res/panel/other/act.png")

        self.listGoTo = [self.mainpage, self.home, self.mainpageMark]
Пример #4
0
    def initAuto(self, listGoTo):
        self.pcFinish = pictureFind.picRead(self.cwd +
                                            '/res/panel/publicCall/finish.png')
        self.pcInMark = pictureFind.picRead(
            self.cwd + '/res/panel/publicCall/inPcMark.png')
        self.pc9 = pictureFind.picRead(self.cwd +
                                       '/res/panel/publicCall/pc9.png')
        self.pcCancel = pictureFind.picRead(
            self.cwd + '/res/panel/publicCall/pcCancel.png')
        self.pcConfirm = pictureFind.picRead(
            self.cwd + '/res/panel/publicCall/pcConfirm.png')
        self.pcMark = pictureFind.picRead(self.cwd +
                                          '/res/panel/publicCall/pcMark.png')
        self.pcNew = pictureFind.picRead(self.cwd +
                                         '/res/panel/publicCall/pcNew.png')
        self.pcAddTime = pictureFind.picRead(
            self.cwd + '/res/panel/publicCall/addTime.png')
        self.pcEnter = pictureFind.picRead(self.cwd +
                                           '/res/panel/publicCall/enter.png')

        self.listGoTo = listGoTo
        self.mainpage = self.listGoTo[0]
        self.home = self.listGoTo[1]
        self.mainpageMark = self.listGoTo[2]

        self.employFlag = True
        self.searchFlag = True
Пример #5
0
    def __init__(self, adb, cwd, ico):
        super(BattleLoop, self).__init__()
        self.cwd = cwd
        self.adb = adb
        self.ico = ico
        self.switch = False
        self.connectSwitch = False
        self.autoRecMed = False
        self.autoRecStone = False
        self.stoneMaxNum = 0

        self.isWaitingUser = False
        self.isUselessContinue = False

        self.screenShot = self.cwd + '/bin/adb/arktemp.png'
        self.listBattleImg = pictureFind.picRead([self.cwd + "/res/battle/" + i for i in listdir(self.cwd + "/res/battle")])
        self.listActImg = pictureFind.picRead([self.cwd + "/res/actBattle/" + i for i in listdir(self.cwd + "/res/actBattle")])
        
        self.listImg = self.listActImg + self.listBattleImg

        self.startA = pictureFind.picRead(self.cwd + "/res/battle/startApart.png")
        self.autoOff = pictureFind.picRead(self.cwd + "/res/panel/other/autoOff.png")
        self.autoOn = pictureFind.picRead(self.cwd + "/res/panel/other/autoOn.png")

        self.recMed = pictureFind.picRead(self.cwd + "/res/panel/recovery/medicament.png")
        self.recStone = pictureFind.picRead(self.cwd + "/res/panel/recovery/stone.png")
        self.confirm = pictureFind.picRead(self.cwd + "/res/panel/recovery/confirm.png")

        self.uselessLevel = pictureFind.picRead(self.cwd + "/res/panel/other/uselessLevel.png")
Пример #6
0
    def __init__(self, adb, cwd, ico, listGoTo):
        self.adb = adb
        self.cwd = cwd
        self.switch = False
        self.icon = ico
        #self.home = pictureFind.picRead(self.cwd + "/res/panel/other/home.png")
        #self.mainpage = pictureFind.picRead(self.cwd + "/res/panel/other/mainpage.png")
        self.screenShot = self.cwd + '/bin/adb/arktemp.png'
        self.task = pictureFind.picRead(self.cwd + "/res/panel/other/task.png")
        self.taskNo = pictureFind.picRead(self.cwd +
                                          "/res/panel/other/taskNo.png")
        self.get = pictureFind.picRead(self.cwd + "/res/panel/other/get.png")
        self.getMaterial = pictureFind.picRead(
            self.cwd + "/res/panel/other/getMaterial.png")
        self.daySel = pictureFind.picRead(
            self.cwd + "/res/panel/other/dailyTaskSelect.png")
        self.actSel = pictureFind.picRead(self.cwd +
                                          "/res/panel/other/actSelect.png")
        self.weekUnSel = pictureFind.picRead(
            self.cwd + "/res/panel/other/weeklyTaskUnSelect.png")
        self.weekSel = pictureFind.picRead(
            self.cwd + "/res/panel/other/weeklyTaskSelect.png")
        #self.mainpageMark = pictureFind.picRead(self.cwd + "/res/panel/other/act.png")
        self.waitForNew = pictureFind.picRead(
            self.cwd + "/res/panel/other/waitForNew.png")

        self.listGoTo = listGoTo
        self.mainpage = self.listGoTo[0]
        self.home = self.listGoTo[1]
        self.mainpageMark = self.listGoTo[2]
Пример #7
0
    def imgInit(self):
        self.recMed = pictureFind.picRead(self.cwd +
                                          "/res/panel/recovery/medicament.png")
        self.recStone = pictureFind.picRead(self.cwd +
                                            "/res/panel/recovery/stone.png")
        self.confirm = pictureFind.picRead(self.cwd +
                                           "/res/panel/recovery/confirm.png")

        #self.exPos = {'ex1':(220,280),'ex2':(845,580),'ex3':(1230,340)}
        self.screenShot = self.cwd + '/bin/adb/arktemp.png'
        self.act = self.cwd + "/res/panel/other/act.png"
        self.battle = self.cwd + "/res/panel/other/battle.png"
        self.home = self.cwd + "/res/panel/other/home.png"
        self.visitNext = self.cwd + "/res/panel/other/visitNext.png"
        self.listBattleImg = pictureFind.picRead([
            self.cwd + "/res/battle/" + i
            for i in listdir(self.cwd + "/res/battle")
        ])
        self.startA = pictureFind.picRead(self.cwd +
                                          "/res/battle/startApart.png")
        self.autoOff = pictureFind.picRead(self.cwd +
                                           "/res/panel/other/autoOff.png")
        self.autoOn = pictureFind.picRead(self.cwd +
                                          "/res/panel/other/autoOn.png")
        self.II = {'MAIN':self.cwd + "/res/panel/level/I/main.png", 'EX':self.cwd + "/res/panel/level/I/exterminate.png",\
            'RS':self.cwd + "/res/panel/level/I/resource.png", 'PR':self.cwd + "/res/panel/level/I/chip.png"}
        self.III = {'A':self.cwd + "/res/panel/level/II/A.png", 'B':self.cwd + "/res/panel/level/II/B.png",\
                'C':self.cwd + "/res/panel/level/II/C.png", 'D':self.cwd + "/res/panel/level/II/D.png",\
                'AP':self.cwd + "/res/panel/level/II/AP.png", 'CA':self.cwd + "/res/panel/level/II/CA.png",\
                'CE':self.cwd + "/res/panel/level/II/CE.png", 'SK':self.cwd + "/res/panel/level/II/SK.png",\
                'LS':self.cwd + "/res/panel/level/II/LS.png", \
                '0':self.cwd + "/res/panel/level/II/ep0.png", '1':self.cwd + "/res/panel/level/II/ep1.png",\
                '2':self.cwd + "/res/panel/level/II/ep2.png", '3':self.cwd + "/res/panel/level/II/ep3.png",\
                '4':self.cwd + "/res/panel/level/II/ep4.png", '5':self.cwd + "/res/panel/level/II/ep5.png",\
                '6':self.cwd + "/res/panel/level/II/ep6.png", '7':self.cwd + "/res/panel/level/II/ep7.png",\
                '8':self.cwd + "/res/panel/level/II/ep8.png"}
        self.exIV = {'ex1':self.cwd + "/res/panel/level/III/e01.png",'ex2':self.cwd + "/res/panel/level/III/e02.png", 'ex3':self.cwd + "/res/panel/level/III/e03.png",\
                    'ex4':self.cwd + "/res/panel/level/III/e04.png", 'exSwitch':self.cwd + "/res/panel/level/III/exSwitch.png"}
        self.exSymbol = self.cwd + "/res/panel/other/exSymbol.png"
Пример #8
0
 def __init__(self, cwd):
     self.cwd = cwd
     self.bootyPicPath = cwd + '/res/booty/pics'
     self.bootyList = {
         'RMA70-12':
         pictureFind.picRead(self.bootyPicPath + '/RMA70-12.png'),
         'RMA70-24':
         pictureFind.picRead(self.bootyPicPath + '/RMA70-24.png'),
         '白马醇': pictureFind.picRead(self.bootyPicPath + '/白马醇.png'),
         '炽合金': pictureFind.picRead(self.bootyPicPath + '/炽合金.png'),
         '炽合金块': pictureFind.picRead(self.bootyPicPath + '/炽合金块.png'),
         '代糖': pictureFind.picRead(self.bootyPicPath + '/代糖.png'),
         '改量装置': pictureFind.picRead(self.bootyPicPath + '/改量装置.png'),
         '固源岩': pictureFind.picRead(self.bootyPicPath + '/固源岩.png'),
         '固源岩组': pictureFind.picRead(self.bootyPicPath + '/固源岩组.png'),
         '聚合凝胶': pictureFind.picRead(self.bootyPicPath + '/聚合凝胶.png'),
         '聚酸酯': pictureFind.picRead(self.bootyPicPath + '/聚酸酯.png'),
         '聚酸酯块': pictureFind.picRead(self.bootyPicPath + '/聚酸酯块.png'),
         '聚酸酯组': pictureFind.picRead(self.bootyPicPath + '/聚酸酯组.png'),
         '凝胶': pictureFind.picRead(self.bootyPicPath + '/凝胶.png'),
         '扭转醇': pictureFind.picRead(self.bootyPicPath + '/扭转醇.png'),
         '破损装置': pictureFind.picRead(self.bootyPicPath + '/破损装置.png'),
         '轻锰矿': pictureFind.picRead(self.bootyPicPath + '/轻锰矿.png'),
         '全新装置': pictureFind.picRead(self.bootyPicPath + '/全新装置.png'),
         '三水锰矿': pictureFind.picRead(self.bootyPicPath + '/三水锰矿.png'),
         '双酮': pictureFind.picRead(self.bootyPicPath + '/双酮.png'),
         '糖': pictureFind.picRead(self.bootyPicPath + '/糖.png'),
         '糖聚块': pictureFind.picRead(self.bootyPicPath + '/糖聚块.png'),
         '糖组': pictureFind.picRead(self.bootyPicPath + '/糖组.png'),
         '提纯源岩': pictureFind.picRead(self.bootyPicPath + '/提纯源岩.png'),
         '酮凝集': pictureFind.picRead(self.bootyPicPath + '/酮凝集.png'),
         '酮凝集组': pictureFind.picRead(self.bootyPicPath + '/酮凝集组.png'),
         '酮阵列': pictureFind.picRead(self.bootyPicPath + '/酮阵列.png'),
         '五水研磨石': pictureFind.picRead(self.bootyPicPath + '/五水研磨石.png'),
         '研磨石': pictureFind.picRead(self.bootyPicPath + '/研磨石.png'),
         '异铁': pictureFind.picRead(self.bootyPicPath + '/异铁.png'),
         '异铁块': pictureFind.picRead(self.bootyPicPath + '/异铁块.png'),
         '异铁碎片': pictureFind.picRead(self.bootyPicPath + '/异铁碎片.png'),
         '异铁组': pictureFind.picRead(self.bootyPicPath + '/异铁组.png'),
         '源岩': pictureFind.picRead(self.bootyPicPath + '/源岩.png'),
         '酯原料': pictureFind.picRead(self.bootyPicPath + '/酯原料.png'),
         '装置': pictureFind.picRead(self.bootyPicPath + '/装置.png'),
         '晶体元件': pictureFind.picRead(self.bootyPicPath + '/晶体元件.png'),
         '晶体电子单元': pictureFind.picRead(self.bootyPicPath + '/晶体电子单元.png'),
         '晶体电路': pictureFind.picRead(self.bootyPicPath + '/晶体电路.png'),
         '辅助芯片': pictureFind.picRead(self.bootyPicPath + '/辅助芯片.png'),
         '近卫芯片': pictureFind.picRead(self.bootyPicPath + '/近卫芯片.png'),
         '狙击芯片': pictureFind.picRead(self.bootyPicPath + '/狙击芯片.png'),
         '术师芯片': pictureFind.picRead(self.bootyPicPath + '/术师芯片.png'),
         '特种芯片': pictureFind.picRead(self.bootyPicPath + '/特种芯片.png'),
         '先锋芯片': pictureFind.picRead(self.bootyPicPath + '/先锋芯片.png'),
         '医疗芯片': pictureFind.picRead(self.bootyPicPath + '/医疗芯片.png'),
         '重装芯片': pictureFind.picRead(self.bootyPicPath + '/重装芯片.png'),
         '辅助芯片组': pictureFind.picRead(self.bootyPicPath + '/辅助芯片组.png'),
         '近卫芯片组': pictureFind.picRead(self.bootyPicPath + '/近卫芯片组.png'),
         '狙击芯片组': pictureFind.picRead(self.bootyPicPath + '/狙击芯片组.png'),
         '术师芯片组': pictureFind.picRead(self.bootyPicPath + '/术师芯片组.png'),
         '特种芯片组': pictureFind.picRead(self.bootyPicPath + '/特种芯片组.png'),
         '先锋芯片组': pictureFind.picRead(self.bootyPicPath + '/先锋芯片组.png'),
         '医疗芯片组': pictureFind.picRead(self.bootyPicPath + '/医疗芯片组.png'),
         '重装芯片组': pictureFind.picRead(self.bootyPicPath + '/重装芯片组.png')
     }
     self.one = pictureFind.picRead(self.cwd + '/res/booty/num/1.png')
     self.two = pictureFind.picRead(self.cwd + '/res/booty/num/2.png')