def getConfirmDialogMeta(self, ctx):
     if not self.hasLockedState() and ctx.getCtrlType(
     ) == CTRL_ENTITY_TYPE.UNIT and ctx.getEntityType() in (
             PREBATTLE_TYPE.SQUAD, PREBATTLE_TYPE.EVENT):
         meta = rally_dialog_meta.createLeavePreQueueMeta(
             ctx, self.getQueueType(), self.canSwitch(ctx))
     else:
         meta = super(BootcampEntity, self).getConfirmDialogMeta(ctx)
     return meta
Exemplo n.º 2
0
 def getConfirmDialogMeta(self, ctx):
     if not self.hasLockedState() and not ctx.hasFlags(
             FUNCTIONAL_FLAG.TUTORIAL) and AccountSettings.getSettings(
                 DEFAULT_QUEUE) == QUEUE_TYPE.SANDBOX:
         meta = rally_dialog_meta.createLeavePreQueueMeta(
             ctx, self._queueType, self.canSwitch(ctx))
     else:
         meta = super(SandboxEntity, self).getConfirmDialogMeta(ctx)
     return meta
Exemplo n.º 3
0
 def getConfirmDialogMeta(self, ctx):
     if not self.hasLockedState() and ctx.getCtrlType(
     ) == CTRL_ENTITY_TYPE.UNIT and ctx.getEntityType() in (
             PREBATTLE_TYPE.SQUAD, PREBATTLE_TYPE.EVENT):
         meta = rally_dialog_meta.createLeavePreQueueMeta(
             ctx, self._queueType)
     else:
         meta = super(SandboxQueueFunctional,
                      self).getConfirmDialogMeta(ctx)
     return meta
Exemplo n.º 4
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
Exemplo n.º 5
0
 def getConfirmDialogMeta(self, ctx):
     if not self.hasLockedState() and ctx.getEntityType() == PREBATTLE_TYPE.SQUAD:
         meta = rally_dialog_meta.createLeavePreQueueMeta(ctx, self._queueType)
     else:
         meta = super(SandboxQueueFunctional, self).getConfirmDialogMeta(ctx)
     return meta
Exemplo n.º 6
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