Пример #1
0
 def getConfirmDialogMeta(self, funcExit = FUNCTIONAL_EXIT.NO_FUNC):
     if not self._settings:
         return None
     prbType = self.getPrbType()
     if self.hasLockedState():
         meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(CTRL_ENTITY_TYPE.PREBATTLE, prbType)
     else:
         meta = rally_dialog_meta.createPrbLeaveMeta(funcExit, prbType)
     return meta
Пример #2
0
 def getConfirmDialogMeta(self, ctx):
     if not self._settings:
         return None
     else:
         prbType = self.getEntityType()
         if self.hasLockedState():
             meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(CTRL_ENTITY_TYPE.PREBATTLE, prbType)
         else:
             meta = rally_dialog_meta.createPrbLeaveMeta(ctx, prbType)
         return meta
 def getConfirmDialogMeta(self, ctx):
     if not self._settings or ctx.isForced():
         return None
     else:
         prbType = self.getEntityType()
         if self.hasLockedState():
             meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(CTRL_ENTITY_TYPE.LEGACY, prbType)
         else:
             meta = rally_dialog_meta.createPrbLeaveMeta(ctx, prbType, self.canSwitch(ctx))
         return meta
Пример #4
0
 def getConfirmDialogMeta(self, ctx):
     meta = None
     if self.hasLockedState():
         meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(
             CTRL_ENTITY_TYPE.PREQUEUE, self._queueType)
     return meta
Пример #5
0
 def getConfirmDialogMeta(self, funcExit = FUNCTIONAL_EXIT.NO_FUNC):
     if self.hasLockedState():
         meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(CTRL_ENTITY_TYPE.PREBATTLE, self._queueType)
     else:
         meta = rally_dialog_meta.createLeavePreQueueMeta(funcExit, self._queueType)
     return meta