Ejemplo n.º 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
Ejemplo n.º 2
0
 def getConfirmDialogMeta(self, funcExit = FUNCTIONAL_EXIT.NO_FUNC):
     if not self._settings:
         return None
     prbType = self.getPrbType()
     if self.getTeamState().isInQueue():
         meta = rally_dialog_meta.RallyLeaveDisabledDialogMeta(CTRL_ENTITY_TYPE.PREBATTLE, prbType)
     else:
         meta = rally_dialog_meta.createPrbLeaveMeta(funcExit, prbType)
     return meta
Ejemplo n.º 3
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