Beispiel #1
0
    def start_main(self, event):
        if self.__is_ark_init:
            TASK_LIST = OrderedDict()
            if self.Index.task1_battle_name.GetValue() != "":
                TASK_LIST[self.Index.task1_battle_name.GetValue()] = int(
                    self.Index.task1_battle_time.GetValue())
            if self.Index.task2_battle_name.GetValue() != "":
                TASK_LIST[self.Index.task2_battle_name.GetValue()] = int(
                    self.Index.task2_battle_time.GetValue())
            if self.Index.task3_battle_name.GetValue() != "":
                TASK_LIST[self.Index.task3_battle_name.GetValue()] = int(
                    self.Index.task3_battle_time.GetValue())
            if self.Index.task4_battle_name.GetValue() != "":
                TASK_LIST[self.Index.task4_battle_name.GetValue()] = int(
                    self.Index.task4_battle_time.GetValue())
            print(TASK_LIST)
            for _ in TASK_LIST.keys():
                if _ not in MAIN_TASK_SUPPORT:
                    MessageDialog_OK("{} 不在支持的关卡列表中".format(_), "警告")
                    return False

            if TASK_LIST.__len__() == 0:
                MessageDialog_CANCEL("未选择关卡", "提示")
                return False
            else:
                if self.check_before_start():
                    self.worker['main_battle'] = ArkThread(ark=self.ark,
                                                           TASK_LIST=TASK_LIST)
                else:
                    return False
        else:
            MessageDialog_OK("请预先初始化 ark 类")
Beispiel #2
0
    def start_slim(self, event):
        if self.__is_ark_init:
            c_id = self.Index.slim_battle_name.GetValue()
            set_count = int(self.Index.slim_battle_time.GetValue())
            if self.check_before_start():
                self.worker['slim_battle'] = ArkThread(ark=self.ark,
                                                       c_id=c_id,
                                                       set_count=set_count)
            else:
                return False

        else:
            MessageDialog_OK("请预先初始化 ark 类")
    def start_main(self, event):
        TASK_LIST = OrderedDict()
        if self.Index.task1_battle_name.GetValue() != "":
            TASK_LIST[self.Index.task1_battle_name.GetValue()] = int(self.Index.task1_battle_time.GetValue())
        if self.Index.task2_battle_name.GetValue() != "":
            TASK_LIST[self.Index.task2_battle_name.GetValue()] = int(self.Index.task2_battle_time.GetValue())
        if self.Index.task3_battle_name.GetValue() != "":
            TASK_LIST[self.Index.task3_battle_name.GetValue()] = int(self.Index.task3_battle_time.GetValue())
        if self.Index.task4_battle_name.GetValue() != "":
            TASK_LIST[self.Index.task4_battle_name.GetValue()] = int(self.Index.task4_battle_time.GetValue())
        for _ in TASK_LIST.keys():
            if _ not in LIZHI_CONSUME or "GT" in _:
                MessageDialog_OK("{} 不在支持的关卡列表中".format(_), "警告")
                return False

        if TASK_LIST.__len__() == 0:
            MessageDialog_CANCEL("未选择关卡", "提示")
            return False
        else:
            self.worker = ArkThread(ark=self.ark, TASK_LIST=TASK_LIST)
 def start_slim(self, event):
     c_id = self.Index.slim_battle_name.GetValue()
     set_count = int(self.Index.slim_battle_time.GetValue())
     self.worker = ArkThread(ark=self.ark, c_id=c_id, set_count=set_count)
Beispiel #5
0
 def login_ark(self, event):
     if self.__is_ark_init:
         MessageDialog_CANCEL("辅助不会采取你的个人数据,登陆模块仅用于自动登陆")
         self.worker['login'] = ArkThread(ark=self.ark, func='login')
     else:
         MessageDialog_OK("请先初始化辅助")